|
AM263x MCU+ SDK
09.01.00
|
|
Go to the documentation of this file.
56 #include <drivers/hw_include/cslr_rti.h>
77 #define RTI_GC_STALL_MODE_ON (CSL_RTI_RTIGCTRL_COS_STOPPED)
79 #define RTI_GC_STALL_MODE_OFF (CSL_RTI_RTIGCTRL_COS_RUNNING)
91 #define RTI_TMR_CNT_BLK_INDEX_0 (0U)
93 #define RTI_TMR_CNT_BLK_INDEX_1 (1U)
95 #define RTI_TMR_CNT_BLK_INDEX_MAX (RTI_TMR_CNT_BLK_INDEX_1)
107 #define RTI_TMR_CMP_BLK_INDEX_0 (0U)
109 #define RTI_TMR_CMP_BLK_INDEX_1 (1U)
111 #define RTI_TMR_CMP_BLK_INDEX_2 (2U)
113 #define RTI_TMR_CMP_BLK_INDEX_3 (3U)
115 #define RTI_TMR_CMP_BLK_INDEX_MAX (RTI_TMR_CMP_BLK_INDEX_3)
125 #define RTI_TMR_MIN_PRESCALER_VAL (1U)
127 #define RTI_TMR_MAX_PRESACLER_VAL (0xFFFFFFFFU)
137 #define RTI_TMR_INT_INT0_FLAG (CSL_RTI_RTISETINT_SETINT0_MASK)
139 #define RTI_TMR_INT_INT1_FLAG (CSL_RTI_RTISETINT_SETINT1_MASK)
141 #define RTI_TMR_INT_INT2_FLAG (CSL_RTI_RTISETINT_SETINT2_MASK)
143 #define RTI_TMR_INT_INT3_FLAG (CSL_RTI_RTISETINT_SETINT3_MASK)
146 #define RTI_TMR_INT_DMA0_FLAG (CSL_RTI_RTISETINT_SETDMA0_MASK)
148 #define RTI_TMR_INT_DMA1_FLAG (CSL_RTI_RTISETINT_SETDMA1_MASK)
150 #define RTI_TMR_INT_DMA2_FLAG (CSL_RTI_RTISETINT_SETDMA2_MASK)
152 #define RTI_TMR_INT_DMA3_FLAG (CSL_RTI_RTISETINT_SETDMA3_MASK)
155 #define RTI_TMR_INT_TB_FLAG (CSL_RTI_RTISETINT_SETTBINT_MASK)
157 #define RTI_TMR_INT_OVL0_FLAG (CSL_RTI_RTISETINT_SETOVL0INT_MASK)
159 #define RTI_TMR_INT_OVL1_FLAG (CSL_RTI_RTISETINT_SETOVL1INT_MASK)
162 #define RTI_TMR_INT_STATUS_ALL (RTI_TMR_INT_INT0_FLAG | \
163 RTI_TMR_INT_INT1_FLAG | \
164 RTI_TMR_INT_INT2_FLAG | \
165 RTI_TMR_INT_INT3_FLAG | \
166 RTI_TMR_INT_TB_FLAG | \
167 RTI_TMR_INT_OVL0_FLAG | \
168 RTI_TMR_INT_OVL1_FLAG)
170 #define RTI_TMR_INT_REQ_ALL (RTI_TMR_INT_INT0_FLAG | \
171 RTI_TMR_INT_INT1_FLAG | \
172 RTI_TMR_INT_INT2_FLAG | \
173 RTI_TMR_INT_INT3_FLAG | \
174 RTI_TMR_INT_DMA0_FLAG | \
175 RTI_TMR_INT_DMA1_FLAG | \
176 RTI_TMR_INT_DMA2_FLAG | \
177 RTI_TMR_INT_DMA3_FLAG | \
178 RTI_TMR_INT_TB_FLAG | \
179 RTI_TMR_INT_OVL0_FLAG | \
180 RTI_TMR_INT_OVL1_FLAG)
190 #define RTI_TMR_INT_AUTO_CLR_ENABLE_FLAG (0x0000000FU)
192 #define RTI_TMR_INT_AUTO_CLR_DISABLE_FLAG (0x00000005U)
204 #define RTI_TMR_NTU_0 (0x0U)
206 #define RTI_TMR_NTU_1 (0x5U)
208 #define RTI_TMR_NTU_2 (0xAU)
210 #define RTI_TMR_NTU_3 (0xFU)
222 #define RTI_TMR_CAPTURE_EVT_0 (0U)
224 #define RTI_TMR_CAPTURE_EVT_1 (1U)
226 #define RTI_TMR_CAPTURE_EVT_MAX (RTI_TMR_CAPTURE_EVT_1)
238 #define RTI_TMR_CLK_SRC_COUNTER (0U)
240 #define RTI_TMR_CLK_SRC_NTU (1U)
333 int32_t
RTI_counterGet(uint32_t baseAddr, uint32_t cntIndex, uint32_t *counterLow, uint32_t *counterHigh);
377 int32_t
RTI_compareEventConfig(uint32_t baseAddr, uint32_t cmpIndex, uint32_t cntBlkIndex, uint32_t cmpVal, uint32_t period);
392 int32_t
RTI_counterConfigure(uint32_t baseAddr, uint32_t cntBlkIndex, uint32_t clkSrc, uint32_t ntu, uint32_t prescaler);
uint32_t RTI_intStatusGet(uint32_t baseAddr)
Read the status of INTFLAG register.
int32_t RTI_compareClear(uint32_t baseAddr, uint32_t cmpIndex)
Clear Timer Compare block.
int32_t RTI_intAutoClearEnable(uint32_t baseAddr, uint32_t cmpIndex)
Enable the Compare interrupt auto clear.
uint32_t RTI_compareGet(uint32_t baseAddr, uint32_t cmpIndex)
Get the compare match register contents.
int32_t RTI_compareEventConfig(uint32_t baseAddr, uint32_t cmpIndex, uint32_t cntBlkIndex, uint32_t cmpVal, uint32_t period)
Confiure Compare operation.
int32_t RTI_counterEnable(uint32_t baseAddr, uint32_t cntIndex)
Start the timer.
int32_t RTI_intAutoClearDisable(uint32_t baseAddr, uint32_t cmpIndex)
Disable the Compare interrupt auto clear.
int32_t RTI_counterClear(uint32_t baseAddr, uint32_t cntIndex)
Clear Timer Counter block.
int32_t RTI_intDisable(uint32_t baseAddr, uint32_t intFlags)
Disable the Timer interrupts.
int32_t RTI_intStatusClear(uint32_t baseAddr, uint32_t intFlags)
Clear the status of interrupt events.
int32_t RTI_captureConfig(uint32_t baseAddr, uint32_t cntIndex, uint32_t cntrCapSrc)
Configure Capture operation.
int32_t RTI_compareClearConfig(uint32_t baseAddr, uint32_t cmpIndex, uint32_t cmpClearVal)
Confiure Compare Clear operation.
int32_t RTIG_setStallMode(uint32_t baseAddr, uint32_t stallMode)
Set the stall mode in RTI Global Control.
int32_t RTI_counterDisable(uint32_t baseAddr, uint32_t cntIndex)
Stop the timer.
int32_t RTI_captureCounterGet(uint32_t baseAddr, uint32_t cntIndex, uint32_t *counterLow, uint32_t *counterHigh)
Get/Read the counter value from the capture registers.
int32_t RTI_counterGet(uint32_t baseAddr, uint32_t cntIndex, uint32_t *counterLow, uint32_t *counterHigh)
Get/Read the counter value from the counter registers.
int32_t RTI_counterConfigure(uint32_t baseAddr, uint32_t cntBlkIndex, uint32_t clkSrc, uint32_t ntu, uint32_t prescaler)
Confiure Compare operation.
int32_t RTI_intEnable(uint32_t baseAddr, uint32_t intFlags)
Enable the Timer interrupts.