Skip to content

Commit

Permalink
fixup! boards: add support for ESP32-S3-USB-OTG
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Jul 7, 2023
1 parent 2bf4155 commit 51fd859
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
26 changes: 26 additions & 0 deletions boards/esp32s3-usb-otg/board.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* 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_esp32s3_usb_otg
* @{
*
* @file
* @brief Board specific initializations for ESP32-S3-USB-OTG boards
*
* @author Gunar Schorcht <[email protected]>
*/

#include "board.h"

void board_init(void)
{
#if MODULE_ST7735
gpio_init(LCD_BACKLIGHT, GPIO_OUT);
#endif
}
4 changes: 2 additions & 2 deletions boards/esp32s3-usb-otg/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@
#define ST7735_PARAM_INVERTED 1
#define ST7735_PARAM_RGB 1

#define BACKLIGHT_ON gpio_clear(LCD_BACKLIGHT)
#define BACKLIGHT_OFF gpio_set(LCD_BACKLIGHT)
#define BACKLIGHT_ON gpio_set(LCD_BACKLIGHT)
#define BACKLIGHT_OFF gpio_clear(LCD_BACKLIGHT)
#endif
/** @} */

Expand Down

0 comments on commit 51fd859

Please sign in to comment.