![]() |
LPCOpen Platform for LPC112X microcontrollers
112X
LPCOpen Platform for the NXP LPC112X family of Microcontrollers
|
Functions | |
void | StopWatch_Init (void) |
Initialize stopwatch. More... | |
uint32_t | StopWatch_Start (void) |
Start a stopwatch. More... | |
STATIC INLINE uint32_t | StopWatch_Elapsed (uint32_t startTime) |
Returns number of ticks elapsed since stopwatch was started. More... | |
uint32_t | StopWatch_TicksPerSecond (void) |
Returns number of ticks per second of the stopwatch timer. More... | |
uint32_t | StopWatch_TicksToMs (uint32_t ticks) |
Converts from stopwatch ticks to mS. More... | |
uint32_t | StopWatch_TicksToUs (uint32_t ticks) |
Converts from stopwatch ticks to uS. More... | |
uint32_t | StopWatch_MsToTicks (uint32_t mS) |
Converts from mS to stopwatch ticks. More... | |
uint32_t | StopWatch_UsToTicks (uint32_t uS) |
Converts from uS to stopwatch ticks. More... | |
STATIC INLINE void | StopWatch_DelayTicks (uint32_t ticks) |
Delays the given number of ticks using stopwatch primitives. More... | |
STATIC INLINE void | StopWatch_DelayMs (uint32_t mS) |
Delays the given number of mS using stopwatch primitives. More... | |
STATIC INLINE void | StopWatch_DelayUs (uint32_t uS) |
Delays the given number of uS using stopwatch primitives. More... | |
Delays the given number of mS using stopwatch primitives.
mS | : Number of mS to delay |
Definition at line 114 of file stopwatch.h.
Delays the given number of ticks using stopwatch primitives.
ticks | : Number of ticks to delay |
Definition at line 103 of file stopwatch.h.
Delays the given number of uS using stopwatch primitives.
uS | : Number of uS to delay |
Definition at line 126 of file stopwatch.h.
Returns number of ticks elapsed since stopwatch was started.
startTime | : Time returned by StopWatch_Start(). |
Definition at line 59 of file stopwatch.h.
void StopWatch_Init | ( | void | ) |
Initialize stopwatch.
uint32_t StopWatch_MsToTicks | ( | uint32_t | mS | ) |
Converts from mS to stopwatch ticks.
mS | : Duration in mS to convert to ticks. |
uint32_t StopWatch_Start | ( | void | ) |
Start a stopwatch.
uint32_t StopWatch_TicksPerSecond | ( | void | ) |
Returns number of ticks per second of the stopwatch timer.
uint32_t StopWatch_TicksToMs | ( | uint32_t | ticks | ) |
Converts from stopwatch ticks to mS.
ticks | : Duration in ticks to convert to mS. |
uint32_t StopWatch_TicksToUs | ( | uint32_t | ticks | ) |
Converts from stopwatch ticks to uS.
ticks | : Duration in ticks to convert to uS. |
uint32_t StopWatch_UsToTicks | ( | uint32_t | uS | ) |
Converts from uS to stopwatch ticks.
uS | : Duration in uS to convert to ticks. |