![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Modularizando o src
Dependencies: EALib EthernetInterface_vz mbed-rtos mbed
Fork of header_main_colinas_V0-20-09-14 by
bootloader.h@111:c0833f2455ed, 2015-04-07 (annotated)
- Committer:
- klauss
- Date:
- Tue Apr 07 18:26:21 2015 +0000
- Revision:
- 111:c0833f2455ed
- Child:
- 113:db67ae00550e
wip bl with bt
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 | |
klauss | 111:c0833f2455ed | 20 | |
klauss | 111:c0833f2455ed | 21 | |
klauss | 111:c0833f2455ed | 22 | |
klauss | 111:c0833f2455ed | 23 | |
klauss | 111:c0833f2455ed | 24 | |
klauss | 111:c0833f2455ed | 25 | |
klauss | 111:c0833f2455ed | 26 | |
klauss | 111:c0833f2455ed | 27 | |
klauss | 111:c0833f2455ed | 28 | #endif |