Fixed bug #603, adjusted an ST header because a missing macro.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8026 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
bddc8f7ff7
commit
07abb12be8
|
@ -152,6 +152,9 @@
|
|||
/**
|
||||
* @brief Configuration of the Cortex-M3 Processor and Core Peripherals
|
||||
*/
|
||||
/* CHIBIOS FIX */
|
||||
#define __CM3_REV 0x0201 /*!< Core revision r2p1, not sure it is right */
|
||||
/* END CHIBIOS FIX */
|
||||
#ifdef STM32F10X_XL
|
||||
#define __MPU_PRESENT 1 /*!< STM32 XL-density devices provide an MPU */
|
||||
#else
|
||||
|
|
|
@ -891,9 +891,9 @@
|
|||
#define STM32_USART1CLK STM32_PCLK2
|
||||
#elif STM32_USART1SW == STM32_USART1SW_SYSCLK
|
||||
#define STM32_USART1CLK STM32_SYSCLK
|
||||
#elif STM32_USART1SW == STM32_USART1SW_LSECLK
|
||||
#elif STM32_USART1SW == STM32_USART1SW_LSE
|
||||
#define STM32_USART1CLK STM32_LSECLK
|
||||
#elif STM32_USART1SW == STM32_USART1SW_HSICLK
|
||||
#elif STM32_USART1SW == STM32_USART1SW_HSI
|
||||
#define STM32_USART1CLK STM32_HSICLK
|
||||
#else
|
||||
#error "invalid source selected for USART1 clock"
|
||||
|
@ -906,9 +906,9 @@
|
|||
#define STM32_USART2CLK STM32_PCLK1
|
||||
#elif STM32_USART2SW == STM32_USART2SW_SYSCLK
|
||||
#define STM32_USART2CLK STM32_SYSCLK
|
||||
#elif STM32_USART2SW == STM32_USART2SW_LSECLK
|
||||
#elif STM32_USART2SW == STM32_USART2SW_LSE
|
||||
#define STM32_USART2CLK STM32_LSECLK
|
||||
#elif STM32_USART2SW == STM32_USART2SW_HSICLK
|
||||
#elif STM32_USART2SW == STM32_USART2SW_HSI
|
||||
#define STM32_USART2CLK STM32_HSICLK
|
||||
#else
|
||||
#error "invalid source selected for USART2 clock"
|
||||
|
@ -921,9 +921,9 @@
|
|||
#define STM32_USART3CLK STM32_PCLK1
|
||||
#elif STM32_USART3SW == STM32_USART3SW_SYSCLK
|
||||
#define STM32_USART3CLK STM32_SYSCLK
|
||||
#elif STM32_USART3SW == STM32_USART3SW_LSECLK
|
||||
#elif STM32_USART3SW == STM32_USART3SW_LSE
|
||||
#define STM32_USART3CLK STM32_LSECLK
|
||||
#elif STM32_USART3SW == STM32_USART3SW_HSICLK
|
||||
#elif STM32_USART3SW == STM32_USART3SW_HSI
|
||||
#define STM32_USART3CLK STM32_HSICLK
|
||||
#else
|
||||
#error "invalid source selected for USART3 clock"
|
||||
|
|
Loading…
Reference in New Issue