api-hal-pwm.h 482 B

12345678910111213141516171819
  1. #pragma once
  2. #include "main.h"
  3. #include "stdbool.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. void hal_pwm_set(float value, float freq, TIM_HandleTypeDef* tim, uint32_t channel);
  8. void hal_pwmn_set(float value, float freq, TIM_HandleTypeDef* tim, uint32_t channel);
  9. void hal_pwm_stop(TIM_HandleTypeDef* tim, uint32_t channel);
  10. void hal_pwmn_stop(TIM_HandleTypeDef* tim, uint32_t channel);
  11. void irda_pwm_set(float value, float freq);
  12. void irda_pwm_stop();
  13. #ifdef __cplusplus
  14. }
  15. #endif