diff options
author | Keith Packard <keithp@keithp.com> | 2008-12-21 23:33:35 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2008-12-21 23:33:42 -0800 |
commit | e75918f3667a5c8ad294bec4acef6fe81682edf6 (patch) | |
tree | 49c4411b2becaa874693f829876df703a9191f02 /lib | |
parent | f7d49868aeae80d515b12a7e339628f1296754a6 (diff) |
Add preliminary version of s51, a UI clone of the 8051 emulator.
sdcdb provides source-level debugging using the 8051 emulator, s51. By
emulating that emulator a the UI level, we should be able to get source
debugging right on our target platform.
This is just the preliminary structure for the program with most commands
not yet implemented.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cp-usb.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/cp-usb.h b/lib/cp-usb.h new file mode 100644 index 00000000..3e5f25ff --- /dev/null +++ b/lib/cp-usb.h @@ -0,0 +1,36 @@ +/* + * Copyright © 2008 Keith Packard <keithp@keithp.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + */ + +#ifndef _CP_USB_H_ +#define _CP_USB_H_ +#include <usb.h> + +struct cp_usb * +cp_usb_open(void); + +void +cp_usb_close(struct cp_usb *cp); + +void +cp_usb_write(struct cp_usb *cp, uint8_t mask, uint8_t value); + +uint8_t +cp_usb_read(struct cp_usb *cp); + + +#endif |