git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5564 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
gdisirio 2013-04-07 10:57:46 +00:00
parent 351b7594ff
commit 5c4430d5c8
2 changed files with 9 additions and 0 deletions

View File

@ -204,6 +204,10 @@ void stm32_clock_init(void) {
while ((RCC->CFGR & RCC_CFGR_SWS) != (STM32_SW << 2))
; /* Waits selection complete. */
#endif
#if !STM32_HSI_ENABLED
RCC->CR &= ~RCC_CR_HSION;
#endif
#endif /* !STM32_NO_INIT */
}
@ -285,6 +289,10 @@ void stm32_clock_init(void) {
while ((RCC->CFGR & RCC_CFGR_SWS) != (STM32_SW << 2))
;
#endif
#if !STM32_HSI_ENABLED
RCC->CR &= ~RCC_CR_HSION;
#endif
#endif /* !STM32_NO_INIT */
}
#else

View File

@ -89,6 +89,7 @@
*****************************************************************************
*** 2.5.2 ***
- FIX: Fixed STM32F103 HSI configuration (bug #399).
- FIX: Fixed patch to allow simulator to be restarted quicker (bug #398).
- FIX: Fixed blkDisconnect macro typo (bug #397).
- FIX: Fixed STM32 SPI (V2) driver hangs (bug 3608241).