diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-06-20 20:27:00 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-06-20 20:27:00 +0000 |
commit | 1254530bf9521a70e5d43994e35ba911f25a6955 (patch) | |
tree | bcfa4c0e5ac32195ec49abcae6a68f2a1b78e9dc | |
parent | fe19b6983e874ab10a1e3ad510829ad34a8612cd (diff) | |
download | px4-nuttx-1254530bf9521a70e5d43994e35ba911f25a6955.tar.gz px4-nuttx-1254530bf9521a70e5d43994e35ba911f25a6955.tar.bz2 px4-nuttx-1254530bf9521a70e5d43994e35ba911f25a6955.zip |
Set Mirtoo clock configuration
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4856 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r-- | nuttx/configs/mirtoo/include/board.h | 12 | ||||
-rw-r--r-- | nuttx/configs/mirtoo/ostest/ld.script | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/nuttx/configs/mirtoo/include/board.h b/nuttx/configs/mirtoo/include/board.h index ffea646d1..5890b0070 100644 --- a/nuttx/configs/mirtoo/include/board.h +++ b/nuttx/configs/mirtoo/include/board.h @@ -68,11 +68,11 @@ */ #define BOARD_PLL_INPUT BOARD_FRC_FREQ -#define BOARD_PLL_IDIV 2 /* PLL input divider */ -#define BOARD_PLL_MULT 20 /* PLL multiplier */ -#define BOARD_PLL_ODIV 1 /* PLL output divider */ +#define BOARD_PLL_IDIV 2 /* PLL input divider: Input = 4MHz */ +#define BOARD_PLL_MULT 20 /* PLL multiplier: PLL = 80MHz */ +#define BOARD_PLL_ODIV 2 /* PLL output divider: Output = 40MHz */ -#define BOARD_CPU_CLOCK 80000000 /* CPU clock (80MHz = 8MHz * 20 / 2) */ +#define BOARD_CPU_CLOCK 40000000 /* CPU clock 40MHz = (((8MHz / 2) * 20) / 2) */ /* USB PLL configuration. * USB_CLOCK = ((POSC_XTAL / IDIV) * 24) / 2 @@ -85,8 +85,8 @@ * PBCLOCK = CPU_CLOCK / PBDIV */ -#define BOARD_PBDIV 2 /* Peripheral clock divisor (PBDIV) */ -#define BOARD_PBCLOCK 40000000 /* Peripheral clock (PBCLK = 80MHz/2) */ +#define BOARD_PBDIV 1 /* Peripheral clock divisor (PBDIV) */ +#define BOARD_PBCLOCK 40000000 /* Peripheral clock (PBCLK = 40MHz/1) */ /* Watchdog pre-scaler (re-visit) */ diff --git a/nuttx/configs/mirtoo/ostest/ld.script b/nuttx/configs/mirtoo/ostest/ld.script index 7463754d7..afa76da1d 100644 --- a/nuttx/configs/mirtoo/ostest/ld.script +++ b/nuttx/configs/mirtoo/ostest/ld.script @@ -76,7 +76,7 @@ MEMORY kseg1_intexcpt (rx) : ORIGIN = 0xbfc00400, LENGTH = 128 kseg1_dbgexcpt (rx) : ORIGIN = 0xbfc00480, LENGTH = 16 kseg0_bootmem (rx) : ORIGIN = 0x9fc00490, LENGTH = 3072-1168-16 - kseg1_devcfg (r) : ORIGIN = 0x1fc00bf0, LENGTH = 16 + kseg1_devcfg (r) : ORIGIN = 0xbfc00bf0, LENGTH = 16 /* The PIC32MX250F128D has 32Kb of data memory at physical address * 0x00000000. Since the PIC32MX has no data cache, this memory is |