Project

General

Profile

Statistics
| Branch: | Revision:

robobuggy / arduino / RadioBuggyMega / watchdog.h @ 6b9a71b0

History | View | Annotate | Download (412 Bytes)

1
/**
2
 * @file watchdog.h
3
 * @brief Headers for Receiver
4
 * 
5
 * @author: Audrey Yeoh (ayeoh)
6
 */
7
 
8
#ifndef _WATCHDOG_H_
9
#define _WATCHDOG_H_
10

    
11
#ifdef __cplusplus
12
extern "C"{
13
#endif
14

    
15
typedef void (*fail_function_ptr)(void);
16

    
17
void watchdog_init(int timeThresh, fail_function_ptr f);
18

    
19
void watchdog_feed();
20

    
21
void watchdog_loop();
22

    
23
#ifdef __cplusplus
24
} // extern "C"
25
#endif /* __cplusplus */
26

    
27
#endif /* _WATCHDOG_H_ */