64 #include <inc/hw_ints.h>
65 #include <inc/hw_nvic.h>
66 #include <inc/hw_types.h>
100 HWREG(NVIC_ST_CTRL) |= NVIC_ST_CTRL_CLK_SRC | NVIC_ST_CTRL_ENABLE;
119 HWREG(NVIC_ST_CTRL) &= ~(NVIC_ST_CTRL_ENABLE);
148 HWREG(NVIC_ST_CTRL) |= NVIC_ST_CTRL_INTEN;
170 HWREG(NVIC_ST_CTRL) &= ~(NVIC_ST_CTRL_INTEN);
198 HWREG(NVIC_ST_CTRL) |= NVIC_ST_CTRL_INTEN;
217 HWREG(NVIC_ST_CTRL) &= ~(NVIC_ST_CTRL_INTEN);
245 ASSERT((ui32Period > 0) && (ui32Period <= 16777216));
250 HWREG(NVIC_ST_RELOAD) = ui32Period - 1;
263 __STATIC_INLINE uint32_t
269 return(HWREG(NVIC_ST_RELOAD) + 1);
282 __STATIC_INLINE uint32_t
288 return(HWREG(NVIC_ST_CURRENT));
300 #endif // __SYSTICK_H__
static void SysTickDisable(void)
Disables the SysTick counter.
static void SysTickPeriodSet(uint32_t ui32Period)
Sets the period of the SysTick counter.
static uint32_t SysTickValueGet(void)
Gets the current value of the SysTick counter.
static void SysTickIntUnregister(void)
Unregisters the interrupt handler for the SysTick interrupt.
static void SysTickIntEnable(void)
Enables the SysTick interrupt.
void IntUnregister(uint32_t ui32Interrupt)
Unregisters the function to be called when an interrupt occurs.
static uint32_t SysTickPeriodGet(void)
Gets the period of the SysTick counter.
static void SysTickIntDisable(void)
Disables the SysTick interrupt.
static void SysTickEnable(void)
Enables the SysTick counter.
static void SysTickIntRegister(void(*pfnHandler)(void))
Registers an interrupt handler for the SysTick interrupt.
void IntRegister(uint32_t ui32Interrupt, void(*pfnHandler)(void))
Registers a function to be called when an interrupt occurs.