X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Finclude%2Fcommand.h;h=2c722c3343edc0fb83b3d0cfec2b04ae9cacafdd;hp=2df777869758b4cbb806dd4adb9423398d2e077e;hb=7e6962f68870771eafca05e8401a7cfeea132a3f;hpb=0652c424f95ebdb6c9be17edc0a4d1057432142f;ds=sidebyside diff --git a/firmware/include/command.h b/firmware/include/command.h index 2df7778..2c722c3 100644 --- a/firmware/include/command.h +++ b/firmware/include/command.h @@ -11,9 +11,35 @@ extern unsigned char cmddata[256]; #define PEEK 0x02 #define POKE 0x03 #define SETUP 0x10 +#define START 0x20 +#define STOP 0x21 #define NOK 0x7E #define OK 0x7F +//CHIPCON commands +#define CC_CHIP_ERASE 0x80 +#define CC_WR_CONFIG 0x81 +#define CC_RD_CONFIG 0x82 +#define CC_GET_PC 0x83 +#define CC_READ_STATUS 0x84 +#define CC_SET_HW_BRKPNT 0x85 +#define CC_HALT 0x86 +#define CC_RESUME 0x87 +#define CC_DEBUG_INSTR 0x88 +#define CC_STEP_INSTR 0x89 +#define CC_STEP_REPLACE 0x8a +#define CC_GET_CHIP_ID 0x8b +//CHIPCON macros +#define CC_READ_CODE_MEMORY 0x90 +#define CC_READ_XDATA_MEMORY 0x91 +#define CC_WRITE_XDATA_MEMORY 0x92 +#define CC_SET_PC 0x93 +#define CC_CLOCK_INIT 0x94 +#define CC_WRITE_FLASH_PAGE 0x95 +#define CC_READ_FLASH_PAGE 0x96 +#define CC_MASS_ERASE_FLASH 0x97 +#define CC_PROGRAM_FLASH 0x98 + //! Handle a command. Defined in goodfet.c void handle(unsigned char app, unsigned char verb,