Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
bootloader.h@113:db67ae00550e, 2015-04-16 (annotated)
- Committer:
- klauss
- Date:
- Thu Apr 16 12:57:13 2015 +0000
- Revision:
- 113:db67ae00550e
- Parent:
- 111:c0833f2455ed
- Child:
- 114:472502b31a12
valide esse fw
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
klauss | 111:c0833f2455ed | 1 | #ifndef __BOOTLOADER_H__ |
klauss | 111:c0833f2455ed | 2 | #define __BOOTLOADER_H__ |
klauss | 111:c0833f2455ed | 3 | |
klauss | 111:c0833f2455ed | 4 | #include "mbed.h" |
klauss | 111:c0833f2455ed | 5 | #include "debug.h" |
klauss | 111:c0833f2455ed | 6 | #include "EthernetInterface.h" |
klauss | 111:c0833f2455ed | 7 | |
klauss | 111:c0833f2455ed | 8 | #define BL_PORT 3000 |
klauss | 111:c0833f2455ed | 9 | |
klauss | 111:c0833f2455ed | 10 | extern Timer bl_timer; |
klauss | 111:c0833f2455ed | 11 | |
klauss | 111:c0833f2455ed | 12 | extern UDPSocket bl_client; |
klauss | 111:c0833f2455ed | 13 | |
klauss | 111:c0833f2455ed | 14 | #define init_bl() { \ |
klauss | 111:c0833f2455ed | 15 | bl_client.set_blocking( false, 0 ); \ |
klauss | 111:c0833f2455ed | 16 | bl_client.bind( BL_PORT ); \ |
klauss | 111:c0833f2455ed | 17 | } |
klauss | 111:c0833f2455ed | 18 | |
klauss | 111:c0833f2455ed | 19 | #endif |