#include "board.h"#include <assert.h>Go to the source code of this file.
Defines | |
| #define | MAX_TIMER 4 |
Functions | |
| void | SysTick_Handler (void) |
| Handler for System Tick interrupt. | |
| void | SetTimeEvent (TimeEvent *pEvent) |
| uint32_t | TimeTick_Configure (void) |
| Configures the System Timer. Systick interrupt handler will generates 1ms interrupt and increase a tickCount. | |
| 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. | |
Variables | |
| SyTickDelayCounter_t | DelayTimer |
Implement the System Timer.
Definition in file timetick.c.
| 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 134 of file timetick.c.
| uint32_t GetTicks | ( | void | ) |
Get Delayed number of tick.
| startTick | Start tick point. | |
| endTick | End tick point. |
Definition at line 149 of file timetick.c.
| void Sleep | ( | volatile uint32_t | dwMs | ) |
Sync Sleep for several ms.
| dwMs | Sleeping time in ms. |
Definition at line 177 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 99 of file timetick.c.
| void Wait | ( | volatile uint32_t | dwMs | ) |
Sync Wait for several ms.
| dwMs | Waiting time in ms. |
Definition at line 160 of file timetick.c.

1.7.1