Simple implementation of the watchdog timer for NRF51xxx.

Dependents:   WatchdogTimerTest Seeed_Test_Wristband_final mbed-os-PF-UWBBEACON_v1_dev RB-2018-X_MPU_12

Committer:
jcady92
Date:
Tue Jun 30 16:19:16 2015 +0000
Revision:
0:172aa845e1d7
Child:
1:10fdcb411fbd
Initial commit.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jcady92 0:172aa845e1d7 1 #ifndef WATCHDOGTIMER_H
jcady92 0:172aa845e1d7 2 #define WATCHDOGTIMER_H
jcady92 0:172aa845e1d7 3
jcady92 0:172aa845e1d7 4 #include "mbed.h"
jcady92 0:172aa845e1d7 5
jcady92 0:172aa845e1d7 6 class WatchdogTimer
jcady92 0:172aa845e1d7 7 {
jcady92 0:172aa845e1d7 8 public:
jcady92 0:172aa845e1d7 9 WatchdogTimer(float seconds);
jcady92 0:172aa845e1d7 10
jcady92 0:172aa845e1d7 11 void kick();
jcady92 0:172aa845e1d7 12
jcady92 0:172aa845e1d7 13 private:
jcady92 0:172aa845e1d7 14 static const uint16_t NRF_CLK_RATE = 32768; //32KHz
jcady92 0:172aa845e1d7 15 };
jcady92 0:172aa845e1d7 16
jcady92 0:172aa845e1d7 17 #endif // WATCHDOGTIMER_H