aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-06-04 14:34:15 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@live.com>2016-06-04 14:34:15 +0000
commit5abd9f74a656f3fb09a9eeb6ab0106a8516661ca (patch)
treebbae80c5579558e71284419f4bfe228c9251698a /os
parente0251cf96666b1096ca0aa539d6fba785809e412 (diff)
downloadChibiOS-5abd9f74a656f3fb09a9eeb6ab0106a8516661ca.tar.gz
ChibiOS-5abd9f74a656f3fb09a9eeb6ab0106a8516661ca.tar.bz2
ChibiOS-5abd9f74a656f3fb09a9eeb6ab0106a8516661ca.zip
Improved STM32 registries
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9570 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/ports/STM32/STM32F1xx/stm32_registry.h4
-rw-r--r--os/hal/ports/STM32/STM32F4xx/stm32_registry.h26
-rw-r--r--os/hal/ports/STM32/STM32F7xx/stm32_registry.h4
-rw-r--r--os/hal/ports/STM32/STM32L4xx/stm32_registry.h3
4 files changed, 26 insertions, 11 deletions
diff --git a/os/hal/ports/STM32/STM32F1xx/stm32_registry.h b/os/hal/ports/STM32/STM32F1xx/stm32_registry.h
index d9b975559..7e8388aa0 100644
--- a/os/hal/ports/STM32/STM32F1xx/stm32_registry.h
+++ b/os/hal/ports/STM32/STM32F1xx/stm32_registry.h
@@ -1332,9 +1332,11 @@
#define STM32_HAS_LPUART1 FALSE
/* USB attributes.*/
-#define STM32_HAS_USB FALSE
+#define STM32_OTG_STEPPING 1
#define STM32_HAS_OTG1 TRUE
+
#define STM32_HAS_OTG2 FALSE
+#define STM32_HAS_USB FALSE
/* IWDG attributes.*/
#define STM32_HAS_IWDG TRUE
diff --git a/os/hal/ports/STM32/STM32F4xx/stm32_registry.h b/os/hal/ports/STM32/STM32F4xx/stm32_registry.h
index c48f815a7..7cb24e4de 100644
--- a/os/hal/ports/STM32/STM32F4xx/stm32_registry.h
+++ b/os/hal/ports/STM32/STM32F4xx/stm32_registry.h
@@ -413,11 +413,13 @@
#define STM32_HAS_LPUART1 FALSE
/* USB attributes.*/
-#define STM32_HAS_USB FALSE
+#define STM32_OTG_STEPPING 2
#define STM32_HAS_OTG1 TRUE
#define STM32_HAS_OTG2 TRUE
-/* IWDG attributes.*/
+#define STM32_HAS_USB FALSE
+
+/* IWDG attributes.*/2
#define STM32_HAS_IWDG TRUE
#define STM32_IWDG_IS_WINDOWED FALSE
@@ -752,10 +754,12 @@
#define STM32_HAS_LPUART1 FALSE
/* USB attributes.*/
-#define STM32_HAS_USB FALSE
+#define STM32_OTG_STEPPING 2
#define STM32_HAS_OTG1 TRUE
#define STM32_HAS_OTG2 TRUE
+#define STM32_HAS_USB FALSE
+
/* IWDG attributes.*/
#define STM32_HAS_IWDG TRUE
#define STM32_IWDG_IS_WINDOWED FALSE
@@ -1113,10 +1117,12 @@
#define STM32_HAS_LPUART1 FALSE
/* USB attributes.*/
-#define STM32_HAS_USB FALSE
+#define STM32_OTG_STEPPING 1
#define STM32_HAS_OTG1 TRUE
#define STM32_HAS_OTG2 TRUE
+#define STM32_HAS_USB FALSE
+
/* IWDG attributes.*/
#define STM32_HAS_IWDG TRUE
#define STM32_IWDG_IS_WINDOWED FALSE
@@ -1451,10 +1457,12 @@
#define STM32_HAS_LPUART1 FALSE
/* USB attributes.*/
-#define STM32_HAS_USB FALSE
+#define STM32_OTG_STEPPING 1
#define STM32_HAS_OTG1 TRUE
#define STM32_HAS_OTG2 TRUE
+#define STM32_HAS_USB FALSE
+
/* IWDG attributes.*/
#define STM32_HAS_IWDG TRUE
#define STM32_IWDG_IS_WINDOWED FALSE
@@ -1741,10 +1749,12 @@
#define STM32_HAS_LPUART1 FALSE
/* USB attributes.*/
-#define STM32_HAS_USB FALSE
+#define STM32_OTG_STEPPING 1
#define STM32_HAS_OTG1 TRUE
#define STM32_HAS_OTG2 FALSE
+#define STM32_HAS_USB FALSE
+
/* IWDG attributes.*/
#define STM32_HAS_IWDG TRUE
#define STM32_IWDG_IS_WINDOWED FALSE
@@ -2294,9 +2304,11 @@
#define STM32_HAS_LPUART1 FALSE
/* USB attributes.*/
-#define STM32_HAS_USB FALSE
+#define STM32_OTG_STEPPING 1
#define STM32_HAS_OTG1 TRUE
+
#define STM32_HAS_OTG2 FALSE
+#define STM32_HAS_USB FALSE
/* IWDG attributes.*/
#define STM32_HAS_IWDG TRUE
diff --git a/os/hal/ports/STM32/STM32F7xx/stm32_registry.h b/os/hal/ports/STM32/STM32F7xx/stm32_registry.h
index 225a6aba5..fae4487e2 100644
--- a/os/hal/ports/STM32/STM32F7xx/stm32_registry.h
+++ b/os/hal/ports/STM32/STM32F7xx/stm32_registry.h
@@ -460,8 +460,7 @@
#define STM32_HAS_LPUART1 FALSE
/* USB attributes.*/
-#define STM32_HAS_USB FALSE
-
+#define STM32_OTG_STEPPING 2
#define STM32_HAS_OTG1 TRUE
#define STM32_OTG1_HANDLER Vector14C
#define STM32_OTG1_NUMBER 67
@@ -474,6 +473,7 @@
#define STM32_OTG2_EP1OUT_NUMBER 74
#define STM32_OTG2_EP1IN_NUMBER 75
+#define STM32_HAS_USB FALSE
/* IWDG attributes.*/
#define STM32_HAS_IWDG TRUE
#define STM32_IWDG_IS_WINDOWED TRUE
diff --git a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h
index f39d3e882..e9d6aeee7 100644
--- a/os/hal/ports/STM32/STM32L4xx/stm32_registry.h
+++ b/os/hal/ports/STM32/STM32L4xx/stm32_registry.h
@@ -397,12 +397,13 @@
#define STM32_HAS_UART8 FALSE
/* USB attributes.*/
-#define STM32_HAS_USB FALSE
+#define STM32_OTG_STEPPING 1
#define STM32_HAS_OTG1 TRUE
#define STM32_OTG1_HANDLER Vector14C
#define STM32_OTG1_NUMBER 67
#define STM32_HAS_OTG2 FALSE
+#define STM32_HAS_USB FALSE
/* IWDG attributes.*/
#define STM32_HAS_IWDG TRUE