lpc_rit.h
Go to the documentation of this file.
1 /*
2  * SocialLedge.com - Copyright (C) 2013
3  *
4  * This file is part of free software framework for embedded processors.
5  * You can use it and/or distribute it as long as this copyright header
6  * remains unmodified. The code is free for personal use and requires
7  * permission to use in a commercial product.
8  *
9  * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
10  * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
11  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
12  * I SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
13  * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
14  *
15  * You can reach the author of this software at :
16  * p r e e t . w i k i @ g m a i l . c o m
17  */
18 
25 #ifndef LPC_RIT_TIMER_H
26 #define LPC_RIT_TIMER_H
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 #include <stdint.h>
32 #include <stdbool.h>
33 #include "lpc_sys.h" // void_func_t
34 
40 void rit_enable(void_func_t function, uint32_t time_ms);
41 
43 void rit_disable(void);
44 
46 bool rit_is_running(void);
47 
48 
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 #endif /* LPC_RIT_TIMER_H */
Provides the following system services :
void(* void_func_t)(void)
Definition: lpc_sys.h:75
void rit_enable(void_func_t function, uint32_t time_ms)
Definition: lpc_rit.c:35
bool rit_is_running(void)
Definition: lpc_rit.c:74
void rit_disable(void)
Disables the RIT setup by sys_rit_setup()
Definition: lpc_rit.c:68