46 #include "mxc_config.h" 63 #define SEC(s) (((unsigned long)s) * 1000000UL) 66 #define MSEC(ms) (ms * 1000UL) void TMR_TO_Start(mxc_tmr_regs_t *tmr, unsigned long us, const sys_cfg_tmr_t *sys_cfg)
Start the timeout time for the specified number of microseconds.
unsigned int TMR_SW_Stop(mxc_tmr_regs_t *tmr)
Stop the stopwatch and return the number of microseconds that have elapsed.
unsigned int TMR_TO_Elapsed(mxc_tmr_regs_t *tmr)
Get the number of microseconds elapsed since TMR_TO_Start().
void TMR_TO_Clear(mxc_tmr_regs_t *tmr)
Clears the timeout flag.
int TMR_TO_Check(mxc_tmr_regs_t *tmr)
Check if the timeout has occurred.
unsigned int TMR_TO_Remaining(mxc_tmr_regs_t *tmr)
Get the number of microseconds remaining in the timeout.
void TMR_SW_Start(mxc_tmr_regs_t *tmr, const sys_cfg_tmr_t *sys_cfg)
Start the stopwatch.
Structure type to access the TMR Registers.
Definition: tmr_regs.h:88
void TMR_TO_Stop(mxc_tmr_regs_t *tmr)
Stops the timer for the timeout.
void TMR_Delay(mxc_tmr_regs_t *tmr, unsigned long us, const sys_cfg_tmr_t *sys_cfg)
Delays for the specified number of microseconds.