William Reynolds
/
LPC_Bootloader
main.cpp@5:6134277e4d57, 2011-09-30 (annotated)
- Committer:
- daugihao
- Date:
- Fri Sep 30 11:52:20 2011 +0000
- Revision:
- 5:6134277e4d57
- Parent:
- 1:0872c208795f
- Child:
- 7:d0f98d61ec4c
Added compatibility with ID codes of various lengths
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
daugihao | 0:15536fa79743 | 1 | #include "mbed.h" |
daugihao | 0:15536fa79743 | 2 | #include "LPC.h" |
daugihao | 0:15536fa79743 | 3 | |
daugihao | 0:15536fa79743 | 4 | SerialBuffered lpc(1024, p9, p10); |
daugihao | 0:15536fa79743 | 5 | |
daugihao | 0:15536fa79743 | 6 | int main() { |
daugihao | 0:15536fa79743 | 7 | //RESET CHIP TO LOAD TO BEFORE RUNNING PROGRAM!!! |
daugihao | 0:15536fa79743 | 8 | lpc.InitUART(230400); //Specified limit of 230400 baud |
daugihao | 5:6134277e4d57 | 9 | lpc.ProgramFile(); |
daugihao | 0:15536fa79743 | 10 | } |
daugihao | 0:15536fa79743 | 11 | //To add new chips to load to, add a case to the switch function in ID.cpp, using the ID code and last sector number information |