diff --git a/include/libopencm3/stm32/common/adc_common_v1.h b/include/libopencm3/stm32/common/adc_common_v1.h index 29ff0d0b7c..6b55b552d5 100644 --- a/include/libopencm3/stm32/common/adc_common_v1.h +++ b/include/libopencm3/stm32/common/adc_common_v1.h @@ -402,8 +402,8 @@ uint32_t adc_read_regular(uint32_t adc); uint32_t adc_read_injected(uint32_t adc, uint8_t reg); void adc_set_continuous_conversion_mode(uint32_t adc); void adc_set_single_conversion_mode(uint32_t adc); -void adc_set_regular_sequence(uint32_t adc, uint8_t length, uint8_t channel[]); -void adc_set_injected_sequence(uint32_t adc, uint8_t length, uint8_t channel[]); +void adc_set_regular_sequence(uint32_t adc, uint8_t length, const uint8_t *channel); +void adc_set_injected_sequence(uint32_t adc, uint8_t length, const uint8_t *channel); void adc_set_injected_offset(uint32_t adc, uint8_t reg, uint32_t offset); void adc_set_watchdog_high_threshold(uint32_t adc, uint16_t threshold); void adc_set_watchdog_low_threshold(uint32_t adc, uint16_t threshold); diff --git a/lib/stm32/common/adc_common_v1.c b/lib/stm32/common/adc_common_v1.c index 227855d0fe..e507bac949 100644 --- a/lib/stm32/common/adc_common_v1.c +++ b/lib/stm32/common/adc_common_v1.c @@ -571,7 +571,7 @@ the newly defined group. @param[in] channel Unsigned int8[]. Set of channels in sequence, integers 0..31. */ -void adc_set_regular_sequence(uint32_t adc, uint8_t length, uint8_t channel[]) +void adc_set_regular_sequence(uint32_t adc, uint8_t length, const uint8_t *channel) { uint32_t fifth6 = 0; uint32_t fourth6 = 0; @@ -627,7 +627,7 @@ conversion is reset and conversion begins again with the newly defined group. @param[in] channel Unsigned int8[]. Set of channels in sequence, integers 0..18 */ -void adc_set_injected_sequence(uint32_t adc, uint8_t length, uint8_t channel[]) +void adc_set_injected_sequence(uint32_t adc, uint8_t length, const uint8_t *channel) { uint32_t reg32 = 0; uint8_t i = 0;