William Reynolds
/
LPC_Bootloader
main.cpp@7:d0f98d61ec4c, 2011-09-30 (annotated)
- Committer:
- daugihao
- Date:
- Fri Sep 30 14:55:11 2011 +0000
- Revision:
- 7:d0f98d61ec4c
- Parent:
- 5:6134277e4d57
Some slight alterations and comment addition
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 | 7:d0f98d61ec4c | 8 | lpc.InitUART(115200); //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 |