This module provides simple loop-based delay routines for those applications requiring a brief wait during execution.
Common for API ver. 2.
Macros | |
#define | delay_ms(delay) ((delay) ? cpu_delay_ms(delay) : cpu_delay_us(1)) |
Delay in at least specified number of milliseconds. More... | |
#define | delay_s(delay) ((delay) ? cpu_delay_s(delay) : cpu_delay_us(1)) |
Delay in at least specified number of seconds. More... | |
#define | delay_us(delay) ((delay) ? cpu_delay_us(delay) : cpu_delay_us(1)) |
Delay in at least specified number of microseconds. More... | |
Functions | |
void | delay_init (void) |
Initialize the delay driver. More... | |
#define delay_ms | ( | delay | ) | ((delay) ? cpu_delay_ms(delay) : cpu_delay_us(1)) |
Delay in at least specified number of milliseconds.
delay | Delay in milliseconds |
Referenced by main().
#define delay_s | ( | delay | ) | ((delay) ? cpu_delay_s(delay) : cpu_delay_us(1)) |
Delay in at least specified number of seconds.
delay | Delay in seconds |
#define delay_us | ( | delay | ) | ((delay) ? cpu_delay_us(delay) : cpu_delay_us(1)) |
Delay in at least specified number of microseconds.
delay | Delay in microseconds |
void delay_init | ( | void | ) |