darrylring opened a new pull request, #22292: URL: https://github.com/apache/nuttx/pull/22292
## Summary The STM32U3 DAC is identical to the STM32H5 DAC with one added feature (which is not supported yet). This PR moves the STM32H5 DAC code from `arch/arm/src/stm32h5` to `arch/arm/src/common/stm32` and enables it for both the STM32H5 and STM32U3. This DAC driver still only operates in polled mode. A separate future PR will connect the DAC to timers/DMA. ## Impact For STM32H5 users: `board.h` needs to define `GPIO_DAC1_OUT` and/or `GPIO_DAC1_OUT2` pins now. It was my mistake not to require these before. Otherwise it's a code move and some `Kconfig` changes. No `defconfig` changes are required (`CONFIG_STM32_DAC1=y` and `CONFIG_STM32_DAC1CH1=y` still do the trick). For STM32U3 users: no impact, it's a new feature. Yay! ## Testing Tested on both NUCLEO-U3C5ZI-Q (`jumbo` config) and NUCLEO-H563ZI (`dac` config) boards using the `dac` builtin. Using `dac put 4095` both boards measured 3.3 V on PA5. After `dac put 0` they measured 0 V. After `dac put 2048` they measured ~1.65 V. -- 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]
