The MCUXpresso SDK provides a driver for the TSTMR module of MCUXpresso SDK devices.
static uint64_t TSTMR_ReadTimeStamp |
( |
TSTMR_Type * |
base | ) |
|
|
inlinestatic |
This function reads the low and high registers and returns the 56-bit free running counter value. This can be read by software at any time to determine the software ticks.
- Parameters
-
base | TSTMR peripheral base address. |
- Returns
- The 56-bit time stamp value.
static void TSTMR_DelayUs |
( |
TSTMR_Type * |
base, |
|
|
uint32_t |
delayInUs |
|
) |
| |
|
inlinestatic |
This function repeatedly reads the timestamp register and waits for the user-specified delay value.
- Parameters
-
base | TSTMR peripheral base address. |
delayInUs | Delay value in microseconds. |