thiagofinelon opened a new pull request, #16866:
URL: https://github.com/apache/nuttx/pull/16866

   ## Summary
   
   This PR adds **SPI slave initialization support** for the ESP32-S3 DevKit 
bringup.  
   Until now, the ESP32-S3 BSP only provided SPI master initialization. 
Applications that required the board to act as a slave had no bringup-level 
support.  
   
   Changes included in this PR:
   - Added `esp32s3_board_spislavedev.c` implementing SPI slave initialization. 
 
   - Added `esp32s3_board_spislavedev.h` public header in `include/`.  
   - Updated `Make.defs` to include the new source when 
`CONFIG_SPI_SLAVE_DRIVER=y`.  
   - Integrated SPI slave initialization into the ESP32-S3 bringup sequence.  
   
   This enables applications to use the SPI peripheral in slave mode directly 
from bringup, aligning ESP32-S3 with other boards that already expose this 
feature.
   
   ## Impact
   
   - **Build impact**: None unless `CONFIG_SPI_SLAVE_DRIVER=y` is enabled.  
   - **Runtime impact**: When enabled, the SPI slave device is registered at 
bringup and becomes available to applications.  
   - **API impact**: No new public APIs are introduced; this is board-level 
initialization only.  
   - **Area impacted**: ESP32-S3 DevKit bringup and board support package.  
   
   ## Testing
   
   - Built successfully with `xtensa-esp32s3-elf-gcc` toolchain on Linux host.  
   - Verified build succeeds both with and without `CONFIG_SPI_SLAVE_DRIVER=y`. 
 
   - Verified that spi slave file descriptors have been created.
   
   <img width="893" height="746" alt="Captura de tela 2025-08-19 110345" 
src="https://github.com/user-attachments/assets/fc860b2f-72b0-46d5-8f12-c809b8f96925";
 />
   <img width="698" height="428" alt="Captura de tela 2025-08-19 110402" 
src="https://github.com/user-attachments/assets/d17a3678-d134-477e-93ff-fe7a385a87c8";
 />
   <img width="499" height="326" alt="Captura de tela 2025-08-19 110419" 
src="https://github.com/user-attachments/assets/63796c96-40d2-4311-b51a-81698b1c1af3";
 />
   


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to