From 15ca58b9c80a8236ec70235f5fda2ed49cfa024b Mon Sep 17 00:00:00 2001 From: Andrea Gilardoni Date: Mon, 31 Aug 2020 14:03:49 +0200 Subject: [PATCH] fixing small issues --- .../device/stm32l0xx_hal_conf.h | 20 +++++++++---------- targets/targets.json | 5 ++--- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_conf.h b/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_conf.h index d26337aed9..169d1235eb 100644 --- a/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_conf.h +++ b/targets/TARGET_STM/TARGET_STM32L0/device/stm32l0xx_hal_conf.h @@ -54,23 +54,23 @@ #define HAL_CRC_MODULE_ENABLED #define HAL_CRYP_MODULE_ENABLED -#if !defined (TARGET_STM32L031K6) && !defined (TARGET_STM32L011K4) && !defined (TARGET_STML071xx) +#if !defined (TARGET_STM32L031K6) && !defined (TARGET_STM32L011K4) && !defined (TARGET_STM32L071xx) #define HAL_DAC_MODULE_ENABLED -#endif /* !TARGET_STM32L031K6 && !TARGET_STM32L011K4 && !TARGET_STML0CXCTX */ +#endif /* !TARGET_STM32L031K6 && !TARGET_STM32L011K4 && !TARGET_STM32L071xx */ #define HAL_DMA_MODULE_ENABLED #if !defined (TARGET_STM32L031K6) && !defined (TARGET_STM32L011K4) #define HAL_FIREWALL_MODULE_ENABLED -#endif /* !TARGET_STM32L031K6 && !TARGET_STM32L011K4 && !TARGET_STML0CXCTX */ +#endif /* !TARGET_STM32L031K6 && !TARGET_STM32L011K4 */ #define HAL_FLASH_MODULE_ENABLED #define HAL_GPIO_MODULE_ENABLED #define HAL_I2C_MODULE_ENABLED -#if !defined (TARGET_STM32L031K6) && !defined (TARGET_STM32L011K4) && !defined (TARGET_STML071xx) +#if !defined (TARGET_STM32L031K6) && !defined (TARGET_STM32L011K4) && !defined (TARGET_STM32L071xx) #define HAL_I2S_MODULE_ENABLED -#endif /* !TARGET_STM32L031K6 && !TARGET_STM32L011K4 && !TARGET_STML0CXCTX */ +#endif /* !TARGET_STM32L031K6 && !TARGET_STM32L011K4 && !TARGET_STM32L071xx */ #define HAL_IWDG_MODULE_ENABLED #define HAL_LCD_MODULE_ENABLED @@ -80,15 +80,15 @@ #if !defined (TARGET_STML071xx) #define HAL_RNG_MODULE_ENABLED -#endif /* !TARGET_STML0CXCTX */ +#endif /* !TARGET_STM32L071xx */ #define HAL_RTC_MODULE_ENABLED #define HAL_SPI_MODULE_ENABLED #define HAL_TIM_MODULE_ENABLED -#if !defined (TARGET_STM32L031K6) && !defined (TARGET_STM32L011K4) && !defined (TARGET_STML071xx) +#if !defined (TARGET_STM32L031K6) && !defined (TARGET_STM32L011K4) && !defined (TARGET_STM32L071xx) #define HAL_TSC_MODULE_ENABLED -#endif /* !TARGET_STM32L031K6 && !TARGET_STM32L011K4 && !TARGET_STML0CXCTX */ +#endif /* !TARGET_STM32L031K6 && !TARGET_STM32L011K4 && !TARGET_STM32L071xx */ #define HAL_UART_MODULE_ENABLED #define HAL_USART_MODULE_ENABLED @@ -98,9 +98,9 @@ #define HAL_WWDG_MODULE_ENABLED #define HAL_CORTEX_MODULE_ENABLED -#if !defined (TARGET_STM32L031K6) && !defined (TARGET_STM32L011K4) && !defined (TARGET_STML071xx) +#if !defined (TARGET_STM32L031K6) && !defined (TARGET_STM32L011K4) && !defined (TARGET_STM32L071xx) #define HAL_PCD_MODULE_ENABLED -#endif /* !TARGET_STM32L031K6 && !TARGET_STM32L011K4 && !TARGET_STML0CXCTX */ +#endif /* !TARGET_STM32L031K6 && !TARGET_STM32L011K4 && !TARGET_STM32L071xx */ /* ########################## Oscillator Values adaptation ####################*/ /** diff --git a/targets/targets.json b/targets/targets.json index 02a0ee2756..67b809954a 100644 --- a/targets/targets.json +++ b/targets/targets.json @@ -2793,13 +2793,12 @@ "public": false, "extra_labels_add": [ "STM32L0", - "STML071xx" + "STM32L071xx" ], "device_has_remove": [ "ANALOGOUT", "TRNG" - ], - "device_name": "STM32L071xx" + ] }, "NUCLEO_L073RZ": { "inherits": [