2023-06-10 11:52:00 +08:00
|
|
|
#ifndef __CORE_DELAY_H
|
|
|
|
#define __CORE_DELAY_H
|
|
|
|
|
|
|
|
#include "stdint.h"
|
|
|
|
#include "stdbool.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int delay_init(void);
|
|
|
|
|
|
|
|
void delay_us(uint32_t us);
|
|
|
|
|
2024-01-08 18:04:05 +08:00
|
|
|
uint32_t delay_get_us(void);
|
2023-06-10 11:52:00 +08:00
|
|
|
|
2024-01-08 18:04:05 +08:00
|
|
|
int delay_check(uint32_t old,uint32_t wnd);
|
2023-06-10 11:52:00 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __CORE_DELAY_H */
|
|
|
|
|