JTAG430X2 works at 16MHz, not at 3MHz.
[goodfet] / firmware / include / chipcon.h
1 //These high-level functions are implemented in chipcon.c.
2
3
4 //! Erase a chipcon chip.
5 void cc_chip_erase();
6 //! Write the configuration byte.
7 void cc_wr_config(unsigned char config);
8 //! Read the configuration byte.
9 unsigned char cc_rd_config();
10 //! Read the status register.
11 unsigned char cc_read_status();
12 //! Read the CHIP ID bytes.
13 unsigned short cc_get_chip_id();
14 //! Get the PC
15 unsigned short cc_get_pc();
16 //! Set a hardware breakpoint.
17 void cc_set_hw_brkpnt(unsigned short);
18 //! Debug an instruction, for remote use.
19 void cc_debug_instr(unsigned char);
20 //!Read a byte of code memory.
21 unsigned char cc_peekcodebyte(unsigned long adr);
22 //!Read a byte of data memory.
23 unsigned char cc_peekdatabyte(unsigned int adr);
24 //! Set a byte of data memory.
25 unsigned char cc_pokedatabyte(unsigned int adr,
26                               unsigned char val);
27 //! Debug an instruction, for local use.
28 unsigned char cc_debug(unsigned char len,
29                        unsigned char a,
30                        unsigned char b,
31                        unsigned char c);
32
33 //! Halt the CPU.
34 void cc_halt();
35 //! Resume the CPU.
36 void cc_resume();
37 //! Step an instruction
38 void cc_step_instr();
39