diff --git a/src/gpio.c b/src/gpio.c --- a/src/gpio.c +++ b/src/gpio.c @@ -25,6 +25,15 @@ void gpio_init(void) GPIO_InitStruct.Speed = GPIO_SPEED_LOW; HAL_GPIO_Init(LED_RED_GPIO_Port, &GPIO_InitStruct); + // Configure Gate Drive GPIO pins + GPIO_InitStruct.Pin = GATE_DRIVE_Pin; + GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; + GPIO_InitStruct.Pull = GPIO_NOPULL; + GPIO_InitStruct.Speed = GPIO_SPEED_HIGH; + HAL_GPIO_Init(GATE_DRIVE_GPIO_Port, &GPIO_InitStruct); + + // Define startup State HAL_GPIO_WritePin(LED_RED, 1); + HAL_GPIO_WritePin(GATE_DRIVE, 1); }