aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F0xx/hal_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-01-02 13:26:06 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-01-02 13:26:06 +0000
commit6dc60afb969928d28ee319e5356dcc36340c68cb (patch)
tree7fe2e3bb843d29b2267df37ba98dfc4217a65897 /os/hal/platforms/STM32F0xx/hal_lld.h
parent5925c748395e1d01cf4c505497fdd2eeb67133d5 (diff)
downloadChibiOS-6dc60afb969928d28ee319e5356dcc36340c68cb.tar.gz
ChibiOS-6dc60afb969928d28ee319e5356dcc36340c68cb.tar.bz2
ChibiOS-6dc60afb969928d28ee319e5356dcc36340c68cb.zip
Added support for STM32F030xx/050xx/060xx devices.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6593 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32F0xx/hal_lld.h')
-rw-r--r--os/hal/platforms/STM32F0xx/hal_lld.h22
1 files changed, 19 insertions, 3 deletions
diff --git a/os/hal/platforms/STM32F0xx/hal_lld.h b/os/hal/platforms/STM32F0xx/hal_lld.h
index dcff57a5c..fd166d7c3 100644
--- a/os/hal/platforms/STM32F0xx/hal_lld.h
+++ b/os/hal/platforms/STM32F0xx/hal_lld.h
@@ -26,7 +26,9 @@
* - STM32_HSE_BYPASS (optionally).
* .
* One of the following macros must also be defined:
- * - STM32F0XX for Entry Level devices.
+ * - STM32F030 for Value Line devices.
+ * - STM32F0XX_LD for Low Density devices.
+ * - STM32F0XX_MD for Medium Density devices.
* .
*
* @addtogroup HAL
@@ -49,10 +51,24 @@
#define HAL_IMPLEMENTS_COUNTERS FALSE
/**
- * @name Platform identification
+ * @name Platform identification macros
* @{
*/
-#define PLATFORM_NAME "STM32F05x Entry Level"
+#if defined(STM32F0XX_MD) || defined(__DOXYGEN__)
+#define PLATFORM_NAME "STM32F051xx/F061xx Entry Level Medium Density devices"
+#define STM32F0XX
+
+#elif defined(STM32F0XX_LD)
+#define PLATFORM_NAME "STM32F050xx/F060xx Entry Level Low Density devices"
+#define STM32F0XX
+
+#elif defined(STM32F030)
+#define PLATFORM_NAME "STM32F050xx/F060xx Entry Level Value Line devices"
+#define STM32F0XX
+
+#else
+#error "STM32F0xx device not specified"
+#endif
/** @} */
/**