-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
19938: boards/stm32l496g-disco: enable ST7789 display and touch panel r=benpicco a=gschorcht ### Contribution description This PR enables the ST7789 display and the touch panel for the `stm32l496g-disco`. The PR requires PR #19937. ### Testing procedure ``` BOARD=stm32l496g-disco make -j8 -C tests/drivers/st77xx ``` should work. ### Issues/PRs references Depends on PR #19937 Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
- Loading branch information
Showing
5 changed files
with
133 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright (C) 2023 Gunar Schorcht | ||
* | ||
* 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_stm32l496g-disco | ||
* @{ | ||
* | ||
* @file | ||
* @brief Board specific initializations for the STM32L496G-DISCO board | ||
* | ||
* @author Gunar Schorcht <gunar@schorcht.net> | ||
*/ | ||
|
||
#include "board.h" | ||
|
||
void board_init(void) | ||
{ | ||
#if MODULE_ST77XX | ||
/* initialize the pin for the HIGH active LCD_BL signal */ | ||
gpio_init(BACKLIGHT_PIN, GPIO_OUT); | ||
#endif | ||
#if MODULE_ST77XX || MODULE_FT5X06 | ||
/* enable VDD_LCD by the LOW active LCD_PWR_ON signal connected to PH0 */ | ||
gpio_init(LCD_DISP_PIN, GPIO_OUT); | ||
gpio_clear(LCD_DISP_PIN); | ||
#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters