stbenn opened a new pull request, #14860: URL: https://github.com/apache/nuttx/pull/14860
Adds ADC support with minimal feature set (no DMA or Timers etc.). A new nucleo-h563zi configuration was added to provide easy testing with the adc example NSH addon. *Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary Added basic support for ADC peripheral. More advanced features such as DMA and Timer connection are not implemented, and are disabled with warnings in the driver if they were to get enabled. The implementation is very similar to the H7 implementation, but it has been modified for specific hardware differences (mostly register mapping). This also introduces a new configuration to the nucleo-h563zi board specifically to enable and test ADC1. ## Impact - New nucleo-h563zi configuration `nucleo-h563zi:adc` - Add ADC enable options to the H5 Kconfig - Add adc driver files to arch/arm/src/stm32h5 - Add adc file to the nucleo-h563zi board directory ## Testing Used the NSH ADC application to test. Created a new board configuration that enables and sets up ADC1 channels 3 and 10 (A0 and A1 on the Nucleo dev board) to be read by the application. Then, verified the result when each channel was connected to a precision 2.5V power supply. I also inspected the ADC registers to ensure they were being set as expected. During setup and after conversion complete. Host OS: Ubuntu 24.04 on WSL 2 (Windows 11) Compiler: arm-none-eabi-gcc (15:13.2.rel1-2) 13.2.1 20231009 Target: - Arch: STM32H5 - Chip: STM32H563ZIT6U - Board: Nucleo-H563ZI - Config: nucleo-h563zi:adc -- 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