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