diff options
-rw-r--r-- | os/hal/ports/STM32/STM32L4xx/stm32_registry.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h index ecdc691ba..c1261e306 100644 --- a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h @@ -28,12 +28,13 @@ #if defined(STM32L432xx)
#define STM32L432xx
-#elif defined(STM32F476xx)
+#elif defined(STM32L476xx)
#define STM32L476xx
#else
#error "STM32L4xx device not specified"
#endif
+
/*===========================================================================*/
/* Platform capabilities. */
/*===========================================================================*/
@@ -42,11 +43,12 @@ * @name STM32L4xx capabilities
* @{
*/
+
/*===========================================================================*/
/* STM32L432xx. */
/*===========================================================================*/
-#if defined(STM32L432xx)
+#if defined(STM32L432xx) || defined(__DOXYGEN__)
/* ADC attributes.*/
#define STM32_HAS_ADC1 TRUE
|