summaryrefslogtreecommitdiff
path: root/nuttx/configs/avr32dev1/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-10-16 02:15:50 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-10-16 02:15:50 +0000
commite4edf83f0ac94f4705635e2af4917e2d0e7e2a7d (patch)
tree5f1ad5a848c1657bb239c361487d09335b660d22 /nuttx/configs/avr32dev1/include
parente77521c50406b0a22165e14e821bdf4876ed66f0 (diff)
downloadpx4-nuttx-e4edf83f0ac94f4705635e2af4917e2d0e7e2a7d.tar.gz
px4-nuttx-e4edf83f0ac94f4705635e2af4917e2d0e7e2a7d.tar.bz2
px4-nuttx-e4edf83f0ac94f4705635e2af4917e2d0e7e2a7d.zip
Add AVR32 system timer
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3021 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/avr32dev1/include')
-rwxr-xr-xnuttx/configs/avr32dev1/include/board.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/nuttx/configs/avr32dev1/include/board.h b/nuttx/configs/avr32dev1/include/board.h
index 77d5cd5a3..7931e3525 100755
--- a/nuttx/configs/avr32dev1/include/board.h
+++ b/nuttx/configs/avr32dev1/include/board.h
@@ -50,16 +50,21 @@
/* Clocking *************************************************************************/
/* #define AVR32_FRCOSC 15200 RCOsc frequency in Hz */
-#define AVR32_FOSC32 32768 /* Osc32 frequency in Hz */
-#define AVR32_OSC32STARTUP 3 /* Osc32 startup time in RCOsc periods */
+#define AVR32_FOSC32 32768 /* OSC32 frequency in Hz */
+#define AVR32_OSC32STARTUP 3 /* OSC32 startup time in RCOsc periods */
-#define AVR32_FOSC0 12000000 /* Osc0 frequency in Hz */
-#define AVR32_OSC0STARTUP 3 /* Osc0 startup time in RCOsc periods.
+#define AVR32_FOSC0 12000000 /* OSC0 frequency in Hz */
+#define AVR32_OSC0STARTUP 3 /* OSC0 startup time in RCOsc periods.
-/* #define AVR32_FOSC1 12000000 Osc1 frequency: Hz.
- * #define AVR32_OSC1STARTUP 3 Osc1 startup time in RCOsc periods.
+/* #define AVR32_FOSC1 12000000 OSC1 frequency: Hz.
+ * #define AVR32_OSC1STARTUP 3 OSC1 startup time in RCOsc periods.
*/
+/* Select OSC0 as the main clock */
+
+#define AVR32_CLOCK_OSC0 1
+#undef AVR32_CLOCK_PLL0
+
#define AVR32_CPU_CLOCK AVR32_FOSC0
#define AVR32_PBA_CLOCK AVR32_FOSC0