api-hal-pwm.h 416 B

12345678910111213141516
  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. #ifdef __cplusplus
  12. }
  13. #endif