Changeset 561

Show
Ignore:
Timestamp:
04/30/08 13:35:14 (2 weeks ago)
Author:
agr
Message:

nrk reboot on error final works

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nano-RK/projects/basic_tasks/nrk_cfg.h

    r431 r561  
    1111// it is easier to see debugging messages. 
    1212//#define NRK_HALT_AND_LOOP_ON_ERROR 
    13 #define NRK_HALT_ON_ERROR 
     13//#define NRK_HALT_ON_ERROR 
    1414 
    1515// Enable the watchdog as a protective measure 
    1616// This will only activate if the scheduler fails. 
    1717#define NRK_WATCHDOG 
     18#define NRK_REBOOT_ON_ERROR 
    1819 
    1920#define NRK_STATS_TRACKER 
  • nano-RK/src/kernel/source/nrk_error.c

    r560 r561  
    169169#ifdef NRK_REBOOT_ON_ERROR 
    170170  // wait for watchdog to kick in 
    171   nrk_watchdog_disable(); 
     171  if(error_num!=NRK_WATCHDOG_ERROR) 
     172  { 
     173  nrk_watchdog_enable(); 
    172174  nrk_int_disable();  
    173175  while(1); 
     176  } 
    174177#endif 
    175178