Bulebots / bulebule

An awesome maze-solving micromouse robot
https://bulebule.readthedocs.io
GNU General Public License v3.0
75 stars 23 forks source link

Is the `adc_clear_flag` function broken? #325

Open Peque opened 5 years ago

Peque commented 5 years ago

I think the clearing should be:

ADC_SR(ADC1) &= ~ADC_SR_JEOC; 

Instead of:

ADC_SR(ADC1) = ~ADC_SR_JEOC; 

If it is broken, then it should probably be fixed in libopencm3 too.