Dependencies:   mbed

Committer:
daugihao
Date:
Thu Sep 29 11:32:52 2011 +0000
Revision:
1:0872c208795f
Parent:
0:15536fa79743
Child:
5:6134277e4d57
Now no need to update main.cpp. Will load the first .lpc file it finds on the local filesystem.

Who changed what in which revision?

UserRevisionLine numberNew 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 1:0872c208795f 9 lpc.ProgramFile(); //Write your program name in this box with the prefix /fs/ (sometimes unstable with special characters and long names)
daugihao 0:15536fa79743 10 }
daugihao 0:15536fa79743 11
daugihao 0:15536fa79743 12 //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