LPC1768 and LPC11U24 watchdog timer
Dependents: GSwifi_tsutenkaku barometer-m0 BMAGThrRev
WDT.h@0:f28de891b0d3, 2012-08-04 (annotated)
- Committer:
- okini3939
- Date:
- Sat Aug 04 05:23:40 2012 +0000
- Revision:
- 0:f28de891b0d3
- Child:
- 2:f6f05e2eafd0
1st build
;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
okini3939 | 0:f28de891b0d3 | 1 | // Simon's Watchdog code from |
okini3939 | 0:f28de891b0d3 | 2 | // http://mbed.org/forum/mbed/topic/508/ |
okini3939 | 0:f28de891b0d3 | 3 | class Watchdog { |
okini3939 | 0:f28de891b0d3 | 4 | public: |
okini3939 | 0:f28de891b0d3 | 5 | // Load timeout value in watchdog timer and enable |
okini3939 | 0:f28de891b0d3 | 6 | void init(float s); |
okini3939 | 0:f28de891b0d3 | 7 | // "kick" or "feed" the dog - reset the watchdog timer |
okini3939 | 0:f28de891b0d3 | 8 | // by writing this required bit pattern |
okini3939 | 0:f28de891b0d3 | 9 | void kick(); |
okini3939 | 0:f28de891b0d3 | 10 | |
okini3939 | 0:f28de891b0d3 | 11 | int getFlg (); |
okini3939 | 0:f28de891b0d3 | 12 | }; |