2015-07-28 19:13:33 +01:00
|
|
|
#include STM32_HAL_H
|
|
|
|
|
|
|
|
void STM32F7DISC_board_early_init(void) {
|
|
|
|
GPIO_InitTypeDef GPIO_InitStructure;
|
|
|
|
|
2018-02-13 04:37:35 +00:00
|
|
|
__HAL_RCC_GPIOK_CLK_ENABLE();
|
2015-07-28 19:13:33 +01:00
|
|
|
|
|
|
|
// Turn off the backlight. LCD_BL_CTRL = PK3
|
|
|
|
GPIO_InitStructure.Pin = GPIO_PIN_3;
|
|
|
|
GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP;
|
|
|
|
GPIO_InitStructure.Pull = GPIO_PULLUP;
|
2018-02-13 04:37:35 +00:00
|
|
|
GPIO_InitStructure.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
|
2015-07-28 19:13:33 +01:00
|
|
|
HAL_GPIO_Init(GPIOK, &GPIO_InitStructure);
|
|
|
|
HAL_GPIO_WritePin(GPIOK, GPIO_PIN_3, GPIO_PIN_RESET);
|
|
|
|
}
|