This is an automated email from the ASF dual-hosted git repository. linguini pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 1e9a6f0832f boards: esp32s3-lckfb-szpi: Remove obsolete device function prototypes 1e9a6f0832f is described below commit 1e9a6f0832f8de895438b5a6e2fd17aace2d6229 Author: Huang Qi <huang...@xiaomi.com> AuthorDate: Wed Sep 17 12:02:02 2025 +0800 boards: esp32s3-lckfb-szpi: Remove obsolete device function prototypes Remove function prototypes for BMP180 pressure sensor and CS4344 audio DAC devices that were never actually present on this board configuration. This cleans up the header file by removing declarations for non-existent hardware. Signed-off-by: Huang Qi <huang...@xiaomi.com> --- .../esp32s3/lckfb-szpi-esp32s3/src/esp32s3-szpi.h | 40 ---------------------- .../lckfb-szpi-esp32s3/src/esp32s3_bringup.c | 27 +-------------- 2 files changed, 1 insertion(+), 66 deletions(-) diff --git a/boards/xtensa/esp32s3/lckfb-szpi-esp32s3/src/esp32s3-szpi.h b/boards/xtensa/esp32s3/lckfb-szpi-esp32s3/src/esp32s3-szpi.h index 44c1649fd2e..aaa59741522 100644 --- a/boards/xtensa/esp32s3/lckfb-szpi-esp32s3/src/esp32s3-szpi.h +++ b/boards/xtensa/esp32s3/lckfb-szpi-esp32s3/src/esp32s3-szpi.h @@ -120,25 +120,6 @@ int board_spiflash_init(void); int board_i2c_init(void); #endif -/**************************************************************************** - * Name: board_bmp180_initialize - * - * Description: - * Initialize and register the BMP180 Pressure Sensor driver. - * - * Input Parameters: - * devno - The device number, used to build the device path as /dev/pressN - * busno - The I2C bus number - * - * Returned Value: - * Zero (OK) on success; a negated errno value on failure. - * - ****************************************************************************/ - -#ifdef CONFIG_SENSORS_BMP180 -int board_bmp180_initialize(int devno, int busno); -#endif - /**************************************************************************** * Name: board_i2sdev_initialize * @@ -163,27 +144,6 @@ int board_bmp180_initialize(int devno, int busno); int board_i2sdev_initialize(int port, bool enable_tx, bool enable_rx); #endif -/**************************************************************************** - * Name: esp32s3_cs4344_initialize - * - * Description: - * This function is called by platform-specific, setup logic to configure - * and register the CS4344 device. This function will register the driver - * as /dev/audio/pcm[x] where x is determined by the I2S port number. - * - * Input Parameters: - * port - The I2S port used for the device - * - * Returned Value: - * Zero is returned on success. Otherwise, a negated errno value is - * returned to indicate the nature of the failure. - * - ****************************************************************************/ - -#ifdef CONFIG_AUDIO_CS4344 -int esp32s3_cs4344_initialize(int port); -#endif - #ifdef CONFIG_ESP32S3_OPENETH int esp_openeth_initialize(void); #endif diff --git a/boards/xtensa/esp32s3/lckfb-szpi-esp32s3/src/esp32s3_bringup.c b/boards/xtensa/esp32s3/lckfb-szpi-esp32s3/src/esp32s3_bringup.c index 3aaf709b63a..1f9a3d87114 100644 --- a/boards/xtensa/esp32s3/lckfb-szpi-esp32s3/src/esp32s3_bringup.c +++ b/boards/xtensa/esp32s3/lckfb-szpi-esp32s3/src/esp32s3_bringup.c @@ -153,8 +153,7 @@ int esp32s3_bringup(void) { int ret; -#if (defined(CONFIG_ESPRESSIF_I2S0) && !defined(CONFIG_AUDIO_CS4344)) || \ - defined(CONFIG_ESPRESSIF_I2S1) +#if defined(CONFIG_ESPRESSIF_I2S0) || defined(CONFIG_ESPRESSIF_I2S1) bool i2s_enable_tx; bool i2s_enable_rx; #endif @@ -323,30 +322,7 @@ int esp32s3_bringup(void) } #endif -#ifdef CONFIG_SENSORS_BMP180 - /* Try to register BMP180 device in I2C0 */ - - ret = board_bmp180_initialize(0, ESP32S3_I2C0); - if (ret < 0) - { - syslog(LOG_ERR, - "Failed to initialize BMP180 driver for I2C0: %d\n", ret); - } -#endif - #ifdef CONFIG_ESPRESSIF_I2S - -#ifdef CONFIG_AUDIO_CS4344 - - /* Configure CS4344 audio on I2S0 */ - - ret = esp32s3_cs4344_initialize(ESP32S3_I2S0); - if (ret != OK) - { - syslog(LOG_ERR, "Failed to initialize CS4344 audio: %d\n", ret); - } -#else - #ifdef CONFIG_ESPRESSIF_I2S0_TX i2s_enable_tx = true; #else @@ -366,7 +342,6 @@ int esp32s3_bringup(void) { syslog(LOG_ERR, "Failed to initialize I2S0 driver: %d\n", ret); } -#endif /* CONFIG_AUDIO_CS4344 */ #ifdef CONFIG_ESPRESSIF_I2S1