Changeset 561
- Timestamp:
- 04/30/08 13:35:14 (2 weeks ago)
- Files:
-
- nano-RK/projects/basic_tasks/nrk_cfg.h (modified) (1 diff)
- nano-RK/src/kernel/source/nrk_error.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nano-RK/projects/basic_tasks/nrk_cfg.h
r431 r561 11 11 // it is easier to see debugging messages. 12 12 //#define NRK_HALT_AND_LOOP_ON_ERROR 13 #define NRK_HALT_ON_ERROR13 //#define NRK_HALT_ON_ERROR 14 14 15 15 // Enable the watchdog as a protective measure 16 16 // This will only activate if the scheduler fails. 17 17 #define NRK_WATCHDOG 18 #define NRK_REBOOT_ON_ERROR 18 19 19 20 #define NRK_STATS_TRACKER nano-RK/src/kernel/source/nrk_error.c
r560 r561 169 169 #ifdef NRK_REBOOT_ON_ERROR 170 170 // wait for watchdog to kick in 171 nrk_watchdog_disable(); 171 if(error_num!=NRK_WATCHDOG_ERROR) 172 { 173 nrk_watchdog_enable(); 172 174 nrk_int_disable(); 173 175 while(1); 176 } 174 177 #endif 175 178
