.
Dependencies: mbed EthernetInterface mbed-rtos
Fork of Bootloader_K64F by
main.cpp@1:782a3ddc329e, 2015-03-11 (annotated)
- Committer:
- Sissors
- Date:
- Wed Mar 11 21:00:29 2015 +0000
- Revision:
- 1:782a3ddc329e
- Parent:
- 0:9396d3376435
- Child:
- 2:8c44f28c122c
Basic UART functional + IAP functional
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Sissors | 0:9396d3376435 | 1 | #include "mbed.h" |
Sissors | 0:9396d3376435 | 2 | |
Sissors | 1:782a3ddc329e | 3 | DigitalOut led1(LED1); |
Sissors | 1:782a3ddc329e | 4 | extern void bootloader(void); |
Sissors | 1:782a3ddc329e | 5 | |
Sissors | 1:782a3ddc329e | 6 | void func1(void) { |
Sissors | 1:782a3ddc329e | 7 | led1 = !led1; |
Sissors | 0:9396d3376435 | 8 | } |
Sissors | 0:9396d3376435 | 9 | |
Sissors | 1:782a3ddc329e | 10 | int main() |
Sissors | 1:782a3ddc329e | 11 | { |
Sissors | 1:782a3ddc329e | 12 | bootloader(); |
Sissors | 1:782a3ddc329e | 13 | while(1); |
Sissors | 1:782a3ddc329e | 14 | } |
Sissors | 1:782a3ddc329e | 15 |