bigcat-2026 commented on code in PR #21480:
URL: https://github.com/apache/nuttx/pull/21480#discussion_r4702571430


##########
boards/xtensa/esp32s3/esp32s3-r8/src/esp32s3_board_lcd.c:
##########
@@ -0,0 +1,155 @@
+/****************************************************************************
+ * boards/xtensa/esp32s3/esp32s3-r8/src/esp32s3_board_lcd.c
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.  The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ *
+ ****************************************************************************/
+
+/****************************************************************************
+ * Included Files
+ ****************************************************************************/
+
+#include <nuttx/config.h>
+
+#include <stdio.h>
+#include <stdbool.h>
+#include <debug.h>
+#include <errno.h>
+
+#include <nuttx/arch.h>
+#include <nuttx/board.h>
+#include <nuttx/signal.h>
+#include <nuttx/spi/spi.h>
+#include <nuttx/lcd/lcd.h>
+#include <nuttx/lcd/st7789.h>
+
+#include <arch/board/board.h>
+
+#include "espressif/esp_gpio.h"
+#include "esp32s3_spi.h"
+#include "hardware/esp32s3_gpio_sigmap.h"
+
+#include "esp32s3-r8.h"
+
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
+
+/****************************************************************************
+ * Private Data
+ ****************************************************************************/
+
+static struct spi_dev_s *g_spidev;
+static struct lcd_dev_s *g_lcd;
+
+/****************************************************************************
+ * Public Functions
+ ****************************************************************************/
+
+/****************************************************************************
+ * Name:  board_lcd_initialize
+ *
+ * Description:
+ *   Initialize the LCD video hardware.  The initial state of the LCD is
+ *   fully initialized, display memory cleared, and the LCD ready to use, but
+ *   with the power setting at 0 (full off).
+ *
+ * Returned Value:
+ *   Zero (OK) on success; a negated errno value on failure.
+ *
+ ****************************************************************************/
+
+int board_lcd_initialize(void)
+{
+  /* Initialize non-SPI GPIOs */
+
+  esp32s3_configgpio(ESP32S3_R8_DISPLAY_DC, OUTPUT);

Review Comment:
   > `esp32s3_configgpio()` and `esp32s3_gpiowrite()` do not exist on master, 
so esp32s3-r8:lcd and esp32s3-r8:openvela do not build again: 
`esp32s3_board_lcd.c:81:3: error: implicit declaration of function 
'esp32s3_configgpio'; did you mean 'esp_configgpio'?` (CI xtensa-03).
   > 
   > Fix: use `esp_configgpio()` and `esp_gpiowrite()` on lines 81, 82 and 86, 
as in the 20 November push.
   
   This was already fixed in the latest push.
   
   Lines 81, 82 and 86 now use:
   
     esp_configgpio()
     esp_configgpio()
     esp_gpiowrite()
   
   The esp32s3_* GPIO variants have been removed from this file.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to