+DIP, add mode switching at boot

This commit is contained in:
2026-11-10 17:18:10 +02:00
parent 2c348030ab
commit 188e9af392
12 changed files with 165 additions and 5 deletions
+11
View File
@@ -0,0 +1,11 @@
#include "main.h"
void HW_DIP_Init(void)
{
__HAL_RCC_GPIOE_CLK_ENABLE();
GPIO_InitTypeDef GPIO_InitStruct = {0};
GPIO_InitStruct.Pin = GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
}