Skip to main content
waclawek.jan
Super User
Feb 24, 2021 7:12 AM UTC
Solved

ADC sequence code Typo in RM0091

In RM0091, A.7.2 ADC enable sequence code example:

ADC1->ISR |= ADC_CR_ADRDY; /* (2) */

However, there is no ADC_CR_ADRDY, it is supposed to be ADC_ISR_ADRDY.

Also, examples should not show the bad practice using RMW to clear rc_w1 status bits, so this line ought to be:

ADC1->ISR = ADC_ISR_ADRDY; /* (2) */

JW

#Snippets

This topic has been closed for replies.
Bowman32
Bowman32Best answer
ST Employee
Mar 3, 2021 11:11 AM UTC

Hi @Community member​ 

I raised this internally. Thank you

Bouraoui

2 replies

Bowman32
Bowman32Best answer
ST Employee
Mar 3, 2021 11:11 AM UTC

Hi @Community member​ 

I raised this internally. Thank you

Bouraoui

waclawek.jan
Super User
Mar 3, 2021 5:20 PM UTC

Thanks, Bouraoui.

Jan