ADCv3 and ADCv4 Analog Watchdog

Report here problems in any of ChibiOS components. This forum is NOT for support.
User avatar
FXCoder
Posts: 277
Joined: Sun Jun 12, 2016 4:10 am
Location: Sydney, Australia
Has thanked: 111 times
Been thanked: 88 times

ADCv3 and ADCv4 Analog Watchdog

Postby FXCoder » Fri May 22, 2020 1:33 am

Hi.
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).

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests