aboutsummaryrefslogtreecommitdiff
path: root/src/stm32
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-03-31 16:28:17 +0200
committerlonkaars <loek@pipeframe.xyz>2023-03-31 16:28:17 +0200
commit46bf4306575fa31fccaff19f0a592f8b40dd46cb (patch)
tree0f317374e4d81af5862804d588ca05f44c7fb325 /src/stm32
parentfa296fbc6fe1c423932189116bd0cb949de0beef (diff)
it's working
Diffstat (limited to 'src/stm32')
-rw-r--r--src/stm32/setup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stm32/setup.c b/src/stm32/setup.c
index b0abe7a..4f56535 100644
--- a/src/stm32/setup.c
+++ b/src/stm32/setup.c
@@ -137,13 +137,14 @@ void hh_io_gpio_setup() {
.Pin = GPIO_PIN_9,
.Mode = GPIO_MODE_OUTPUT_PP,
.Pull = GPIO_NOPULL,
- .Speed = GPIO_SPEED_FREQ_LOW,
+ .Speed = GPIO_SPEED_FREQ_HIGH,
});
HAL_GPIO_Init(GPIOA, &(GPIO_InitTypeDef) {
.Pin = GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6|GPIO_PIN_8,
.Mode = GPIO_MODE_INPUT,
.Pull = GPIO_PULLDOWN,
});
+ HAL_GPIO_WritePin(GPIOA, GPIO_PIN_9, GPIO_PIN_RESET);
}
void HAL_MspInit() {