-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWatchdog_Timer.h
More file actions
29 lines (23 loc) · 853 Bytes
/
Copy pathWatchdog_Timer.h
File metadata and controls
29 lines (23 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* Watchdog_Timer.h
*
* Created on: Jan 29, 2019
* Author: Itachi
*/
#ifndef WATCHDOG_TIMER_H_
#define WATCHDOG_TIMER_H_
/* Watchdog_Init(unsigned char max_timeout_sec)
* Function: Initialize for Watchdog-Timer to reset system after max_timeout_sec without WDT interrupt
* Input: unsigned char max_timeout_sec - The number of second to reset if the dog didn't feed
(Maximum 107 second with 80Mhz)
* Output: None
*/
void Watchdog_Init(unsigned char max_timeout_sec);
/* Watchdog_Feed(unsigned char max_timeout_sec)
* Function: Reload value for WDT (prevent from RESET system)
* Input: unsigned char max_timeout_sec - The number of second to reset if the dog haven't feeded
(Maximum 107 second with 80Mhz)
* Output: None
*/
void Watchdog_Feed(unsigned char max_timeout_sec);
#endif /* WATCHDOG_TIMER_H_ */