01dd7804b8
This is to keep the top-level directory clean, to make it clear what is core and what is a port, and to allow the repository to grow with new ports in a sustainable way.
16 lines
472 B
C
16 lines
472 B
C
#include STM32_HAL_H
|
|
|
|
void STM32F7DISC_board_early_init(void) {
|
|
GPIO_InitTypeDef GPIO_InitStructure;
|
|
|
|
__GPIOK_CLK_ENABLE();
|
|
|
|
// 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;
|
|
GPIO_InitStructure.Speed = GPIO_SPEED_HIGH;
|
|
HAL_GPIO_Init(GPIOK, &GPIO_InitStructure);
|
|
HAL_GPIO_WritePin(GPIOK, GPIO_PIN_3, GPIO_PIN_RESET);
|
|
}
|