Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbos Watchdog TextLCD mbed ConfigFile
Task9Wdt.cpp
00001 #include "Task9Wdt.h" 00002 00003 void WdtTask(void) 00004 {/** 00005 *\brief TASK 9 Watch Dog 00006 this is a very high priority task. Non other task can 00007 block this one. So, the WDT occurs only if a real OS 00008 hang happens. 00009 */ 00010 00011 os.SetTimer(WDT_TMR, WDT_TIMER, WDT_TIMER); // Kick the dog 00012 00013 while (1) 00014 { 00015 os.WaitEvent(WDT_EVT); 00016 wd.Service(); // kick the dog before the timeout 00017 } 00018 }
Generated on Thu Jul 14 2022 14:06:47 by
1.7.2