diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-06-29 10:44:30 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-06-29 10:44:30 +0000 |
commit | 8887b91489fec08b826965204d973541a7d3c8a5 (patch) | |
tree | cc6c79114ab69c94c6ea4d3bc59684ab5a2c06e6 /os/hal | |
parent | 4a556f8a5eb68644ec0629bf5b792aacb82cdb55 (diff) | |
download | ChibiOS-8887b91489fec08b826965204d973541a7d3c8a5.tar.gz ChibiOS-8887b91489fec08b826965204d973541a7d3c8a5.tar.bz2 ChibiOS-8887b91489fec08b826965204d973541a7d3c8a5.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3096 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/platforms/STM32/stm32f10x.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32/stm32f10x.h b/os/hal/platforms/STM32/stm32f10x.h index a187f0a84..81fc522d4 100644 --- a/os/hal/platforms/STM32/stm32f10x.h +++ b/os/hal/platforms/STM32/stm32f10x.h @@ -459,6 +459,7 @@ typedef enum IRQn */
#include "core_cm3.h"
+/* CHIBIOS FIX */
/*#include "system_stm32f10x.h"*/
#include <stdint.h>
@@ -2004,6 +2005,8 @@ typedef struct #define RCC_AHBENR_FLITFEN ((uint16_t)0x0010) /*!< FLITF clock enable */
#define RCC_AHBENR_CRCEN ((uint16_t)0x0040) /*!< CRC clock enable */
+/* CHIBIOS FIX */
+//#if defined (STM32F10X_HD) || defined (STM32F10X_CL) || defined (STM32F10X_HD_VL)
#if defined (STM32F10X_HD) || defined (STM32F10X_CL) || defined (STM32F10X_HD_VL) || defined (STM32F10X_XL)
#define RCC_AHBENR_DMA2EN ((uint16_t)0x0002) /*!< DMA2 clock enable */
#endif
@@ -2089,11 +2092,15 @@ typedef struct #define RCC_APB1ENR_I2C2EN ((uint32_t)0x00400000) /*!< I2C 2 clock enable */
#endif /* STM32F10X_LD && STM32F10X_LD_VL */
-#if defined (STM32F10X_HD) || defined (STM32F10X_MD) || defined (STM32F10X_LD)
+/* CHIBIOS FIX */
+//#if defined (STM32F10X_HD) || defined (STM32F10X_MD) || defined (STM32F10X_LD)
+#if defined (STM32F10X_XL) || defined (STM32F10X_HD) || defined (STM32F10X_MD) || defined (STM32F10X_LD)
#define RCC_APB1ENR_USBEN ((uint32_t)0x00800000) /*!< USB Device clock enable */
#endif
-#if defined (STM32F10X_HD) || defined (STM32F10X_CL)
+/* CHIBIOS FIX */
+//#if defined (STM32F10X_HD) || defined (STM32F10X_CL)
+#if defined (STM32F10X_XL) || defined (STM32F10X_HD) || defined (STM32F10X_CL)
#define RCC_APB1ENR_TIM5EN ((uint32_t)0x00000008) /*!< Timer 5 clock enable */
#define RCC_APB1ENR_TIM6EN ((uint32_t)0x00000010) /*!< Timer 6 clock enable */
#define RCC_APB1ENR_TIM7EN ((uint32_t)0x00000020) /*!< Timer 7 clock enable */
|