[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [4931] added support for both crystal and external o
From: |
antoine drouin |
Subject: |
[paparazzi-commits] [4931] added support for both crystal and external oscillator boards |
Date: |
Mon, 14 Jun 2010 16:24:03 +0000 |
Revision: 4931
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=4931
Author: poine
Date: 2010-06-14 16:24:03 +0000 (Mon, 14 Jun 2010)
Log Message:
-----------
added support for both crystal and external oscillator boards
Modified Paths:
--------------
paparazzi3/trunk/sw/airborne/stm32/init_hw.h
Modified: paparazzi3/trunk/sw/airborne/stm32/init_hw.h
===================================================================
--- paparazzi3/trunk/sw/airborne/stm32/init_hw.h 2010-06-14 16:22:46 UTC
(rev 4930)
+++ paparazzi3/trunk/sw/airborne/stm32/init_hw.h 2010-06-14 16:24:03 UTC
(rev 4931)
@@ -59,6 +59,7 @@
static inline void hw_init(void) {
+#ifdef HSE_TYPE_EXT_CLK
/* Setup the microcontroller system.
* Initialize the Embedded Flash Interface,
* initialize the PLL and update the SystemFrequency variable.
@@ -95,7 +96,9 @@
/* Wait till PLL is used as system clock source */
while(RCC_GetSYSCLKSource() != 0x08) {}
}
-
+#else /* HSE_TYPE_EXT_CLK */
+ SystemInit();
+#endif /* HSE_TYPE_EXT_CLK */
/* Set the Vector Table base location at 0x08000000 */
NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x0);
/* Configure all unused GPIO port pins in Analog Input mode (floating input
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [4931] added support for both crystal and external oscillator boards,
antoine drouin <=