no-OS
no_os_delay.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef _NO_OS_DELAY_H_
35 #define _NO_OS_DELAY_H_
36 
37 /******************************************************************************/
38 /***************************** Include Files **********************************/
39 /******************************************************************************/
40 
41 #include <stdint.h>
42 
47 struct no_os_time {
48  unsigned int s, us;
49 };
50 
51 /******************************************************************************/
52 /************************ Functions Declarations ******************************/
53 /******************************************************************************/
54 
55 /* Generate microseconds delay. */
56 void no_os_udelay(uint32_t usecs);
57 
58 /* Generate miliseconds delay. */
59 void no_os_mdelay(uint32_t msecs);
60 
61 /* Get current time */
62 struct no_os_time no_os_get_time(void);
63 
64 #endif // _NO_OS_DELAY_H_
no_os_time
Structure holding time data (seconds, microseconds).
Definition: no_os_delay.h:47
no_os_mdelay
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
no_os_time::us
unsigned int us
Definition: no_os_delay.h:48
no_os_udelay
void no_os_udelay(uint32_t usecs)
Wait until usecs microseconds passed.
Definition: aducm3029_delay.c:114
no_os_time::s
unsigned int s
Definition: no_os_delay.h:48
no_os_get_time
struct no_os_time no_os_get_time(void)
Get current time.
Definition: chibios_delay.c:51