For STM32 family, DAC register mappings are defined in
arch/arm/src/stm32/hardware/stm32_dac.h.

In STM32Gxxxxx parts, the DAC has additional features and registers
not in STM32Fxxxxx and STM32Lxxxxx parts.

I propose to handle this as follows:
* Rename stm32_dac.h to stm32fxxxxx_dac.h
* Create a new file, stm32gxxxxx_dac.h for parts with the newer DAC
* stm32_dac.h conditionally includes either stm32fxxxxx_dac.h or
stm32gxxxxx_dac.h as needed

Thoughts?

Nathan

Reply via email to