I wanted to try the DAC driver for STM32F4xx.
First, I made a clone of the repository https://github.com/mobyfab/ChibiOS/tree/dac
Then, compile the example shown in the folder ChibiOS\testhal\STM32F4xx\DAC\
But it throws the following errors:
../../../os/hal/platforms/STM32/DACv1/dac_lld.h:258:3: error: unknown type name 'dacmode_t'
In file included from ../../../os/hal/include/hal.h:50:0,
from ../../../test/test.c:26:
../../../os/hal/include/dac.h:308:3: error: unknown type name 'DACConversionGroup'
../../../os/hal/include/dac.h:309:27: error: unknown type name 'dacsample_t'
../../../os/hal/include/dac.h:310:3: error: unknown type name 'DACConversionGroup'
../../../os/hal/include/dac.h:311:28: error: unknown type name 'dacsample_t'
../../../os/hal/include/dac.h:315:3: error: unknown type name 'DACConversionGroup'
../../../os/hal/include/dac.h:316:20: error: unknown type name 'dacsample_t'
make: *** [build/obj/test.o] Error 1
How well are the steps you took?
From what I see the problem is compatibility between files dac_lld.c/.h and dac.c/.h
Thank you!
Greetings!