summaryrefslogtreecommitdiff
path: root/nuttx/configs/shenzhou
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-04 15:07:06 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-10-04 15:07:06 +0000
commitf096e07fceb776545fa7b06501dc734ad0e81783 (patch)
treeaa15bc2af17fcfac1187c1870a8650f2148ba170 /nuttx/configs/shenzhou
parentafc0ebc1b59d02737cc44924bd318dc9558a912a (diff)
downloadpx4-nuttx-f096e07fceb776545fa7b06501dc734ad0e81783.tar.gz
px4-nuttx-f096e07fceb776545fa7b06501dc734ad0e81783.tar.bz2
px4-nuttx-f096e07fceb776545fa7b06501dc734ad0e81783.zip
Change order of includes in apps/Makefile; add clock frequencies to shenzhou, fire, and olimex-stm32 board.h files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5210 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/shenzhou')
-rw-r--r--nuttx/configs/shenzhou/include/board.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/nuttx/configs/shenzhou/include/board.h b/nuttx/configs/shenzhou/include/board.h
index c105d4ab5..2897ac219 100644
--- a/nuttx/configs/shenzhou/include/board.h
+++ b/nuttx/configs/shenzhou/include/board.h
@@ -55,10 +55,19 @@
/* Clocking *************************************************************************/
-/* On-board crystal frequency is 25MHz (HSE) */
+/* HSI - 8 MHz RC factory-trimmed
+ * LSI - 40 KHz RC (30-60KHz, uncalibrated)
+ * HSE - On-board crystal frequency is 25MHz
+ * LSE - 32.768 kHz
+ */
#define STM32_BOARD_XTAL 25000000ul
+#define STM32_HSI_FREQUENCY 8000000ul
+#define STM32_LSI_FREQUENCY 40000
+#define STM32_HSE_FREQUENCY STM32_BOARD_XTAL
+#define STM32_LSE_FREQUENCY 32768
+
/* PLL ouput is 72MHz */
#define STM32_PLL_PREDIV2 RCC_CFGR2_PREDIV2d5 /* 25MHz / 5 => 5MHz */