X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Finclude%2Fchipcon.h;h=deed945d0368c8c5d9b5d79d08575d21f69e9dfb;hp=3bf3da1f894d37da1eeb278eaefe24dc67d13bba;hb=4359af022eff64cec047af0bd3b738d2f34993e1;hpb=ecb9432850549952b9fe14b67fcf6798bbab0261 diff --git a/firmware/include/chipcon.h b/firmware/include/chipcon.h index 3bf3da1..deed945 100644 --- a/firmware/include/chipcon.h +++ b/firmware/include/chipcon.h @@ -19,6 +19,9 @@ #define CCCMD_STEP_INSTR 0x5C #define CCCMD_DEBUG_INSTR 0x54 +//! Flash Word Size +extern u8 flash_word_size; + //! Erase a chipcon chip. void cc_chip_erase(); //! Write the configuration byte. @@ -39,6 +42,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);