2020-10-26 13:16:54 +06:00
|
|
|
#pragma once
|
|
|
|
#include "main.h"
|
|
|
|
|
2020-12-02 13:47:13 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2021-04-11 16:47:36 +03:00
|
|
|
/** Init DWT */
|
|
|
|
void api_hal_delay_init(void);
|
|
|
|
|
2021-03-24 12:35:33 +03:00
|
|
|
/**
|
|
|
|
* Delay in milliseconds
|
|
|
|
* @warning Cannot be used from ISR
|
|
|
|
*/
|
2020-10-29 10:58:19 +03:00
|
|
|
void delay(float milliseconds);
|
2021-03-24 12:35:33 +03:00
|
|
|
|
|
|
|
/** Delay in microseconds */
|
2020-10-29 10:58:19 +03:00
|
|
|
void delay_us(float microseconds);
|
2021-03-24 12:35:33 +03:00
|
|
|
|
2020-12-02 13:47:13 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|