I have been working on a DAC driver recently and came across a compile error.
I'm using STM32F4 discovery board which has 2 DAC channels and chibiOS RT from https://github.com/ChibiOS/ChibiOS-RT.
As a newbie to chibiOS, I first tried the DAC example from https://github.com/fpoussin/ChibiOS-Exa ... TM32F4-DAC.
But the DAC doesn't compile.
The error message is like below:
My main suspicion for the cause of the error is that the variable STM32_HAS_DAC_CHN1 is never defined in any header.
Besides, when I looked at the file os/hal/ports/STM32/STM32F4xx/stm32_registry.h , the variable STM32_HAS_DAC1 is set to FALSE by default even though there're presence of DACs on board.
All of these led me to think that maybe the DAC module is not well-supported in chibiOS currently?
Can anybody provide a working version of DAC module? The links from this thread viewtopic.php?f=16&t=1196 have all expired.
I really need to make the DAC module working for my research. Any help or suggestion is highly appreciated!
Cheers,
CC, helpless phD