9
0
Fork 0

Calibrate lm3s6918 timing loop

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1792 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2009-05-18 23:01:30 +00:00
parent ec06d6dbc0
commit 8de99d03e5
7 changed files with 46 additions and 8 deletions

View File

@ -52,10 +52,6 @@
* Definitions
****************************************************************************/
/* Define to enable timing loop calibration */
#undef CONFIG_ARM_CALIBRATION
/****************************************************************************
* Private Types
****************************************************************************/
@ -74,16 +70,16 @@
*
****************************************************************************/
#if defined(CONFIG_ARM_CALIBRATION) & defined(CONFIG_DEBUG)
#if defined(CONFIG_ARCH_CALIBRATION) && defined(CONFIG_DEBUG)
static void up_calibratedelay(void)
{
int i;
slldbg("Beginning 100s delay\n");
lldbg("Beginning 100s delay\n");
for (i = 0; i < 100; i++)
{
up_mdelay(1000);
}
slldbg("End 100s delay\n");
lldbg("End 100s delay\n");
}
#else
# define up_calibratedelay()

View File

@ -81,6 +81,13 @@ ARM/C5471-specific Configuration Options
CONFIG_ARCH_STACKDUMP - Do stack dumps after assertions
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 calibratre
CONFIG_ARCH_LOOPSPERMSEC. You simply use a stop watch to measure
the 100 second delay then adjust CONFIG_ARCH_LOOPSPERMSEC until
the delay actually is 100 seconds.
C5471 specific device driver settings
CONFIG_SERIAL_IRDA_CONSOLE - selects the IRDA UART for the

View File

@ -142,6 +142,13 @@ Eagle100-specific Configuration Options
CONFIG_ARCH_LEDS - Use LEDs to show state. Unique to board architecture.
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 calibratre
CONFIG_ARCH_LOOPSPERMSEC. You simply use a stop watch to measure
the 100 second delay then adjust CONFIG_ARCH_LOOPSPERMSEC until
the delay actually is 100 seconds.
LM3S6818 specific device driver settings
CONFIG_UARTn_SERIAL_CONSOLE - selects the UARTn for the

View File

@ -59,13 +59,19 @@
# CONFIG_ARCH_BOOTLOADER - Configure to use the MicroMint Eagle-100
# Ethernet bootloader.
# CONFIG_ARCH_LEDS - Use LEDs to show state. Unique to board architecture.
# 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 calibratre
# CONFIG_ARCH_LOOPSPERMSEC. You simply use a stop watch to measure
# the 100 second delay then adjust CONFIG_ARCH_LOOPSPERMSEC until
# the delay actually is 100 seconds.
CONFIG_ARCH=arm
CONFIG_ARCH_ARM=y
CONFIG_ARCH_CHIP=lm3s
CONFIG_ARCH_CHIP_LM3S6918=y
CONFIG_ARCH_BOARD=eagle100
CONFIG_ARCH_BOARD_EAGLE100=y
CONFIG_BOARD_LOOPSPERMSEC=16945
CONFIG_BOARD_LOOPSPERMSEC=4531
CONFIG_DRAM_SIZE=0x00010000
CONFIG_DRAM_START=0x00000000
CONFIG_DRAM_END=(CONFIG_DRAM_START+CONFIG_DRAM_SIZE)
@ -75,6 +81,7 @@ CONFIG_ARCH_INTERRUPTSTACK=n
CONFIG_ARCH_STACKDUMP=y
CONFIG_ARCH_BOOTLOADER=y
CONFIG_ARCH_LEDS=y
CONFIG_ARCH_CALIBRATION=n
#
# LM3S6918 specific serial device driver settings

View File

@ -96,6 +96,13 @@ ARM/LPC214X-specific Configuration Options
CONFIG_ARCH_STACKDUMP - Do stack dumps after assertions
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 calibratre
CONFIG_ARCH_LOOPSPERMSEC. You simply use a stop watch to measure
the 100 second delay then adjust CONFIG_ARCH_LOOPSPERMSEC until
the delay actually is 100 seconds.
LPC2148 specific chip initialization
These provide register setup values:

View File

@ -84,6 +84,13 @@ ARM/i.MX1-specific Configuration Options
CONFIG_ARCH_STACKDUMP - Do stack dumps after assertions
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 calibratre
CONFIG_ARCH_LOOPSPERMSEC. You simply use a stop watch to measure
the 100 second delay then adjust CONFIG_ARCH_LOOPSPERMSEC until
the delay actually is 100 seconds.
IMX specific device driver settings
CONFIG_UARTn_SERIAL_CONSOLE - selects the UARTn for the

View File

@ -83,6 +83,13 @@ ARM/DM320-specific Configuration Options
CONFIG_ARCH_STACKDUMP - Do stack dumps after assertions
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 calibratre
CONFIG_ARCH_LOOPSPERMSEC. You simply use a stop watch to measure
the 100 second delay then adjust CONFIG_ARCH_LOOPSPERMSEC until
the delay actually is 100 seconds.
DM320 specific device driver settings
CONFIG_UARTn_SERIAL_CONSOLE - selects the UARTn for the