Code to load a LPC1114 over tx/rx. I have only tested with a 1114 chip but it should work with other LPC uControllers
Dependencies: DirectoryList MODSERIAL mbed
Fork of ika_shouyu_poppoyaki by
target_table.h@22:bd98a782fba6, 2013-09-13 (annotated)
- Committer:
- okano
- Date:
- Fri Sep 13 03:34:43 2013 +0000
- Revision:
- 22:bd98a782fba6
- Parent:
- 12:5a33b5d39792
- Child:
- 26:a63e73885b21
dividing code into modules
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
okano | 22:bd98a782fba6 | 1 | #ifndef MBED_ISP__TARGET_TABLE__ |
okano | 22:bd98a782fba6 | 2 | #define MBED_ISP__TARGET_TABLE__ |
okano | 22:bd98a782fba6 | 3 | |
okano | 22:bd98a782fba6 | 4 | |
okano | 5:ff30f5b58617 | 5 | |
okano | 5:ff30f5b58617 | 6 | #define NOT_FOUND 0 |
okano | 5:ff30f5b58617 | 7 | |
okano | 12:5a33b5d39792 | 8 | #define UUENCODE 0 |
okano | 12:5a33b5d39792 | 9 | #define BINARY 1 |
okano | 12:5a33b5d39792 | 10 | |
okano | 5:ff30f5b58617 | 11 | |
okano | 5:ff30f5b58617 | 12 | typedef struct taget_param_st { |
okano | 12:5a33b5d39792 | 13 | char *type_name; |
okano | 12:5a33b5d39792 | 14 | int id; |
okano | 12:5a33b5d39792 | 15 | int ram_size; |
okano | 12:5a33b5d39792 | 16 | int flash_size; |
okano | 12:5a33b5d39792 | 17 | int sector_size; |
okano | 12:5a33b5d39792 | 18 | int write_type; |
okano | 12:5a33b5d39792 | 19 | unsigned int ram_start_address; |
okano | 5:ff30f5b58617 | 20 | } |
okano | 5:ff30f5b58617 | 21 | target_param; |
okano | 5:ff30f5b58617 | 22 | |
okano | 5:ff30f5b58617 | 23 | extern target_param target_table[]; |
okano | 5:ff30f5b58617 | 24 | |
okano | 5:ff30f5b58617 | 25 | target_param *find_target_param( char *device_id_string ); |
okano | 5:ff30f5b58617 | 26 | |
okano | 22:bd98a782fba6 | 27 | #endif |