no-OS
no_os_delay.h
Go to the documentation of this file.
1 /***************************************************************************/
40 #ifndef _NO_OS_DELAY_H_
41 #define _NO_OS_DELAY_H_
42 
43 /******************************************************************************/
44 /***************************** Include Files **********************************/
45 /******************************************************************************/
46 
47 #include <stdint.h>
48 
53 struct no_os_time {
54  unsigned int s, us;
55 };
56 
57 /******************************************************************************/
58 /************************ Functions Declarations ******************************/
59 /******************************************************************************/
60 
61 /* Generate microseconds delay. */
62 void no_os_udelay(uint32_t usecs);
63 
64 /* Generate miliseconds delay. */
65 void no_os_mdelay(uint32_t msecs);
66 
67 /* Get current time */
68 struct no_os_time no_os_get_time(void);
69 
70 #endif // _NO_OS_DELAY_H_
no_os_time
Structure holding time data (seconds, microseconds).
Definition: no_os_delay.h:53
no_os_mdelay
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:132
no_os_time::us
unsigned int us
Definition: no_os_delay.h:54
no_os_udelay
void no_os_udelay(uint32_t usecs)
Wait until usecs microseconds passed.
Definition: aducm3029_delay.c:120
no_os_time::s
unsigned int s
Definition: no_os_delay.h:54
no_os_get_time
struct no_os_time no_os_get_time(void)
Get current time.
Definition: maxim_delay.c:79