27#ifndef LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32672_MXC_DELAY_H_
28#define LIBRARIES_PERIPHDRIVERS_INCLUDE_MAX32672_MXC_DELAY_H_
50#define MXC_DELAY_SEC(s) (((uint32_t)s) * 1000000UL)
57#define MXC_DELAY_MSEC(ms) (ms * 1000UL)
64#define MXC_DELAY_USEC(us) (us)
int MXC_DelayAsync(uint32_t us, mxc_delay_complete_t callback)
Starts a non-blocking delay for the specified number of microseconds.
void(* mxc_delay_complete_t)(int result)
The callback routine used by MXC_DelayAsync() when the delay is complete or aborted early.
Definition: mxc_delay.h:72
int MXC_DelayCheck(void)
Returns the status of a non-blocking delay request.
void MXC_DelayAbort(void)
Stops an asynchronous delay previously started.
void MXC_DelayHandler(void)
Processes the delay interrupt.
int MXC_Delay(uint32_t us)
Blocks and delays for the specified number of microseconds.