Seems that AWD support is only partially implemented in the ADCv3 and ADCv4 drivers.
So this is just a placeholder bug report at the moment pending implementation work yet to be done.
--
Bob
For example code in hal_adc_lld.c of ADCv4 at line 550...
Code: Select all
/* ADC setup, if it is defined a callback for the analog watch dog then it
is enabled.*/
adcp->adcm->ISR = adcp->adcm->ISR;
adcp->adcm->IER = ADC_IER_OVRIE | ADC_IER_AWD1IE;
And hal_adc_lld.c of ADCv3 at line 850...
Code: Select all
/* ADC setup, if it is defined a callback for the analog watch dog then it
is enabled.*/
adcp->adcm->ISR = adcp->adcm->ISR;
adcp->adcm->IER = ADC_IER_OVRIE | ADC_IER_AWD1IE;
adcp->adcm->TR1 = grpp->tr1;
Also to be added callback fields in config and fields for TR2/3 (with any MCU conditional configuration).