![](/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
main.cpp
- Committer:
- donoman
- Date:
- 2014-04-04
- Revision:
- 1:dc4a581c6c4a
- Parent:
- 0:0d020b1f3308
- Child:
- 2:1328c14aca66
File content as of revision 1:dc4a581c6c4a:
#include "mbed.h" #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; cycle++; ID=SIM_SDID; pc.printf("Kinetis ID = %x \n",ID); pc.printf("CycleNo = %d \n", cycle); } }