![](/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
Diff: wdt_manager.h
- Revision:
- 82:f55d13babca0
- Parent:
- 81:3656f00ab3db
- Child:
- 83:b8a1d8fdeaeb
--- a/wdt_manager.h Tue Dec 30 12:37:40 2014 +0000 +++ b/wdt_manager.h Tue Dec 30 21:00:00 2014 +0000 @@ -8,9 +8,22 @@ extern Watchdog wdt; extern Timer wdt_timer; +extern Endpoint udp_wdt_server; +extern UDPSocket udp_wdt_client; + +#define EXTERNAL_WDT_IP "192.168.120.144" +#define EXTERNAL_WDT_SERVER_PORT 9395 +#define EXTERNAL_WDT_HEADER_PORT 6612 + #define init_wdt() { \ wdt.Configure( 30.0 ); \ wdt_timer.start(); \ } +#define init_external_wdt() { \ + udp_wdt_server.set_address( "192.168.120.144", 9395 ); \ + udp_wdt_client.set_blocking( false, 5 ); \ + udp_wdt_client.bind( 6612 ); \ +} + #endif \ No newline at end of file