Advertisement
Guest User

Untitled

a guest
Oct 19th, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1. void vTask_Reset(void *pvParameters)
  2. {
  3.  
  4.         vTaskDelay(10000);
  5.     //NVIC_SystemReset();
  6.     while(1)
  7.     {
  8.                 vTaskDelay(2000);
  9.         __nop();
  10.             if (iEIR != 0x08)   {
  11.                 NVIC_SystemReset();
  12.         debugByte |= 0x01;
  13.     }
  14.            
  15.         if (iESTAT != 0x01)
  16.     {
  17.         NVIC_SystemReset();
  18.         debugByte |= 0x02;
  19.     }  
  20.     if (iECON2 != 0x80)
  21.     {
  22.         NVIC_SystemReset();
  23.         debugByte |= 0x04;
  24.     }      
  25.     if (iECON1 != 0x04)
  26.     {
  27.         NVIC_SystemReset();
  28.         debugByte |= 0x08;
  29.     }      
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement