#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | SyTickDelayCounter_t |
struct | TimeEvent |
Functions | |
uint32_t | TimeTick_Configure (void) |
Configures the System Timer. Systick interrupt handler will generates 1ms interrupt and increase a tickCount. | |
void | TimeTick_Increment (uint32_t dwInc) |
uint32_t | GetDelayInTicks (uint32_t startTick, uint32_t endTick) |
Get Delayed number of tick. | |
uint32_t | GetTicks (void) |
Get Delayed number of tick. | |
void | Wait (volatile uint32_t dwMs) |
Sync Wait for several ms. | |
void | Sleep (volatile uint32_t dwMs) |
Sync Sleep for several ms. | |
void | SetTimeEvent (TimeEvent *pEvent) |
Methods and definitions for Global time tick and wait functions.
Defines a common and simplest use of Time Tick, to increase tickCount every 1ms, the application can get this value through GetTickCount().
Definition in file timetick.h.
uint32_t GetDelayInTicks | ( | uint32_t | startTick, | |
uint32_t | endTick | |||
) |
Get Delayed number of tick.
startTick | Start tick point. | |
endTick | End tick point. |
Definition at line 129 of file timetick.c.
uint32_t GetTicks | ( | void | ) |
Get Delayed number of tick.
startTick | Start tick point. | |
endTick | End tick point. |
Definition at line 143 of file timetick.c.
void Sleep | ( | volatile uint32_t | dwMs | ) |
Sync Sleep for several ms.
dwMs | Sleeping time in ms. |
Definition at line 171 of file timetick.c.
uint32_t TimeTick_Configure | ( | void | ) |
Configures the System Timer. Systick interrupt handler will generates 1ms interrupt and increase a tickCount.
Definition at line 95 of file timetick.c.
void Wait | ( | volatile uint32_t | dwMs | ) |
Sync Wait for several ms.
dwMs | Waiting time in ms. |
Definition at line 154 of file timetick.c.