Code from liamg with few edits to init seria comml and output counter.
Fork of MKL05CLK by
Diff: main.cpp
- Revision:
- 0:0d020b1f3308
- Child:
- 1:dc4a581c6c4a
diff -r 000000000000 -r 0d020b1f3308 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Apr 04 20:08:32 2014 +0000 @@ -0,0 +1,22 @@ +#include "mbed.h" +#include "head.h" + +Serial pc(USBTX, USBRX); // tx, rx for debug terminal + +DigitalOut myled(LED1); + +int main() { + + myled = 1; + wait(0.2); + myled = 0; + wait(0.2); + + unsigned int ID=0; + + ID=SIM_SDID; + pc.printf("Kinetis ID = %x \n",ID); + + + +}