Arianna autonomous DAQ firmware
Dependencies: mbed SDFileSystemFilinfo AriSnProtocol NetServicesMin AriSnComm MODSERIAL PowerControlClkPatch DS1820OW
Diff: Watchdog.h
- Revision:
- 12:d472f9811262
- Parent:
- 0:664899e0b988
- Child:
- 22:f957c4f840ad
--- a/Watchdog.h Mon Aug 13 20:44:06 2012 +0000 +++ b/Watchdog.h Sat Aug 18 05:00:32 2012 +0000 @@ -7,12 +7,14 @@ // "kick" or "feed" the dog - reset the watchdog timer // by writing this required bit pattern + inline void kick() { LPC_WDT->WDFEED = 0xAA; LPC_WDT->WDFEED = 0x55; } // Load timeout value in watchdog timer and enable + inline void kick(const float s) { LPC_WDT->WDCLKSEL = 0x1; // Set CLK src to PCLK // WD has a fixed /4 prescaler, PCLK default is /4