![](/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:
- 4:322eeda5453b
- Parent:
- 3:985a40825e8d
--- a/main.cpp Sat Apr 12 00:54:25 2014 +0000 +++ b/main.cpp Thu May 29 18:42:44 2014 +0000 @@ -1,9 +1,9 @@ -#include "mbed.h" +//#include "mbed.h" #include "head.h" -Serial pc(USBTX, USBRX); // tx, rx for debug terminal +//Serial pc(USBTX, USBRX); // tx, rx for debug terminal //Serial testOut(PTC4,PTC3); -DigitalOut myled(LED1); +//DigitalOut myled(LED1); int main() { @@ -18,12 +18,12 @@ PORTC_PCR3=0x501; while(true){ - pc.baud(9600); + // pc.baud(9600); - myled = 1; - wait(0.2); - myled = 0; - wait(0.2); + // myled = 1; + // wait(0.2); + // myled = 0; + // wait(0.2); unsigned int ID=0; unsigned int FU=0; @@ -42,13 +42,13 @@ FU_MAN=SIM_SCGC5; - pc.printf("Kinetis ID = %x \n",ID); - pc.printf("SIM_SOPT2 = %x \n",FU); + //pc.printf("Kinetis ID = %x \n",ID); + //pc.printf("SIM_SOPT2 = %x \n",FU); //pc.printf("PORTC_PCR3 = %x \n",FU2); - pc.printf("MCG_C2 = %x \n",FU_TIM); - pc.printf("SIM_SCGC5 = %x \n",FU_MAN); + //pc.printf("MCG_C2 = %x \n",FU_TIM); + //pc.printf("SIM_SCGC5 = %x \n",FU_MAN); - pc.printf("CycleNo = %d \n", cycle); + //pc.printf("CycleNo = %d \n", cycle); //testOut.printf("FUCKKK"); }