diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-11-02 03:30:11 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-11-02 03:30:11 +0000 |
commit | e1fc7cc6703067fa89811d71e8aa9a00482c631b (patch) | |
tree | 0c6366ce3a8e69950526c43d277288b0768a015a /nuttx/configs/avr32dev1 | |
parent | 1bd493e97b116e3db8cb588e243bac0895844ebc (diff) | |
download | px4-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')
-rwxr-xr-x | nuttx/configs/avr32dev1/README.txt | 8 | ||||
-rwxr-xr-x | nuttx/configs/avr32dev1/include/board.h | 17 |
2 files changed, 20 insertions, 5 deletions
diff --git a/nuttx/configs/avr32dev1/README.txt b/nuttx/configs/avr32dev1/README.txt index 341a7a69f..8020a47ab 100755 --- a/nuttx/configs/avr32dev1/README.txt +++ b/nuttx/configs/avr32dev1/README.txt @@ -62,10 +62,16 @@ OSC1 between MCUZone.com and Atmel: 23 31 PA12 XOUT32 XOUT32 (32 Khz)
----- ----- ---- --------- --------------------
-NOTE: These crystal inputs/outputs are analog signals and my
+NOTE 1: These crystal inputs/outputs are analog signals and my
assumption is that they need no pin multiplexing setting to
enable them for the external crystal function.
+NOTE 2: There is no support for OSC1.
+
+NOTE 3: There are solder pads for the 32KHz OSC32, but the
+crystal is not populated on my board. Therefore, the RTC will
+have to run from the (uncalibrated) RCOSC.
+
Serial Connection
^^^^^^^^^^^^^^^^^
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 |