aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2019-01-06 16:21:01 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2019-01-06 16:21:01 +0000
commitc62c5f50629f340eb3af59b0da2efea0ff7e8af5 (patch)
tree11251b3681e1b773dc1c7d8e2c428e96fa509849
parent7837e18969ca04514e270a529e66fe2b31cf4b61 (diff)
downloadChibiOS-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
-rw-r--r--demos/STM32/RT-STM32L432KC-NUCLEO32/cfg/mcuconf.h1
-rw-r--r--os/hal/ports/STM32/STM32L4xx/hal_lld.h8
-rw-r--r--os/hal/ports/STM32/STM32L4xx/stm32_registry.h4
-rw-r--r--readme.txt1
-rw-r--r--tools/ftl/processors/conf/mcuconf_stm32l432xx/mcuconf.h.ftl1
5 files changed, 11 insertions, 4 deletions
diff --git a/demos/STM32/RT-STM32L432KC-NUCLEO32/cfg/mcuconf.h b/demos/STM32/RT-STM32L432KC-NUCLEO32/cfg/mcuconf.h
index 7ea0dd503..e05db4f70 100644
--- a/demos/STM32/RT-STM32L432KC-NUCLEO32/cfg/mcuconf.h
+++ b/demos/STM32/RT-STM32L432KC-NUCLEO32/cfg/mcuconf.h
@@ -33,6 +33,7 @@
#define STM32L4xx_MCUCONF
#define STM32L432_MCUCONF
+#define STM32L433_MCUCONF
/*
* HAL driver system settings.
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
diff --git a/readme.txt b/readme.txt
index 8673b5db9..8d61897c9 100644
--- a/readme.txt
+++ b/readme.txt
@@ -75,6 +75,7 @@
*****************************************************************************
*** Next ***
+- NEW: STM32L433 added to STM32L4xx HAL.
- CHG: chFifoObjectInit() renamed to chFifoObjectInitAligned(). Added a new
chFifoObjectInit() without the alignment parameter.
- NEW: Stricter alignment checks in memory pools.
diff --git a/tools/ftl/processors/conf/mcuconf_stm32l432xx/mcuconf.h.ftl b/tools/ftl/processors/conf/mcuconf_stm32l432xx/mcuconf.h.ftl
index b1ff6bb8e..30c4e9bae 100644
--- a/tools/ftl/processors/conf/mcuconf_stm32l432xx/mcuconf.h.ftl
+++ b/tools/ftl/processors/conf/mcuconf_stm32l432xx/mcuconf.h.ftl
@@ -44,6 +44,7 @@
#define STM32L4xx_MCUCONF
#define STM32L432_MCUCONF
+#define STM32L433_MCUCONF
/*
* HAL driver system settings.