Functions | |
__STATIC_INLINE void | SysTickEnable (void) |
Enables the SysTick counter. More... | |
__STATIC_INLINE void | SysTickDisable (void) |
Disables the SysTick counter. More... | |
__STATIC_INLINE void | SysTickIntRegister (void(*pfnHandler)(void)) |
Registers an interrupt handler for the SysTick interrupt. More... | |
__STATIC_INLINE void | SysTickIntUnregister (void) |
Unregisters the interrupt handler for the SysTick interrupt. More... | |
__STATIC_INLINE void | SysTickIntEnable (void) |
Enables the SysTick interrupt. More... | |
__STATIC_INLINE void | SysTickIntDisable (void) |
Disables the SysTick interrupt. More... | |
__STATIC_INLINE void | SysTickPeriodSet (uint32_t ui32Period) |
Sets the period of the SysTick counter. More... | |
__STATIC_INLINE uint32_t | SysTickPeriodGet (void) |
Gets the period of the SysTick counter. More... | |
__STATIC_INLINE uint32_t | SysTickValueGet (void) |
Gets the current value of the SysTick counter. More... | |
__STATIC_INLINE void SysTickDisable | ( | void | ) |
__STATIC_INLINE void SysTickEnable | ( | void | ) |
Enables the SysTick counter.
This will start the SysTick counter. If an interrupt handler has been registered, it will be called when the SysTick counter rolls over.
__STATIC_INLINE void SysTickIntDisable | ( | void | ) |
__STATIC_INLINE void SysTickIntEnable | ( | void | ) |
Enables the SysTick interrupt.
This function will enable the SysTick interrupt, allowing it to be reflected to the processor.
__STATIC_INLINE void SysTickIntRegister | ( | void(*)(void) | pfnHandler | ) |
Registers an interrupt handler for the SysTick interrupt.
This sets the handler to be called when a SysTick interrupt occurs.
pfnHandler | is a pointer to the function to be called when the SysTick interrupt occurs. |
__STATIC_INLINE void SysTickIntUnregister | ( | void | ) |
Unregisters the interrupt handler for the SysTick interrupt.
This function will clear the handler to be called when a SysTick interrupt occurs.
__STATIC_INLINE uint32_t SysTickPeriodGet | ( | void | ) |
__STATIC_INLINE void SysTickPeriodSet | ( | uint32_t | ui32Period | ) |
Sets the period of the SysTick counter.
This function sets the rate at which the SysTick counter wraps; this equals to the number of processor clocks between interrupts.
ui32Period
supplied here on the next clock after the SysTick is enabled.ui32Period | is the number of clock ticks in each period of the SysTick counter; must be between 1 and 16,777,216 (0x1000000), both included. |
__STATIC_INLINE uint32_t SysTickValueGet | ( | void | ) |