Browse Source

stm32: adc-v2-multi: fix JSQR

Fixes: https://github.com/libopencm3/libopencm3/issues/1412

Verified against RM0394 (L4), RM0440 (G4) and RM0316 (F3)

Signed-off-by: Karl Palsson <karlp@tweak.net.au>
pull/1389/merge
Karl Palsson 3 years ago
parent
commit
e9d87a9cb7
  1. 2
      include/libopencm3/stm32/common/adc_common_v2_multi.h

2
include/libopencm3/stm32/common/adc_common_v2_multi.h

@ -58,7 +58,7 @@ specific memorymap.h header before including this header file.*/
#define ADC_SQR4(adc) MMIO32((adc) + 0x3C)
/* Injected Sequence Register (ADCx_JSQR, x=1..4) JSQR */
#define ADC_JSQR(adc) MMIO32((adc) + 0x30)
#define ADC_JSQR(adc) MMIO32((adc) + 0x4c)
/* Offset Register x (ADCx_OFRy, x=1..4) (y=1..4) OFRy */
#define ADC_OFR1(adc) MMIO32((adc) + 0x60)

Loading…
Cancel
Save