The definition of the ADC callback was:
Code: Select all
typedef void (*adccallback_t)(ADCDriver *adcp, adcsample_t *buffer, size_t n);
I recently moved to branch stable_19.1.x but the ADC callback seems to be defined as:
Code: Select all
typedef void (*adccallback_t)(ADCDriver *adcp);
When the callback is executed, how can I know if the data are at the beginning of the buffer or at half buffer?
I am using STM32F429ZI (hal ADCv2), I tried to read the code but I can't find out any clue.
Thanks in advance.