api-hal-delay.h 315 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "main.h"
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /** Init DWT */
  7. void api_hal_delay_init(void);
  8. /**
  9. * Delay in milliseconds
  10. * @warning Cannot be used from ISR
  11. */
  12. void delay(float milliseconds);
  13. /** Delay in microseconds */
  14. void delay_us(float microseconds);
  15. #ifdef __cplusplus
  16. }
  17. #endif