pikapython/bsp/w806/Demo/pwm/wm_hal_msp.c
2022-03-28 17:19:25 +08:00

19 lines
292 B
C

#include "wm_hal.h"
void HAL_MspInit(void)
{
}
void HAL_PWM_MspInit(PWM_HandleTypeDef *hpwm)
{
__HAL_RCC_PWM_CLK_ENABLE();
__HAL_AFIO_REMAP_PWM0(GPIOB, GPIO_PIN_0);
}
void HAL_PWM_MspDeInit(PWM_HandleTypeDef *hpwm)
{
__HAL_RCC_PWM_CLK_DISABLE();
HAL_GPIO_DeInit(GPIOB, GPIO_PIN_0);
}