diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2019-01-06 16:21:01 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2019-01-06 16:21:01 +0000 |
commit | c62c5f50629f340eb3af59b0da2efea0ff7e8af5 (patch) | |
tree | 11251b3681e1b773dc1c7d8e2c428e96fa509849 /os/hal | |
parent | 7837e18969ca04514e270a529e66fe2b31cf4b61 (diff) | |
download | ChibiOS-c62c5f50629f340eb3af59b0da2efea0ff7e8af5.tar.gz ChibiOS-c62c5f50629f340eb3af59b0da2efea0ff7e8af5.tar.bz2 ChibiOS-c62c5f50629f340eb3af59b0da2efea0ff7e8af5.zip |
STM32L433 added to STM32L4xx HAL.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12537 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/ports/STM32/STM32L4xx/hal_lld.h | 8 | ||||
-rw-r--r-- | os/hal/ports/STM32/STM32L4xx/stm32_registry.h | 4 |
2 files changed, 8 insertions, 4 deletions
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
|