X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Finclude%2Fchipcon.h;h=bf471e6f2fab06469c3fb739fc3df4cb5f98d21d;hp=e5207ccec679574429fad50b539d647c35cdd255;hb=d7ad826230d336ad7b7bd20e47dccc26d7ad456f;hpb=d64502ed4204f313ae89aa4e2b6c554d5a9c6563 diff --git a/firmware/include/chipcon.h b/firmware/include/chipcon.h index e5207cc..bf471e6 100644 --- a/firmware/include/chipcon.h +++ b/firmware/include/chipcon.h @@ -7,6 +7,8 @@ //Chipcon command definitions. #define CCCMD_CHIP_ERASE 0x14 + +//1D or 19? #define CCCMD_WR_CONFIG 0x1D #define CCCMD_RD_CONFIG 0x24 #define CCCMD_READ_STATUS 0x34 @@ -37,6 +39,10 @@ void cc_debug_instr(unsigned char); unsigned char cc_peekcodebyte(unsigned long adr); //!Read a byte of data memory. unsigned char cc_peekdatabyte(unsigned int adr); +//! Fetch a byte of IRAM. +u8 cc_peekirambyte(u8 adr); +//! Write a byte of IRAM. +u8 cc_pokeirambyte(u8 adr, u8 val); //! Set a byte of data memory. unsigned char cc_pokedatabyte(unsigned int adr, unsigned char val);