62 #include <inc/hw_ints.h>
63 #include <inc/hw_nvic.h>
64 #include <inc/hw_types.h>
98 HWREG(NVIC_ST_CTRL) |= NVIC_ST_CTRL_CLK_SRC | NVIC_ST_CTRL_ENABLE;
117 HWREG(NVIC_ST_CTRL) &= ~(NVIC_ST_CTRL_ENABLE);
146 HWREG(NVIC_ST_CTRL) |= NVIC_ST_CTRL_INTEN;
168 HWREG(NVIC_ST_CTRL) &= ~(NVIC_ST_CTRL_INTEN);
196 HWREG(NVIC_ST_CTRL) |= NVIC_ST_CTRL_INTEN;
215 HWREG(NVIC_ST_CTRL) &= ~(NVIC_ST_CTRL_INTEN);
243 ASSERT((ui32Period > 0) && (ui32Period <= 16777216));
248 HWREG(NVIC_ST_RELOAD) = ui32Period - 1;
261 __STATIC_INLINE uint32_t
267 return(HWREG(NVIC_ST_RELOAD) + 1);
280 __STATIC_INLINE uint32_t
286 return(HWREG(NVIC_ST_CURRENT));
298 #endif // __SYSTICK_H__
__STATIC_INLINE void SysTickDisable(void)
Disables the SysTick counter.
__STATIC_INLINE void SysTickIntUnregister(void)
Unregisters the interrupt handler for the SysTick interrupt.
__STATIC_INLINE uint32_t SysTickValueGet(void)
Gets the current value of the SysTick counter.
__STATIC_INLINE uint32_t SysTickPeriodGet(void)
Gets the period of the SysTick counter.
__STATIC_INLINE void SysTickPeriodSet(uint32_t ui32Period)
Sets the period of the SysTick counter.
__STATIC_INLINE void SysTickIntDisable(void)
Disables the SysTick interrupt.
__STATIC_INLINE void SysTickEnable(void)
Enables the SysTick counter.
void IntUnregister(uint32_t ui32Interrupt)
Unregisters the function to be called when an interrupt occurs.
__STATIC_INLINE void SysTickIntRegister(void(*pfnHandler)(void))
Registers an interrupt handler for the SysTick interrupt.
__STATIC_INLINE void SysTickIntEnable(void)
Enables the SysTick interrupt.
void IntRegister(uint32_t ui32Interrupt, void(*pfnHandler)(void))
Registers a function to be called when an interrupt occurs.