definition of adccallback_t has been changed?
Posted: Thu Feb 20, 2020 6:15 pm
I used to base my projects on ChibiOs branch stable_18.2.x
The definition of the ADC callback was:
I recently moved to branch stable_19.1.x but the ADC callback seems to be defined as:
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.
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.