Removed deprecated MSP430 flash test.
[goodfet] / firmware / include / chipcon.h
1 /*! \file chipcon.h
2   \author Travis Goodspeed
3   \brief Chipcon application functions.
4 */
5
6
7 //! Erase a chipcon chip.
8 void cc_chip_erase();
9 //! Write the configuration byte.
10 void cc_wr_config(unsigned char config);
11 //! Read the configuration byte.
12 unsigned char cc_rd_config();
13 //! Read the status register.
14 unsigned char cc_read_status();
15 //! Read the CHIP ID bytes.
16 unsigned short cc_get_chip_id();
17 //! Get the PC
18 unsigned short cc_get_pc();
19 //! Set a hardware breakpoint.
20 void cc_set_hw_brkpnt(unsigned short);
21 //! Debug an instruction, for remote use.
22 void cc_debug_instr(unsigned char);
23 //!Read a byte of code memory.
24 unsigned char cc_peekcodebyte(unsigned long adr);
25 //!Read a byte of data memory.
26 unsigned char cc_peekdatabyte(unsigned int adr);
27 //! Set a byte of data memory.
28 unsigned char cc_pokedatabyte(unsigned int adr,
29                               unsigned char val);
30 //! Debug an instruction, for local use.
31 unsigned char cc_debug(unsigned char len,
32                        unsigned char a,
33                        unsigned char b,
34                        unsigned char c);
35
36 //! Halt the CPU.
37 void cc_halt();
38 //! Resume the CPU.
39 void cc_resume();
40 //! Step an instruction
41 void cc_step_instr();
42