![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Watchdog example. Added fault coverage in all 3 threads.
Fork of Watchdog_sample_nocoverage by
Diff: main.cpp
- Revision:
- 8:b4696452eb18
- Parent:
- 7:9def90a894b9
--- a/main.cpp Fri Mar 09 16:00:19 2018 +0000 +++ b/main.cpp Fri Mar 09 16:02:56 2018 +0000 @@ -41,8 +41,8 @@ if (evt.status == osEventSignal) { if (evt.value.signals & 0x01) led1 = ON ; if (evt.value.signals & 0x02) led1 = OFF ; - } - wdt_kickA(); + wdt_kickA(); + } //waitButton() ; // POSSIBLE FAULT HERE } } @@ -57,8 +57,8 @@ if (evt.status == osEventSignal) { if (evt.value.signals & 0x01) led2 = ON ; if (evt.value.signals & 0x02) led2 = OFF ; + wdt_kickB(); } - wdt_kickB(); waitButton() ; // POSSIBLE FAULT HERE } }