api-hal-delay.h 314 B

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