/* * Copyright (C) 2021 Inria * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup boards_stm32f746g-disco * @{ * * @file * @brief Board specific implementations for the STM32F746G-DISCO board * * @author Alexandre Abadie * * @} */ #include "kernel_defines.h" #include "board.h" #include "periph/gpio.h" void board_init(void) { gpio_init(BACKLIGHT_PIN, GPIO_OUT); if (IS_USED(MODULE_PERIPH_LTDC)) { gpio_init(LCD_DISP_PIN, GPIO_OUT); gpio_set(LCD_DISP_PIN); gpio_set(BACKLIGHT_PIN); } else { gpio_clear(BACKLIGHT_PIN); } }