diff --git a/src/gpio.c b/src/gpio.c --- a/src/gpio.c +++ b/src/gpio.c @@ -17,6 +17,7 @@ void gpio_init(void) GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_LOW; HAL_GPIO_Init(GPIOF, &GPIO_InitStruct); + HAL_GPIO_WritePin(GPIOF, OSC_EN_Pin, 0); // disable // GPS enable pin @@ -25,7 +26,7 @@ void gpio_init(void) GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_LOW; HAL_GPIO_Init(GPS_NEN_GPIO_Port, &GPIO_InitStruct); - + HAL_GPIO_WritePin(GPS_NEN_GPIO_Port, GPS_NEN_Pin, 1); // disable /*Configure GPIO pins : PA0 PA2 PA3 PA4 PA5 PA7 PA15 */ @@ -60,6 +61,7 @@ void gpio_init(void) GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_LOW; HAL_GPIO_Init(TCXO_EN_GPIO_Port, &GPIO_InitStruct); + HAL_GPIO_WritePin(TCXO_EN_GPIO_Port, TCXO_EN_Pin, 0); // disable }