wmrsouza opened a new pull request, #19033: URL: https://github.com/apache/nuttx/pull/19033
Replace the legacy lower-level I2S HAL path in `esp_i2s.c` with the esp-hal-3rdparty upper driver API and link `upper_hal_i2s` for ESP32-C3/C6/H2/P4 *Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Impact <!-- Please fill the following sections with YES/NO and provide a brief explanation --> Impact on user: No <!-- Does it impact user's applications? How? --> Impact on build: No <!-- Does it impact on building NuttX? How? (please describe the required changes on the build system) --> Impact on hardware: No <!-- Does it impact a specific hardware supported by NuttX? --> Impact on documentation: No <!-- Does it impact the existing documentation? Please provide additional documentation to reflect that --> Impact on security: No <!-- Does it impact NuttX's security? --> Impact on compatibility: No <!-- Does it impact compatibility between previous and current versions? Is this a breaking change? --> ## Testing <!-- Please provide all the testing procedure. Consider that upstream reviewers should be able to reproduce the same testing performed internally --> `esp32c3-devkit:i2schar`, `esp32c6-devkitc:i2schar`, `esp32h2-devkit:i2schar` and `esp32p4-function-ev-board:i2schar` configs used to test ### Building <!-- Provide how to build the test for each SoC being tested --> Command to build: ``` make -j distclean && ./tools/configure.sh esp32c6-devkitc:i2schar && make -j && make download ESPTOOL_PORT=/dev/ttyUSB0 ``` ### Running <!-- Provide how to run the test for each SoC being tested --> Command used to test: ``` i2schar -l ``` ### Results <!-- Provide tests' results and runtime logs --> Output: ``` nsh> i2schar -l i2schar_main: TX data width: 16 bits i2schar_prepare_tx_buffer: Prepared transmitter buffer with 16-bit data i2schar_main: Loopback mode enabled i2schar_main: Start receiver thread i2schar_main: Start transmitter thread i2schar_receiver: Using allocated buffer for loopback verification i2schar_main: Waiting for the transmitter thread i2schar_receiver: Received buffer 1 i2schar_receiver: Received data (first 16 bytes): 0x00 0x00 0x01 0x00 0x02 0x00 0x03 0x00 0x04 0x00 0x05 0x00 0x06 0x00 0x07 0x00 i2schar_receiver: Loopback verification PASSED - data matches expected i2schar_transmitter: Send buffer 1 i2schar_main: Waiting for the receiver thread nsh> ``` -- 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]
