From b6e94a91be3ddd2349c48041ea633ff826c4a93d Mon Sep 17 00:00:00 2001 From: Sashi Ono Date: Tue, 7 Nov 2017 14:13:21 -0800 Subject: [PATCH] changed 1.8 and 2.8 V rails to be enabled. --- Src/main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Src/main.c b/Src/main.c index 428b3c2..d9b894d 100644 --- a/Src/main.c +++ b/Src/main.c @@ -530,10 +530,14 @@ static void MX_GPIO_Init(void) /*Configure GPIO pins : BUCK_ON_Pin LDO_ON_Pin */ GPIO_InitStruct.Pin = BUCK_ON_Pin|LDO_ON_Pin; - GPIO_InitStruct.Mode = GPIO_MODE_EVT_RISING; - GPIO_InitStruct.Pull = GPIO_NOPULL; + GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; + GPIO_InitStruct.Pull = GPIO_PULLUP; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); + HAL_GPIO_WritePin(GPIOB, BUCK_ON_Pin, GPIO_PIN_SET); + HAL_GPIO_WritePin(GPIOB, LDO_ON_Pin, GPIO_PIN_SET); + + /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOA, ESP_GPIO2_Pin|ESP_GPIO0_Pin|ESP_CH_PD_Pin|SYSTEM_LED_Pin |ESP_RST_Pin|LEPTON_PW_DWN_L_Pin|LEPTON_RESET_L_Pin, GPIO_PIN_RESET);