.

Dependencies:   mbed EthernetInterface mbed-rtos

Fork of Bootloader_K64F by Erik -

Committer:
Sissors
Date:
Thu Mar 12 19:04:30 2015 +0000
Revision:
2:8c44f28c122c
Parent:
1:782a3ddc329e
Child:
4:8d109a566486
v0.9, works on K20 :D

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Sissors 0:9396d3376435 1 #include "mbed.h"
Sissors 0:9396d3376435 2
Sissors 2:8c44f28c122c 3 Serial pc(USBTX, USBRX);
Sissors 2:8c44f28c122c 4
Sissors 1:782a3ddc329e 5 DigitalOut led1(LED1);
Sissors 1:782a3ddc329e 6 extern void bootloader(void);
Sissors 1:782a3ddc329e 7
Sissors 1:782a3ddc329e 8 void func1(void) {
Sissors 1:782a3ddc329e 9 led1 = !led1;
Sissors 0:9396d3376435 10 }
Sissors 0:9396d3376435 11
Sissors 1:782a3ddc329e 12 int main()
Sissors 1:782a3ddc329e 13 {
Sissors 2:8c44f28c122c 14 printf("BDH = %d, BDL = %d\r\n", UART0->BDH, UART0->BDL);
Sissors 1:782a3ddc329e 15 bootloader();
Sissors 1:782a3ddc329e 16 while(1);
Sissors 1:782a3ddc329e 17 }
Sissors 1:782a3ddc329e 18