Cleaner error message for failing to print the radio state.
[goodfet] / firmware / include / apps.h
1 /*! \file apps.h
2   \author Travis Goodspeed
3   \brief Application definitions.
4 */
5
6 //Essential and highly standardized stuff in 0x00 range.
7 #define MONITOR 0x00
8 #define SPI 0x01
9 #define I2CAPP 0x02
10
11 //All JTAG targets in 0x10 range.
12 #define JTAG 0x10
13 #define JTAG430 0x11
14 #define EJTAG 0x12
15 #define JTAGARM7TDMI 0x13
16 #define ADIv5 0x14
17
18 //Manufacturer-specific protocols go in 0x30 and 0x40.
19 #define CHIPCON 0x30
20 #define SIF 0x31
21 #define AVR 0x32
22 #define PIC 0x34
23
24 //Radio peripherals are in the 0x50 range.
25 #define NRF   0x50
26 #define CCSPI 0x51
27
28 //Keep 0x60 empty for now.
29
30 //Weird stuff in 0x70 range.
31 #define OCT 0x70
32 #define GLITCH 0x71
33 #define PLUGIN 0x72
34 #define SMARTCARD 0x73
35 #define ADC10 0x74
36
37 #define RESET 0x80      // not a real app -- causes firmware to reset
38
39 #define DEBUGAPP 0xFF