![](/media/cache/profiles/8a76780c6f3cd22891a6e7926fb9ad1c.jpg.50x50_q85.jpg)
Code from liamg with few edits to init seria comml and output counter.
Fork of MKL05CLK by
Diff: main.cpp
- Revision:
- 1:dc4a581c6c4a
- Parent:
- 0:0d020b1f3308
- Child:
- 2:1328c14aca66
diff -r 0d020b1f3308 -r dc4a581c6c4a main.cpp --- a/main.cpp Fri Apr 04 20:08:32 2014 +0000 +++ b/main.cpp Fri Apr 04 23:41:54 2014 +0000 @@ -2,20 +2,28 @@ #include "head.h" Serial pc(USBTX, USBRX); // tx, rx for debug terminal - DigitalOut myled(LED1); + int main() { + + int cycle = 0; + + while(true){ + pc.baud(9600); myled = 1; wait(0.2); myled = 0; wait(0.2); - unsigned int ID=0; + unsigned int ID=0; + cycle++; ID=SIM_SDID; pc.printf("Kinetis ID = %x \n",ID); + pc.printf("CycleNo = %d \n", cycle); + }