uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lpc17xx_rit.h
Go to the documentation of this file.
1 /***********************************************************************/
21 /* Peripheral group ----------------------------------------------------------- */
27 #ifndef LPC17XX_RIT_H_
28 #define LPC17XX_RIT_H_
29 
30 /* Includes ------------------------------------------------------------------- */
31 #include "LPC17xx.h"
32 #include "lpc_types.h"
33 
34 
35 #ifdef __cplusplus
36 extern "C"
37 {
38 #endif
39 
40 
41 /* Private Macros ------------------------------------------------------------- */
46 /* --------------------- BIT DEFINITIONS -------------------------------------- */
47 /*********************************************************************/
51 #define RIT_CTRL_INTEN ((uint32_t) (1))
52 
53 #define RIT_CTRL_ENCLR ((uint32_t) _BIT(1))
54 
55 #define RIT_CTRL_ENBR ((uint32_t) _BIT(2))
56 
57 #define RIT_CTRL_TEN ((uint32_t) _BIT(3))
58 
60 #define PARAM_RITx(n) (((uint32_t *)n)==((uint32_t *)LPC_RIT))
61 
67 /* Public Functions ----------------------------------------------------------- */
71 /* RIT Init/DeInit functions */
72 void RIT_Init(LPC_RIT_TypeDef *RITx);
73 void RIT_DeInit(LPC_RIT_TypeDef *RITx);
74 
75 /* RIT config timer functions */
76 void RIT_TimerConfig(LPC_RIT_TypeDef *RITx, uint32_t time_interval);
77 
78 /* Enable/Disable RIT functions */
80 void RIT_Cmd(LPC_RIT_TypeDef *RITx, FunctionalState NewState);
82 
83 /* RIT Interrupt functions */
85 
90 #ifdef __cplusplus
91 }
92 #endif
93 
94 #endif /* LPC17XX_RIT_H_ */
95 
100 /* --------------------------------- End Of File ------------------------------ */