From c62c5f50629f340eb3af59b0da2efea0ff7e8af5 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 6 Jan 2019 16:21:01 +0000 Subject: STM32L433 added to STM32L4xx HAL. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12537 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/hal/ports/STM32/STM32L4xx/hal_lld.h | 8 ++++++-- os/hal/ports/STM32/STM32L4xx/stm32_registry.h | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'os/hal') diff --git a/os/hal/ports/STM32/STM32L4xx/hal_lld.h b/os/hal/ports/STM32/STM32L4xx/hal_lld.h index 75dcfb68f..8c6e63b40 100644 --- a/os/hal/ports/STM32/STM32L4xx/hal_lld.h +++ b/os/hal/ports/STM32/STM32L4xx/hal_lld.h @@ -26,7 +26,7 @@ * - STM32_HSE_BYPASS (optionally). * . * One of the following macros must also be defined: - * - STM32L432xx, STM32L443xx. + * - STM32L432xx, STM32L433xx, STM32L443xx. * - STM32L471xx, STM32L475xx, STM32L476xx, STM32L496xx. * - STM32L485xx, STM32L486xx, STM32L4A6xx. * . @@ -48,7 +48,7 @@ * @name Platform identification * @{ */ -#if defined(STM32L432xx) || defined(STM32L443xx) || \ +#if defined(STM32L432xx) || defined(STM32L433xx) || defined(STM32L443xx) || \ defined(STM32L471xx) || defined(STM32L475xx) || \ defined(STM32L476xx) || defined(STM32L496xx) || defined(__DOXYGEN__) #define PLATFORM_NAME "STM32L4xx Ultra Low Power" @@ -764,6 +764,10 @@ #error "Using a wrong mcuconf.h file, STM32L432_MCUCONF not defined" #endif +#if defined(STM32L433xx) && !defined(STM32L433_MCUCONF) +#error "Using a wrong mcuconf.h file, STM32L433_MCUCONF not defined" +#endif + #if defined(STM32L476xx) && !defined(STM32L476_MCUCONF) #error "Using a wrong mcuconf.h file, STM32L476_MCUCONF not defined" #endif diff --git a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h index a707bab48..3d4cf5f39 100644 --- a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h +++ b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h @@ -72,10 +72,10 @@ #endif /*===========================================================================*/ -/* STM32L432xx. */ +/* STM32L432xx, STM32L433xx. */ /*===========================================================================*/ -#if defined(STM32L432xx) || defined(__DOXYGEN__) +#if defined(STM32L432xx) || defined(STM32L433xx) || defined(__DOXYGEN__) /* Clock attributes.*/ #define STM32_CLOCK_HAS_HSI48 TRUE -- cgit v1.2.3