small typo on ADCv3/hal_adc_lld.h Topic is solved

Use this forum for requesting small changes in ChibiOS. Large changes should be discussed in the development forum. This forum is NOT for support.
Post Reply
User avatar
alex31
Posts: 445
Joined: Fri May 25, 2012 10:23 am
Has thanked: 57 times
Been thanked: 88 times

small typo on ADCv3/hal_adc_lld.h

Post by alex31 »

There is missing _ADC_ in the test for already defined macro for ADC3 and ADC4 IRQ PRIORITY line 267 and 274 of
file os/hal/ports/STM32/LLD/ADCv3/hal_adc_lld.h.

Alexandre

============================


diff --git a/os/hal/ports/STM32/LLD/ADCv3/hal_adc_lld.h b/os/hal/ports/STM32/LLD/ADCv3/hal_adc_lld.h
index f71d438..9bab6ff 100644
--- a/os/hal/ports/STM32/LLD/ADCv3/hal_adc_lld.h
+++ b/os/hal/ports/STM32/LLD/ADCv3/hal_adc_lld.h
@@ -264,14 +264,14 @@
/**
* @brief ADC3 interrupt priority level setting.
*/
-#if !defined(STM32_ADC3_IRQ_PRIORITY) || defined(__DOXYGEN__)
+#if !defined(STM32_ADC_ADC3_IRQ_PRIORITY) || defined(__DOXYGEN__)^M
#define STM32_ADC_ADC3_IRQ_PRIORITY 5
#endif

/**
* @brief ADC4 interrupt priority level setting.
*/
-#if !defined(STM32_ADC4_IRQ_PRIORITY) || defined(__DOXYGEN__)
+#if !defined(STM32_ADC_ADC4_IRQ_PRIORITY) || defined(__DOXYGEN__)^M
#define STM32_ADC_ADC4_IRQ_PRIORITY 5
#endif
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: small typo on ADCv3/hal_adc_lld.h

Post by Giovanni »

Hi,

Fixed in trunk, it was OK in 16.1 and 17.6, strange.

Giovanni
Post Reply