Firmware SDK
twr_delay.c
1
#include <twr_delay.h>
2
#include <twr_timer.h>
3
#include <twr_gpio.h>
4
5
void
twr_delay_us
(uint16_t microseconds)
6
{
7
twr_timer_init
();
8
twr_timer_start
();
9
twr_timer_delay
(microseconds);
10
twr_timer_stop
();
11
}
twr_delay_us
void twr_delay_us(uint16_t microseconds)
Delay us.
Definition:
twr_delay.c:5
twr_timer_init
void twr_timer_init(void)
Initialize timer.
Definition:
twr_timer.c:23
twr_timer_delay
void twr_timer_delay(uint16_t microseconds)
Relative delay.
Definition:
twr_timer.c:59
twr_timer_stop
void twr_timer_stop(void)
Stop timer.
Definition:
twr_timer.c:42
twr_timer_start
void twr_timer_start(void)
Start timer.
Definition:
twr_timer.c:28
twr
src
twr_delay.c
Generated by
1.9.1