summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-22 22:24:00 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-22 22:24:00 +0000
commitc1cec70f7ea9e4ec9272a369f44ce28166ca60d2 (patch)
treef2aa8b6c2f7a3092fbd47459d15d4331501d048e
parent64b5c8236dff87e2f546e63902412a01c45348d0 (diff)
downloadnuttx-c1cec70f7ea9e4ec9272a369f44ce28166ca60d2.tar.gz
nuttx-c1cec70f7ea9e4ec9272a369f44ce28166ca60d2.tar.bz2
nuttx-c1cec70f7ea9e4ec9272a369f44ce28166ca60d2.zip
Calibrated all PIC32 delay loops
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4217 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--apps/examples/adc/adc_main.c2
-rw-r--r--nuttx/ChangeLog1
-rw-r--r--nuttx/configs/sure-pic32mx/nsh/defconfig9
-rw-r--r--nuttx/configs/sure-pic32mx/ostest/defconfig11
4 files changed, 11 insertions, 12 deletions
diff --git a/apps/examples/adc/adc_main.c b/apps/examples/adc/adc_main.c
index 39eaf7d26..8373684a4 100644
--- a/apps/examples/adc/adc_main.c
+++ b/apps/examples/adc/adc_main.c
@@ -2,7 +2,7 @@
* examples/adc/adc_main.c
*
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ * Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog
index 6c39fc194..7154b5d19 100644
--- a/nuttx/ChangeLog
+++ b/nuttx/ChangeLog
@@ -2293,3 +2293,4 @@
accuracy of the timer-driven sampling.
* configs/sure-pic32mx/nsh. The PIC32 port if (finally) functionaal. Add an
NSH configuration for the Sure PIC32MX board.
+ * configs/sure-pic32mx/*/defconfig. Calibrated all PIC32 delay loops.
diff --git a/nuttx/configs/sure-pic32mx/nsh/defconfig b/nuttx/configs/sure-pic32mx/nsh/defconfig
index 6eb1a7518..74b56dda8 100644
--- a/nuttx/configs/sure-pic32mx/nsh/defconfig
+++ b/nuttx/configs/sure-pic32mx/nsh/defconfig
@@ -49,7 +49,9 @@
# CONFIG_ARCH_BOARD_name - for use in C code
# CONFIG_ENDIAN_BIG - define if big endian (default is little endian)
# NOTE: The PIC32MX is always little endian.
-# CONFIG_BOARD_LOOPSPERMSEC - for delay loops
+# CONFIG_BOARD_LOOPSPERMSEC. You simply use a stop watch to measure
+# the 100 second delay then adjust CONFIG_BOARD_LOOPSPERMSEC until
+# the delay actually is 100 seconds.
# CONFIG_DRAM_SIZE - Describes the installed DRAM.
# CONFIG_DRAM_START - The start address of DRAM (physical)
# CONFIG_DRAM_END - Last address+1 of installed RAM
@@ -65,9 +67,6 @@
# CONFIG_ARCH_CALIBRATION - Enables some build in instrumentation that
# cause a 100 second delay during boot-up. This 100 second delay
# serves no purpose other than it allows you to calibrate
-# CONFIG_BOARD_LOOPSPERMSEC. You simply use a stop watch to measure
-# the 100 second delay then adjust CONFIG_BOARD_LOOPSPERMSEC until
-# the delay actually is 100 seconds.
# CONFIG_ARCH_DMA - Support DMA initialization
#
CONFIG_ARCH=mips
@@ -77,7 +76,7 @@ CONFIG_ARCH_CHIP=pic32mx
CONFIG_ARCH_CHIP_PIC32MX440F512H=y
CONFIG_ARCH_BOARD=sure-pic32mx
CONFIG_ARCH_BOARD_SUREPIC32MX=y
-CONFIG_BOARD_LOOPSPERMSEC=8079
+CONFIG_BOARD_LOOPSPERMSEC=4275
CONFIG_DRAM_SIZE=(32*1024)
CONFIG_DRAM_START=0xa0000000
CONFIG_DRAM_END=(CONFIG_DRAM_START+CONFIG_DRAM_SIZE)
diff --git a/nuttx/configs/sure-pic32mx/ostest/defconfig b/nuttx/configs/sure-pic32mx/ostest/defconfig
index 00786792c..838e553ef 100644
--- a/nuttx/configs/sure-pic32mx/ostest/defconfig
+++ b/nuttx/configs/sure-pic32mx/ostest/defconfig
@@ -2,7 +2,7 @@
# configs/sure-pic32mx/ostest/defconfig
#
# Copyright (C) 2011 Gregory Nutt. All rights reserved.
-# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
@@ -49,7 +49,9 @@
# CONFIG_ARCH_BOARD_name - for use in C code
# CONFIG_ENDIAN_BIG - define if big endian (default is little endian)
# NOTE: The PIC32MX is always little endian.
-# CONFIG_BOARD_LOOPSPERMSEC - for delay loops
+# CONFIG_BOARD_LOOPSPERMSEC. You simply use a stop watch to measure
+# the 100 second delay then adjust CONFIG_BOARD_LOOPSPERMSEC until
+# the delay actually is 100 seconds.
# CONFIG_DRAM_SIZE - Describes the installed DRAM.
# CONFIG_DRAM_START - The start address of DRAM (physical)
# CONFIG_DRAM_END - Last address+1 of installed RAM
@@ -65,9 +67,6 @@
# CONFIG_ARCH_CALIBRATION - Enables some build in instrumentation that
# cause a 100 second delay during boot-up. This 100 second delay
# serves no purpose other than it allows you to calibrate
-# CONFIG_BOARD_LOOPSPERMSEC. You simply use a stop watch to measure
-# the 100 second delay then adjust CONFIG_BOARD_LOOPSPERMSEC until
-# the delay actually is 100 seconds.
# CONFIG_ARCH_DMA - Support DMA initialization
#
CONFIG_ARCH=mips
@@ -77,7 +76,7 @@ CONFIG_ARCH_CHIP=pic32mx
CONFIG_ARCH_CHIP_PIC32MX440F512H=y
CONFIG_ARCH_BOARD=sure-pic32mx
CONFIG_ARCH_BOARD_SUREPIC32MX=y
-CONFIG_BOARD_LOOPSPERMSEC=8079
+CONFIG_BOARD_LOOPSPERMSEC=4275
CONFIG_DRAM_SIZE=(32*1024)
CONFIG_DRAM_START=0xa0000000
CONFIG_DRAM_END=(CONFIG_DRAM_START+CONFIG_DRAM_SIZE)