Prusa3d Marlin fork
stk500.h
1 /* STK500 constants list, from AVRDUDE
2  *
3  * Trivial set of constants derived from Atmel App Note AVR061
4  * Not copyrighted. Released to the public domain.
5  */
6 
7 #define STK_OK 0x10
8 #define STK_FAILED 0x11 // Not used
9 #define STK_UNKNOWN 0x12 // Not used
10 #define STK_NODEVICE 0x13 // Not used
11 #define STK_INSYNC 0x14 // ' '
12 #define STK_NOSYNC 0x15 // Not used
13 #define ADC_CHANNEL_ERROR 0x16 // Not used
14 #define ADC_MEASURE_OK 0x17 // Not used
15 #define PWM_CHANNEL_ERROR 0x18 // Not used
16 #define PWM_ADJUST_OK 0x19 // Not used
17 #define CRC_EOP 0x20 // 'SPACE'
18 #define STK_GET_SYNC 0x30 // '0'
19 #define STK_GET_SIGN_ON 0x31 // '1'
20 #define STK_SET_PARAMETER 0x40 // '@'
21 #define STK_GET_PARAMETER 0x41 // 'A'
22 #define STK_SET_DEVICE 0x42 // 'B'
23 #define STK_SET_DEVICE_EXT 0x45 // 'E'
24 #define STK_ENTER_PROGMODE 0x50 // 'P'
25 #define STK_LEAVE_PROGMODE 0x51 // 'Q'
26 #define STK_CHIP_ERASE 0x52 // 'R'
27 #define STK_CHECK_AUTOINC 0x53 // 'S'
28 #define STK_LOAD_ADDRESS 0x55 // 'U'
29 #define STK_UNIVERSAL 0x56 // 'V'
30 #define STK_PROG_FLASH 0x60 // '`'
31 #define STK_PROG_DATA 0x61 // 'a'
32 #define STK_PROG_FUSE 0x62 // 'b'
33 #define STK_PROG_LOCK 0x63 // 'c'
34 #define STK_PROG_PAGE 0x64 // 'd'
35 #define STK_PROG_FUSE_EXT 0x65 // 'e'
36 #define STK_READ_FLASH 0x70 // 'p'
37 #define STK_READ_DATA 0x71 // 'q'
38 #define STK_READ_FUSE 0x72 // 'r'
39 #define STK_READ_LOCK 0x73 // 's'
40 #define STK_READ_PAGE 0x74 // 't'
41 #define STK_READ_SIGN 0x75 // 'u'
42 #define STK_READ_OSCCAL 0x76 // 'v'
43 #define STK_READ_FUSE_EXT 0x77 // 'w'
44 #define STK_READ_OSCCAL_EXT 0x78 // 'x'
45 #define STK_SW_MAJOR 0x81 // ' '
46 #define STK_SW_MINOR 0x82 // ' '
47 
48 /* AVR raw commands sent via STK_UNIVERSAL */
49 #define AVR_OP_LOAD_EXT_ADDR 0x4d