Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void vTask_Reset(void *pvParameters)
- {
- vTaskDelay(10000);
- //NVIC_SystemReset();
- while(1)
- {
- vTaskDelay(2000);
- __nop();
- if (iEIR != 0x08) {
- NVIC_SystemReset();
- debugByte |= 0x01;
- }
- if (iESTAT != 0x01)
- {
- NVIC_SystemReset();
- debugByte |= 0x02;
- }
- if (iECON2 != 0x80)
- {
- NVIC_SystemReset();
- debugByte |= 0x04;
- }
- if (iECON1 != 0x04)
- {
- NVIC_SystemReset();
- debugByte |= 0x08;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement