mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-22 17:12:55 +08:00
19 lines
292 B
C
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);
|
||
|
}
|