From 5abd9f74a656f3fb09a9eeb6ab0106a8516661ca Mon Sep 17 00:00:00 2001 From: Rocco Marco Guglielmi Date: Sat, 4 Jun 2016 14:34:15 +0000 Subject: Improved STM32 registries git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9570 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/STM32F1xx/stm32_registry.h | 4 +++- os/hal/ports/STM32/STM32F4xx/stm32_registry.h | 26 +++++++++++++++++++------- os/hal/ports/STM32/STM32F7xx/stm32_registry.h | 4 ++-- os/hal/ports/STM32/STM32L4xx/stm32_registry.h | 3 ++- 4 files changed, 26 insertions(+), 11 deletions(-) (limited to 'os/hal/ports') 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 -- cgit v1.2.3