1.23. lpc17xx_rit
Module¶
Repetitive interrupt timer client library functions. Find implementation details in LPC17xx CMSIS-Compliant Standard Peripheral Firmware Driver Library documentation.
-
robovero.lpc17xx_rit.
RIT_Cmd
(RITx, NewState)¶ Enable/Disable Timer.
Args:
- RITx: peripheral selected, should be: LPC_RIT
- NewState New state of this function:
- ENABLE: Enable Timer
- DISABLE: Disable Timer
-
robovero.lpc17xx_rit.
RIT_DeInit
(RITx)¶ Deinitialize RIT.
- Turn off power and clock
- Reset default register values
Args:
- RITx: peripheral selected, should be: LPC_RIT
-
robovero.lpc17xx_rit.
RIT_GetIntStatus
(RITx)¶ Check whether interrupt flag is set or not.
Args:
- RITx: peripheral selected, should be: LPC_RIT
Return:
- Current interrupt status, could be: SET/RESET
-
robovero.lpc17xx_rit.
RIT_Init
(RITx)¶ Initialize RIT.
- Turn on power and clock
- Setup default register values
Args:
- RITx: peripheral selected, should be: LPC_RIT
-
robovero.lpc17xx_rit.
RIT_TimerConfig
(RITx, time_interval)¶ Set compare value, mask value and time counter value.
Args:
- RITx: peripheral selected, should be: LPC_RIT
- time_interval: timer interval value (ms)
-
robovero.lpc17xx_rit.
RIT_TimerDebugCmd
(RITx, NewState)¶ Timer Enable/Disable on debug.
Args:
RITx: peripheral selected, should be: LPC_RIT
NewState: New State of this function
-ENABLE: The timer is halted whenever a hardware break condition occurs -DISABLE: Hardware break has no effect on the timer operation