![](/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: main.cpp
- Revision:
- 79:9bc12aa305a9
- Parent:
- 78:1353744f01e1
- Child:
- 80:61d61c9eb75c
--- a/main.cpp Tue Dec 16 12:13:01 2014 +0000 +++ b/main.cpp Tue Dec 16 16:50:25 2014 +0000 @@ -15,9 +15,16 @@ #include "configs.h" int main(){ + /* inicia o wdt interno */ wdt.Configure( 40.0 ); + + /*inicia o wdt externo */ + init_tcp_wdt(); + start_cpld(); + config_lpc(); + init_fsystem(); short int eth_status = __init_eth__(); @@ -119,7 +126,7 @@ sync_timer.reset(); if( debug_cks == true ){ - send_msg("PKG_CSK OK: %d :: PKG_CSK ERR: %d :: PKG_ZERO: %d", pkg_cksok, pkg_ckserr, pkg_zero ); + send_msg("PKG_CSK OK: %d :: PKG_CSK ERR: %d :: PKG_ZERO: %d :: Out_of_range: %d", pkg_cksok, pkg_ckserr, pkg_zero, out_of_range ); } if( debug_alive == true ){ @@ -297,7 +304,7 @@ } if( pcks_s == true ){ - send_msg("PKG_CSK OK: %d :: PKG_CSK ERR: %d :: PKG_ZERO: %d", pkg_cksok, pkg_ckserr, pkg_zero ); + send_msg("PKG_CSK OK: %d :: PKG_CSK ERR: %d :: PKG_ZERO: %d :: Out_of_range: %d", pkg_cksok, pkg_ckserr, pkg_zero, out_of_range ); pcks_s = false; }