![](/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
wdt_manager.h
- Committer:
- klauss
- Date:
- 2015-04-16
- Revision:
- 113:db67ae00550e
- Parent:
- 109:a5b8264ffbbc
- Child:
- 114:472502b31a12
File content as of revision 113:db67ae00550e:
#ifndef __WDT_MANAGER_H__ #define __WDT_MANAGER_H__ #include "mbed.h" #include "wdt.h" #include "debug.h" extern Watchdog wdt; extern Timer wdt_timer; 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_client.set_blocking( false, 0 ); \ udp_wdt_client.bind( 6612 ); \ } #define reconnect_extern_wdt_socket() { \ udp_wdt_client.close(); \ udp_wdt_client.set_blocking( false, 0 ); \ udp_wdt_client.bind( 6612 ); \ } #endif