Skip to content

Commit

Permalink
changed 1.8 and 2.8 V rails to be enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
PureEngineering authored and kekiefer committed Feb 22, 2018
1 parent 4fc6515 commit b6e94a9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b6e94a9

Please sign in to comment.