Skip to main content
waclawek.jan
Super User
February 24, 2021
Solved

ADC sequence code Typo in RM0091

  • February 24, 2021
  • 2 replies
  • 951 views

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.
Best answer by Bowman32

Hi @Community member​ 

I raised this internally. Thank you

Bouraoui

2 replies

Bowman32
Bowman32Best answer
ST Employee
March 3, 2021

Hi @Community member​ 

I raised this internally. Thank you

Bouraoui

waclawek.jan
Super User
March 3, 2021

Thanks, Bouraoui.

Jan