16 lines
347 B
C
16 lines
347 B
C
#include "board.h"
|
|
|
|
#include "py32f0xx_hal.h"
|
|
|
|
void BOARD_InitBootPins(void) {
|
|
__HAL_RCC_GPIOB_CLK_ENABLE();
|
|
|
|
GPIO_InitTypeDef init = {
|
|
.Pin = GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_3,
|
|
.Mode = GPIO_MODE_OUTPUT_PP,
|
|
.Speed = GPIO_SPEED_FREQ_LOW,
|
|
.Pull = GPIO_NOPULL,
|
|
};
|
|
|
|
HAL_GPIO_Init(GPIOB, &init);
|
|
} |