Commit Graph

9 Commits

Author SHA1 Message Date
Gregory Nutt
7fab748667 STL32 F15x: stm32_stdclockconfig() was calling stm32_pw_setvos() which accessed PWR_CR via an inactive APB. From Juha Niskanen. 2015-06-11 08:09:36 -06:00
Gregory Nutt
ae15c6963c Make some file section headers more consistent with standard 2015-04-08 08:04:12 -06:00
Gregory Nutt
f073092fad The STM32F4Discovery board doesn't come with a Low speed external oscillator so the default LSE source for the RTC doesn't work.
In stm32_rtcc.c the up_rtcinitialize() logic doesn't work with the LSI. The check on RTC_MAGIC on the BK0R register lead to rtc_setup() call that rightfully enables the lsi clock; but the next times, when the rtc is already setup, the rtc_resume() call does NOT start the lsi clock!

The right place to put LSE/LSI initialisation is inside stm32_stdclockconfig() in stm32fxxxxx_rcc.c.  Doing this I checked the possible uses of the LSI and the LSE sources: the LSI can be used for RTC and/or the IWDG, while the LSE only for the RTC (and to output the MCO1 pin)..

This change is not verifed for any other platforms.

From Leo Aloe3132
2015-03-29 15:34:48 -06:00
Gregory Nutt
02bb1d69b8 Add support for the STM32152 and STM32162 Medium+ density parts (plus miscellaneous other improvements to the original STM32151 logic). From Jussi Kivilinna and Sami Pelkonen 2014-05-08 09:20:11 -06:00
Gregory Nutt
83ec247866 Fix STM32L15X vector definitions; Fix STM32L-Discovery LED controls. The NSH configuration is now fully functional on the STM32L-Discovery board. 2013-05-21 11:25:30 -06:00
Gregory Nutt
60036e60f8 STM32L152: Better LOOPSPERMSEC; Need to set higher performance VOS 2013-05-20 15:51:37 -06:00
Gregory Nutt
bcf9bc0f41 Fix STM32L-Discovery clock setup - The X3 crystal is not fitted on the board 2013-05-20 12:17:34 -06:00
Gregory Nutt
55b2ed4485 Misc updates to STL32L15X logic 2013-05-20 10:08:44 -06:00
Gregory Nutt
d7f6cbf4fd Add STM32L152X RCC PLL and FLASH support. Now compiles errorfree. 2013-05-19 14:35:30 -06:00