This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 20b5d2b84c22a243b675305b71ad5bb2baa7d004 Author: Marco Casaroli <marco.casar...@gmail.com> AuthorDate: Wed Oct 11 19:05:54 2023 +0000 fix(esp32s3-eye): unexpose backlight GPIO This IO is not exposed in any headers and it is only used for LCD. So we don't expose it as gpio device. --- boards/xtensa/esp32s3/esp32s3-eye/include/board.h | 2 +- boards/xtensa/esp32s3/esp32s3-eye/src/esp32s3_gpio.c | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/boards/xtensa/esp32s3/esp32s3-eye/include/board.h b/boards/xtensa/esp32s3/esp32s3-eye/include/board.h index 19b4a37e7c..ff906a946d 100644 --- a/boards/xtensa/esp32s3/esp32s3-eye/include/board.h +++ b/boards/xtensa/esp32s3/esp32s3-eye/include/board.h @@ -45,7 +45,7 @@ /* GPIO pins used by the GPIO Subsystem */ -#define BOARD_NGPIOOUT 2 /* Amount of GPIO Output pins */ +#define BOARD_NGPIOOUT 1 /* Amount of GPIO Output pins */ #define BOARD_NGPIOIN 0 #define BOARD_NGPIOINT 1 diff --git a/boards/xtensa/esp32s3/esp32s3-eye/src/esp32s3_gpio.c b/boards/xtensa/esp32s3/esp32s3-eye/src/esp32s3_gpio.c index 1d62732389..e279c18dd1 100644 --- a/boards/xtensa/esp32s3/esp32s3-eye/src/esp32s3_gpio.c +++ b/boards/xtensa/esp32s3/esp32s3-eye/src/esp32s3_gpio.c @@ -48,12 +48,10 @@ # error "NGPIOINT is > 0 and GPIO interrupts aren't enabled" #endif -/* Output pins. GPIO3 is the LED, GPIO48 is the LCD backlight. - * used. +/* Output pins. GPIO3 is the LED. */ #define GPIO_OUT1 3 -#define GPIO_OUT2 48 /* Input pins. GPIO0 is the BOOT button. */ @@ -118,8 +116,7 @@ static const struct gpio_operations_s gpout_ops = static const uint32_t g_gpiooutputs[BOARD_NGPIOOUT] = { - GPIO_OUT1, - GPIO_OUT2 + GPIO_OUT1 }; static struct esp32s3gpio_dev_s g_gpout[BOARD_NGPIOOUT];