summaryrefslogtreecommitdiff
path: root/nuttx/configs/avr32dev1/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-11-02 03:30:11 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-11-02 03:30:11 +0000
commite1fc7cc6703067fa89811d71e8aa9a00482c631b (patch)
tree0c6366ce3a8e69950526c43d277288b0768a015a /nuttx/configs/avr32dev1/include
parent1bd493e97b116e3db8cb588e243bac0895844ebc (diff)
downloadpx4-nuttx-e1fc7cc6703067fa89811d71e8aa9a00482c631b.tar.gz
px4-nuttx-e1fc7cc6703067fa89811d71e8aa9a00482c631b.tar.bz2
px4-nuttx-e1fc7cc6703067fa89811d71e8aa9a00482c631b.zip
It took me a long time to figure out that the board has no 32KHz crystal
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3069 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/avr32dev1/include')
-rwxr-xr-xnuttx/configs/avr32dev1/include/board.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/nuttx/configs/avr32dev1/include/board.h b/nuttx/configs/avr32dev1/include/board.h
index ec61c5c1b..d7d933ae6 100755
--- a/nuttx/configs/avr32dev1/include/board.h
+++ b/nuttx/configs/avr32dev1/include/board.h
@@ -54,8 +54,10 @@
/* Oscillator setup: RCOSC, OSC32, OSC0, OSC1. Only RCOSC, OSC0, or PLL0 can drive
* the main clock.
*/
-
-/* #define AVR32_FRCOSC 15200 RCOSC frequency in Hz */
+
+/* The RCOSC frequency needs to be calibrated! */
+
+#define AVR32_FRCOSC 115000 /* RCOSC frequency in Hz. 115KHz nominal */
#define AVR32_FOSC32 32768 /* OSC32 frequency in Hz */
#define AVR32_OSC32STARTUP 3 /* OSC32 startup time in RCOSC periods */
@@ -117,10 +119,17 @@
#undef AVR32_CLOCK_USB_OSC1
#define AVR32_CLOCK_USB_DIV 0
-/* Main Clock settup: Select OSC0 as the main clock */
+/* Main Clock settup: Select OSC0 as the main clock.
+ *
+ * - A 12Mhz crystal is provided on he board for OSC0.
+ * - The AVR32DEV1 board has no support for OSC1.
+ * - There are pads for he 32Khz OSC32, but it is not populated on the
+ * board.
+ */
#define AVR32_CLOCK_OSC0 1
-#undef AVR32_CLOCK_OSC1
+#undef AVR32_CLOCK_OSC1 /* Not supported */
+#undef AVR32_CLOCK_OSC32 /* Not populated */
#undef AVR32_CLOCK_PLL0
#undef AVR32_CLOCK_PLL1