summaryrefslogtreecommitdiff
path: root/nuttx/configs/pic32mz-starterkit
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-02-28 11:54:47 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-02-28 11:54:47 -0600
commit3e7f22d582c74d4109c4069ff104f2c5e901d4ca (patch)
treea297c18fc0be553222dcbe8ee14aab572f3e737c /nuttx/configs/pic32mz-starterkit
parent5f990259ede6fc8497557513351d3de7b9c4d6a4 (diff)
downloadpx4-nuttx-3e7f22d582c74d4109c4069ff104f2c5e901d4ca.tar.gz
px4-nuttx-3e7f22d582c74d4109c4069ff104f2c5e901d4ca.tar.bz2
px4-nuttx-3e7f22d582c74d4109c4069ff104f2c5e901d4ca.zip
PIC32MZ: Fix some configuration settings and POSC mode should be external clock
Diffstat (limited to 'nuttx/configs/pic32mz-starterkit')
-rw-r--r--nuttx/configs/pic32mz-starterkit/include/board.h23
1 files changed, 18 insertions, 5 deletions
diff --git a/nuttx/configs/pic32mz-starterkit/include/board.h b/nuttx/configs/pic32mz-starterkit/include/board.h
index b5567ed7f..d6a53f3b0 100644
--- a/nuttx/configs/pic32mz-starterkit/include/board.h
+++ b/nuttx/configs/pic32mz-starterkit/include/board.h
@@ -52,15 +52,28 @@
/* Configuration ************************************************************/
/* Clocking *****************************************************************/
-/* Crystal frequencies */
+/* Crystal frequencies
+ *
+ * - A 24 MHz oscillator circuit (Y4) is connected to the on-board
+ * microcontroller. This oscillator circuit functions as the controller’s
+ * primary oscillator. Depending on which is populated on the starter kit
+ * board, a 24 MHz crystal (Y1) may be used instead of Y4.
+ * - The starter kit also has provisions for an external secondary 32 kHz
+ * oscillator (Y2); however, this is not populated.
+ */
-#define BOARD_POSC_FREQ 24000000 /* Primary OSC XTAL frequency (24MHz) */
-#define BOARD_SOSC_FREQ 32768 /* Secondary OSC XTAL frequency (32.768KHz) */
+#define BOARD_POSC_FREQ 24000000 /* Primary OSC XTAL frequency (Y4, 24MHz) */
+#define BOARD_SOSC_FREQ 32000 /* Secondary OSC XTAL frequency (Y2, 32KHz) */
-/* Oscillator modes */
+/* Oscillator modes.
+ *
+ * - BOARD_POSC_ECMODE: An external oscillator is connected to OSC1/OSC2
+ * - BOARD_POSC_HSMODE: An external crystal or resonator is connected to
+ * OSC1/OSC2
+ */
#define BOARD_FNOSC_SPLL 1 /* Use system PLL */
-#define BOARD_POSC_HSMODE 1 /* High-speed crystal (HS) mode */
+#define BOARD_POSC_ECMODE 1 /* External clock (EC) mode */
#define BOARD_POSC_SWITCH 1 /* Enable clock switching */
#undef BOARD_POSC_FSCM /* Disable clock monitoring */