Mercurial > public > ostc4
diff Small_CPU/Src/gpio.c @ 938:df87dbfc9c21 Evo_2_23
Update GPIO:
Splitted the init function and moved GPS deactivation into the sleep loop (deep sleep)
author | Ideenmodellierer |
---|---|
date | Tue, 10 Dec 2024 21:00:55 +0100 |
parents | f2494a708f52 |
children | 96cf6c53c934 |
line wrap: on
line diff
--- a/Small_CPU/Src/gpio.c Tue Dec 10 20:59:37 2024 +0100 +++ b/Small_CPU/Src/gpio.c Tue Dec 10 21:00:55 2024 +0100 @@ -56,6 +56,11 @@ GPIO_InitStructure.Speed = GPIO_SPEED_LOW; HAL_GPIO_Init( GPIOA, &GPIO_InitStructure); HAL_GPIO_WritePin( GPIOA, VIBRATION_CONTROL_PIN, GPIO_PIN_RESET); +} + +void GPIO_GNSS_Init() +{ + GPIO_InitTypeDef GPIO_InitStructure; __GPIOB_CLK_ENABLE(); GPIO_InitStructure.Pin = GPS_POWER_CONTROL_PIN;