From f6f2c383bf53b3c8384e678c29e87afb9f6093b7 Mon Sep 17 00:00:00 2001
From: gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>
Date: Wed, 19 Sep 2012 12:40:39 +0000
Subject: Yet another fix in ST headers.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4697 35acf78f-673a-0410-8e92-d51de3d6d3f4
---
 os/hal/platforms/STM32F2xx/stm32f2xx.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'os/hal/platforms/STM32F2xx')

diff --git a/os/hal/platforms/STM32F2xx/stm32f2xx.h b/os/hal/platforms/STM32F2xx/stm32f2xx.h
index 297e26997..f4506b2fe 100644
--- a/os/hal/platforms/STM32F2xx/stm32f2xx.h
+++ b/os/hal/platforms/STM32F2xx/stm32f2xx.h
@@ -4890,7 +4890,9 @@ typedef struct
 #define  RCC_AHB1RSTR_DMA1RST                ((uint32_t)0x00200000)
 #define  RCC_AHB1RSTR_DMA2RST                ((uint32_t)0x00400000)
 #define  RCC_AHB1RSTR_ETHMACRST              ((uint32_t)0x02000000)
-#define  RCC_AHB1RSTR_OTGHRST                ((uint32_t)0x10000000)
+/* CHIBIOS FIX */
+/*#define  RCC_AHB1RSTR_OTGHRST                ((uint32_t)0x10000000)*/
+#define  RCC_AHB1RSTR_OTGHSRST                ((uint32_t)0x10000000)
 
 /********************  Bit definition for RCC_AHB2RSTR register  **************/
 #define  RCC_AHB2RSTR_DCMIRST                ((uint32_t)0x00000001)
@@ -4898,8 +4900,7 @@ typedef struct
 #define  RCC_AHB2RSTR_HSAHRST                ((uint32_t)0x00000020)
 #define  RCC_AHB2RSTR_RNGRST                 ((uint32_t)0x00000040)
 /* CHIBIOS FIX */
-/*#define  RCC_AHB1RSTR_OTGHRST                ((uint32_t)0x10000000)*/
-#define  RCC_AHB1RSTR_OTGHSRST                ((uint32_t)0x10000000)
+#define  RCC_AHB2RSTR_OTGFSRST               ((uint32_t)0x00000080)
 
 /********************  Bit definition for RCC_AHB3RSTR register  **************/
 #define  RCC_AHB3RSTR_FSMCRST                ((uint32_t)0x00000001)
-- 
cgit v1.2.3