Change naming of all Stellaris pre-processor symbols from LM3S_ to LM_ to make room in the namespace for LM4F
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5498 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
ede3dca471
commit
001b3b137d
32 changed files with 102 additions and 99 deletions
|
|
@ -431,14 +431,16 @@ AVR32DEV1 Configuration Options
|
|||
Configurations
|
||||
^^^^^^^^^^^^^^
|
||||
|
||||
Each Stellaris LM3S6965 Evaluation Kit configuration is maintained in a
|
||||
sudirectory and can be selected as follow:
|
||||
Each Atmel AVR32DEV configuration is maintained in a sudirectory and
|
||||
can be selected as follow:
|
||||
|
||||
cd tools
|
||||
./configure.sh avr32dev1/<subdir>
|
||||
cd -
|
||||
. ./setenv.sh
|
||||
|
||||
(Or configure.bat in a native Windows environment).
|
||||
|
||||
Where <subdir> is one of the following:
|
||||
|
||||
nsh:
|
||||
|
|
|
|||
|
|
@ -344,7 +344,7 @@ Eagle100-specific Configuration Options
|
|||
CONFIG_LM_DISABLE_GPIOH_IRQS=y
|
||||
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||
|
||||
LM3S6818 specific device driver settings
|
||||
LM3S6918 specific device driver settings
|
||||
|
||||
CONFIG_UARTn_SERIAL_CONSOLE - selects the UARTn for the
|
||||
console and ttys0 (default is the UART0).
|
||||
|
|
@ -368,7 +368,7 @@ Eagle100-specific Configuration Options
|
|||
Rx FIFO overrun errors. Default: half of the Tx FIFO size (4).
|
||||
|
||||
CONFIG_LM_ETHERNET - This must be set (along with CONFIG_NET)
|
||||
to build the LM3S Ethernet driver
|
||||
to build the Stellaris Ethernet driver
|
||||
CONFIG_LM_ETHLEDS - Enable to use Ethernet LEDs on the board.
|
||||
CONFIG_LM_BOARDMAC - If the board-specific logic can provide
|
||||
a MAC address (via lm_ethernetmac()), then this should be selected.
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@
|
|||
* of (400 / 2) / 4 = 50MHz
|
||||
*/
|
||||
|
||||
#define LM3S_SYSDIV 4
|
||||
#define LM_SYSDIV 4
|
||||
#define SYSCLK_FREQUENCY 50000000 /* 50MHz */
|
||||
|
||||
/* Other RCC settings:
|
||||
|
|
@ -74,7 +74,7 @@
|
|||
* - No auto-clock gating reset
|
||||
*/
|
||||
|
||||
#define LM3S_RCC_VALUE (SYSCON_RCC_OSCSRC | SYSCON_RCC_XTAL | SYSCON_RCC_USESYSDIV | SYSCON_RCC_SYSDIV(LM3S_SYSDIV))
|
||||
#define LM_RCC_VALUE (SYSCON_RCC_OSCSRC | SYSCON_RCC_XTAL | SYSCON_RCC_USESYSDIV | SYSCON_RCC_SYSDIV(LM_SYSDIV))
|
||||
|
||||
/* RCC2 settings -- RCC2 not used. Other RCC2 settings
|
||||
*
|
||||
|
|
@ -83,7 +83,7 @@
|
|||
* - Not using RCC2
|
||||
*/
|
||||
|
||||
#define LM3S_RCC2_VALUE (SYSCON_RCC2_OSCSRC | SYSCON_RCC2_SYSDIV(LM3S_SYSDIV))
|
||||
#define LM_RCC2_VALUE (SYSCON_RCC2_OSCSRC | SYSCON_RCC2_SYSDIV(LM_SYSDIV))
|
||||
|
||||
/* LED definitions ******************************************************************/
|
||||
|
||||
|
|
@ -115,9 +115,9 @@
|
|||
* Name: lm_boardinitialize
|
||||
*
|
||||
* Description:
|
||||
* All LM3S architectures must provide the following entry point. This entry point
|
||||
* is called early in the intitialization -- after all memory has been configured
|
||||
* and mapped but before any devices have been initialized.
|
||||
* All Stellaris architectures must provide the following entry point. This entry
|
||||
* point is called early in the intitialization -- after all memory has been
|
||||
* configured and mapped but before any devices have been initialized.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
|
|
|
|||
|
|
@ -56,12 +56,12 @@
|
|||
* expanded).
|
||||
*/
|
||||
|
||||
#if LM3S_NSSI == 0
|
||||
#if LM_NSSI == 0
|
||||
# undef CONFIG_SSI0_DISABLE
|
||||
# define CONFIG_SSI0_DISABLE 1
|
||||
# undef CONFIG_SSI1_DISABLE
|
||||
# define CONFIG_SSI1_DISABLE 1
|
||||
#elif LM3S_NSSI == 1
|
||||
#elif LM_NSSI == 1
|
||||
# undef CONFIG_SSI1_DISABLE
|
||||
# define CONFIG_SSI1_DISABLE 1
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -63,9 +63,10 @@
|
|||
* Name: lm_boardinitialize
|
||||
*
|
||||
* Description:
|
||||
* All LM3S architectures must provide the following entry point. This entry point
|
||||
* is called early in the intitialization -- after all memory has been configured
|
||||
* and mapped but before any devices have been initialized.
|
||||
* All Stellaris architectures must provide the following entry point. This entry
|
||||
* point is called early in the intitialization -- after all memory has been
|
||||
* configured and mapped but before any devices have been initialized.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
void lm_boardinitialize(void)
|
||||
|
|
|
|||
|
|
@ -80,8 +80,8 @@ void lm_ethernetmac(struct ether_addr *ethaddr)
|
|||
|
||||
/* Get the current value of the user registers */
|
||||
|
||||
user0 = getreg32(LM3S_FLASH_USERREG0);
|
||||
user1 = getreg32(LM3S_FLASH_USERREG1);
|
||||
user0 = getreg32(LM_FLASH_USERREG0);
|
||||
user1 = getreg32(LM_FLASH_USERREG1);
|
||||
|
||||
nlldbg("user: %06x:%06x\n", user1 & 0x00ffffff, user0 & 0x00ffffff);
|
||||
DEBUGASSERT(user0 != 0xffffffff && user1 != 0xffffffff);
|
||||
|
|
|
|||
|
|
@ -324,7 +324,7 @@ Stellaris EKK-LM3S9B96 Evaluation Kit Configuration Options
|
|||
|
||||
CONFIG_DRAM_START=0x20000000
|
||||
|
||||
CONFIG_ARCH_IRQPRIO - The LM3S6918 supports interrupt prioritization
|
||||
CONFIG_ARCH_IRQPRIO - The LM3S9B96 supports interrupt prioritization
|
||||
|
||||
CONFIG_ARCH_IRQPRIO=y
|
||||
|
||||
|
|
@ -348,7 +348,7 @@ Stellaris EKK-LM3S9B96 Evaluation Kit Configuration Options
|
|||
the delay actually is 100 seconds.
|
||||
|
||||
There are configurations for disabling support for interrupts GPIO ports.
|
||||
GPIOJ must be disabled because it does not exist on the LM3S6918.
|
||||
GPIOJ must be disabled because it does not exist on the LM3S9B96.
|
||||
Additional interrupt support can be disabled if desired to reduce memory
|
||||
footprint.
|
||||
|
||||
|
|
@ -362,7 +362,7 @@ Stellaris EKK-LM3S9B96 Evaluation Kit Configuration Options
|
|||
CONFIG_LM_DISABLE_GPIOH_IRQS=n
|
||||
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||
|
||||
LM3S6818 specific device driver settings
|
||||
LM3S9B96 specific device driver settings
|
||||
|
||||
CONFIG_UARTn_SERIAL_CONSOLE - selects the UARTn for the
|
||||
console and ttys0 (default is the UART0).
|
||||
|
|
@ -386,7 +386,7 @@ Stellaris EKK-LM3S9B96 Evaluation Kit Configuration Options
|
|||
Rx FIFO overrun errors. Default: half of the Tx FIFO size (4).
|
||||
|
||||
CONFIG_LM_ETHERNET - This must be set (along with CONFIG_NET)
|
||||
to build the LM3S Ethernet driver
|
||||
to build the Stellaris Ethernet driver
|
||||
CONFIG_LM_ETHLEDS - Enable to use Ethernet LEDs on the board.
|
||||
CONFIG_LM_BOARDMAC - If the board-specific logic can provide
|
||||
a MAC address (via lm_ethernetmac()), then this should be selected.
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@
|
|||
* of (400 / 2) / 4 = 50MHz
|
||||
*/
|
||||
|
||||
#define LM3S_SYSDIV 4
|
||||
#define LM_SYSDIV 4
|
||||
#define SYSCLK_FREQUENCY 50000000 /* 50MHz */
|
||||
|
||||
/* Other RCC settings:
|
||||
|
|
@ -75,7 +75,7 @@
|
|||
* - No auto-clock gating reset
|
||||
*/
|
||||
|
||||
#define LM3S_RCC_VALUE (SYSCON_RCC_OSCSRC | SYSCON_RCC_XTAL | SYSCON_RCC_USESYSDIV | SYSCON_RCC_SYSDIV(LM3S_SYSDIV))
|
||||
#define LM_RCC_VALUE (SYSCON_RCC_OSCSRC | SYSCON_RCC_XTAL | SYSCON_RCC_USESYSDIV | SYSCON_RCC_SYSDIV(LM_SYSDIV))
|
||||
|
||||
/* RCC2 settings -- RCC2 not used. Other RCC2 settings
|
||||
*
|
||||
|
|
@ -84,7 +84,7 @@
|
|||
* - Not using RCC2
|
||||
*/
|
||||
|
||||
#define LM3S_RCC2_VALUE (SYSCON_RCC2_OSCSRC | SYSCON_RCC2_SYSDIV(LM3S_SYSDIV))
|
||||
#define LM_RCC2_VALUE (SYSCON_RCC2_OSCSRC | SYSCON_RCC2_SYSDIV(LM_SYSDIV))
|
||||
|
||||
/* LED definitions ******************************************************************/
|
||||
|
||||
|
|
@ -116,9 +116,9 @@
|
|||
* Name: lm_boardinitialize
|
||||
*
|
||||
* Description:
|
||||
* All LM3S architectures must provide the following entry point. This entry point
|
||||
* is called early in the intitialization -- after all memory has been configured
|
||||
* and mapped but before any devices have been initialized.
|
||||
* All Stellaris architectures must provide the following entry point. This entry
|
||||
* point is called early in the intitialization -- after all memory has been
|
||||
* configured and mapped but before any devices have been initialized.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
|
|
|
|||
|
|
@ -57,12 +57,12 @@
|
|||
* expanded).
|
||||
*/
|
||||
|
||||
#if LM3S_NSSI == 0
|
||||
#if LM_NSSI == 0
|
||||
# undef CONFIG_SSI0_DISABLE
|
||||
# define CONFIG_SSI0_DISABLE 1
|
||||
# undef CONFIG_SSI1_DISABLE
|
||||
# define CONFIG_SSI1_DISABLE 1
|
||||
#elif LM3S_NSSI == 1
|
||||
#elif LM_NSSI == 1
|
||||
# undef CONFIG_SSI1_DISABLE
|
||||
# define CONFIG_SSI1_DISABLE 1
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -65,9 +65,10 @@
|
|||
* Name: lm_boardinitialize
|
||||
*
|
||||
* Description:
|
||||
* All LM3S architectures must provide the following entry point. This entry point
|
||||
* is called early in the intitialization -- after all memory has been configured
|
||||
* and mapped but before any devices have been initialized.
|
||||
* All Stellaris architectures must provide the following entry point. This entry
|
||||
* point is called early in the intitialization -- after all memory has been
|
||||
* configured and mapped but before any devices have been initialized.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
void lm_boardinitialize(void)
|
||||
|
|
|
|||
|
|
@ -81,8 +81,8 @@ void lm_ethernetmac(struct ether_addr *ethaddr)
|
|||
|
||||
/* Get the current value of the user registers */
|
||||
|
||||
user0 = getreg32(LM3S_FLASH_USERREG0);
|
||||
user1 = getreg32(LM3S_FLASH_USERREG1);
|
||||
user0 = getreg32(LM_FLASH_USERREG0);
|
||||
user1 = getreg32(LM_FLASH_USERREG1);
|
||||
|
||||
nlldbg("user: %06x:%06x\n", user1 & 0x00ffffff, user0 & 0x00ffffff);
|
||||
DEBUGASSERT(user0 != 0xffffffff && user1 != 0xffffffff);
|
||||
|
|
|
|||
|
|
@ -318,7 +318,7 @@ Stellaris MDL-S2E Reference Design Configuration Options
|
|||
|
||||
CONFIG_DRAM_START=0x20000000
|
||||
|
||||
CONFIG_ARCH_IRQPRIO - The LM3S6918 supports interrupt prioritization
|
||||
CONFIG_ARCH_IRQPRIO - The LM3S6432 supports interrupt prioritization
|
||||
|
||||
CONFIG_ARCH_IRQPRIO=y
|
||||
|
||||
|
|
@ -389,7 +389,7 @@ Stellaris MDL-S2E Reference Design Configuration Options
|
|||
Rx FIFO overrun errors. Default: half of the Tx FIFO size (4).
|
||||
|
||||
CONFIG_LM_ETHERNET - This must be set (along with CONFIG_NET)
|
||||
to build the LM3S Ethernet driver
|
||||
to build the Stellaris Ethernet driver
|
||||
CONFIG_LM_ETHLEDS - Enable to use Ethernet LEDs on the board.
|
||||
CONFIG_LM_BOARDMAC - This should be set in order to use the
|
||||
MAC address configured in the flash USER registers.
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@
|
|||
* of (400 / 2) / 4 = 50MHz
|
||||
*/
|
||||
|
||||
#define LM3S_SYSDIV 4
|
||||
#define LM_SYSDIV 4
|
||||
#define SYSCLK_FREQUENCY 50000000 /* 50MHz */
|
||||
|
||||
/* Other RCC settings:
|
||||
|
|
@ -74,7 +74,7 @@
|
|||
* - No auto-clock gating reset
|
||||
*/
|
||||
|
||||
#define LM3S_RCC_VALUE (SYSCON_RCC_OSCSRC | SYSCON_RCC_XTAL | SYSCON_RCC_USESYSDIV | SYSCON_RCC_SYSDIV(LM3S_SYSDIV))
|
||||
#define LM_RCC_VALUE (SYSCON_RCC_OSCSRC | SYSCON_RCC_XTAL | SYSCON_RCC_USESYSDIV | SYSCON_RCC_SYSDIV(LM_SYSDIV))
|
||||
|
||||
/* RCC2 settings -- RCC2 not used. Other RCC2 settings
|
||||
*
|
||||
|
|
@ -83,7 +83,7 @@
|
|||
* - Not using RCC2
|
||||
*/
|
||||
|
||||
#define LM3S_RCC2_VALUE (SYSCON_RCC2_OSCSRC | SYSCON_RCC2_SYSDIV(LM3S_SYSDIV))
|
||||
#define LM_RCC2_VALUE (SYSCON_RCC2_OSCSRC | SYSCON_RCC2_SYSDIV(LM_SYSDIV))
|
||||
|
||||
/* LED definitions ******************************************************************/
|
||||
|
||||
|
|
@ -117,9 +117,9 @@
|
|||
* Name: lm_boardinitialize
|
||||
*
|
||||
* Description:
|
||||
* All LM3S architectures must provide the following entry point. This entry point
|
||||
* is called early in the intitialization -- after all memory has been configured
|
||||
* and mapped but before any devices have been initialized.
|
||||
* All Stellaris architectures must provide the following entry point. This entry
|
||||
* point is called early in the intitialization -- after all memory has been
|
||||
* configured and mapped but before any devices have been initialized.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
* expanded).
|
||||
*/
|
||||
|
||||
#if LM3S_NSSI == 0
|
||||
#if LM_NSSI == 0
|
||||
# undef CONFIG_SSI0_DISABLE
|
||||
# define CONFIG_SSI0_DISABLE 1
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -70,9 +70,10 @@
|
|||
* Name: lm_boardinitialize
|
||||
*
|
||||
* Description:
|
||||
* All LM3S architectures must provide the following entry point. This entry point
|
||||
* is called early in the intitialization -- after all memory has been configured
|
||||
* and mapped but before any devices have been initialized.
|
||||
* All Stellaris architectures must provide the following entry point. This entry
|
||||
* point is called early in the intitialization -- after all memory has been
|
||||
* configured and mapped but before any devices have been initialized.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
void lm_boardinitialize(void)
|
||||
|
|
|
|||
|
|
@ -80,8 +80,8 @@ void lm_ethernetmac(struct ether_addr *ethaddr)
|
|||
|
||||
/* Get the current value of the user registers */
|
||||
|
||||
user0 = getreg32(LM3S_FLASH_USERREG0);
|
||||
user1 = getreg32(LM3S_FLASH_USERREG1);
|
||||
user0 = getreg32(LM_FLASH_USERREG0);
|
||||
user1 = getreg32(LM_FLASH_USERREG1);
|
||||
|
||||
nlldbg("user: %06x:%06x\n", user1 & 0x00ffffff, user0 & 0x00ffffff);
|
||||
DEBUGASSERT(user0 != 0xffffffff && user1 != 0xffffffff);
|
||||
|
|
|
|||
|
|
@ -387,7 +387,7 @@ Stellaris LM3S6965 Evaluation Kit Configuration Options
|
|||
|
||||
CONFIG_DRAM_START=0x20000000
|
||||
|
||||
CONFIG_ARCH_IRQPRIO - The LM3S6918 supports interrupt prioritization
|
||||
CONFIG_ARCH_IRQPRIO - The LM3S6965 supports interrupt prioritization
|
||||
|
||||
CONFIG_ARCH_IRQPRIO=y
|
||||
|
||||
|
|
@ -411,7 +411,7 @@ Stellaris LM3S6965 Evaluation Kit Configuration Options
|
|||
the delay actually is 100 seconds.
|
||||
|
||||
There are configurations for disabling support for interrupts GPIO ports.
|
||||
GPIOJ must be disabled because it does not exist on the LM3S6918.
|
||||
GPIOJ must be disabled because it does not exist on the LM3S6965.
|
||||
Additional interrupt support can be disabled if desired to reduce memory
|
||||
footprint.
|
||||
|
||||
|
|
@ -425,7 +425,7 @@ Stellaris LM3S6965 Evaluation Kit Configuration Options
|
|||
CONFIG_LM_DISABLE_GPIOH_IRQS=n
|
||||
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||
|
||||
LM3S6818 specific device driver settings
|
||||
LM3S6965 specific device driver settings
|
||||
|
||||
CONFIG_UARTn_SERIAL_CONSOLE - selects the UARTn for the
|
||||
console and ttys0 (default is the UART0).
|
||||
|
|
@ -449,7 +449,7 @@ Stellaris LM3S6965 Evaluation Kit Configuration Options
|
|||
Rx FIFO overrun errors. Default: half of the Tx FIFO size (4).
|
||||
|
||||
CONFIG_LM_ETHERNET - This must be set (along with CONFIG_NET)
|
||||
to build the LM3S Ethernet driver
|
||||
to build the Stellaris Ethernet driver
|
||||
CONFIG_LM_ETHLEDS - Enable to use Ethernet LEDs on the board.
|
||||
CONFIG_LM_BOARDMAC - If the board-specific logic can provide
|
||||
a MAC address (via lm_ethernetmac()), then this should be selected.
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@
|
|||
* of (400 / 2) / 4 = 50MHz
|
||||
*/
|
||||
|
||||
#define LM3S_SYSDIV 4
|
||||
#define LM_SYSDIV 4
|
||||
#define SYSCLK_FREQUENCY 50000000 /* 50MHz */
|
||||
|
||||
/* Other RCC settings:
|
||||
|
|
@ -74,7 +74,7 @@
|
|||
* - No auto-clock gating reset
|
||||
*/
|
||||
|
||||
#define LM3S_RCC_VALUE (SYSCON_RCC_OSCSRC | SYSCON_RCC_XTAL | SYSCON_RCC_USESYSDIV | SYSCON_RCC_SYSDIV(LM3S_SYSDIV))
|
||||
#define LM_RCC_VALUE (SYSCON_RCC_OSCSRC | SYSCON_RCC_XTAL | SYSCON_RCC_USESYSDIV | SYSCON_RCC_SYSDIV(LM_SYSDIV))
|
||||
|
||||
/* RCC2 settings -- RCC2 not used. Other RCC2 settings
|
||||
*
|
||||
|
|
@ -83,7 +83,7 @@
|
|||
* - Not using RCC2
|
||||
*/
|
||||
|
||||
#define LM3S_RCC2_VALUE (SYSCON_RCC2_OSCSRC | SYSCON_RCC2_SYSDIV(LM3S_SYSDIV))
|
||||
#define LM_RCC2_VALUE (SYSCON_RCC2_OSCSRC | SYSCON_RCC2_SYSDIV(LM_SYSDIV))
|
||||
|
||||
/* LED definitions ******************************************************************/
|
||||
|
||||
|
|
@ -115,9 +115,9 @@
|
|||
* Name: lm_boardinitialize
|
||||
*
|
||||
* Description:
|
||||
* All LM3S architectures must provide the following entry point. This entry point
|
||||
* is called early in the intitialization -- after all memory has been configured
|
||||
* and mapped but before any devices have been initialized.
|
||||
* All Stellaris architectures must provide the following entry point. This entry
|
||||
* point is called early in the intitialization -- after all memory has been
|
||||
* configured and mapped but before any devices have been initialized.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y
|
|||
CONFIG_ARMV7M_OABI_TOOLCHAIN=y
|
||||
|
||||
#
|
||||
# LM3S Configuration Options
|
||||
# Stellaris Configuration Options
|
||||
#
|
||||
# CONFIG_ARCH_CHIP_LM3S6918 is not set
|
||||
# CONFIG_ARCH_CHIP_LM3S9B96 is not set
|
||||
|
|
@ -104,7 +104,7 @@ CONFIG_ARCH_CHIP_LM3S6965=y
|
|||
CONFIG_LM_DFU=y
|
||||
|
||||
#
|
||||
# Select LM3S Peripheral Support
|
||||
# Select Stellaris Peripheral Support
|
||||
#
|
||||
CONFIG_LM_UART0=y
|
||||
# CONFIG_LM_UART1 is not set
|
||||
|
|
@ -127,7 +127,7 @@ CONFIG_LM_DISABLE_GPIOH_IRQS=y
|
|||
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||
|
||||
#
|
||||
# LM3S Ethernet Configuration
|
||||
# Stellaris Ethernet Configuration
|
||||
#
|
||||
# CONFIG_LM_ETHLEDS is not set
|
||||
# CONFIG_LM_BOARDMAC is not set
|
||||
|
|
@ -141,7 +141,7 @@ CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
|||
# CONFIG_M3S_DUMPPACKET is not set
|
||||
|
||||
#
|
||||
# LM3S SSI Configuration
|
||||
# Stellaris SSI Configuration
|
||||
#
|
||||
CONFIG_SSI_POLLWAIT=y
|
||||
CONFIG_SSI_TXLIMIT=4
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y
|
|||
CONFIG_ARMV7M_OABI_TOOLCHAIN=y
|
||||
|
||||
#
|
||||
# LM3S Configuration Options
|
||||
# Stellaris Configuration Options
|
||||
#
|
||||
# CONFIG_ARCH_CHIP_LM3S6918 is not set
|
||||
# CONFIG_ARCH_CHIP_LM3S9B96 is not set
|
||||
|
|
@ -104,7 +104,7 @@ CONFIG_ARCH_CHIP_LM3S6965=y
|
|||
CONFIG_LM_DFU=y
|
||||
|
||||
#
|
||||
# Select LM3S Peripheral Support
|
||||
# Select Stellaris Peripheral Support
|
||||
#
|
||||
CONFIG_LM_UART0=y
|
||||
# CONFIG_LM_UART1 is not set
|
||||
|
|
@ -127,7 +127,7 @@ CONFIG_LM_DISABLE_GPIOH_IRQS=y
|
|||
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||
|
||||
#
|
||||
# LM3S SSI Configuration
|
||||
# Stellaris SSI Configuration
|
||||
#
|
||||
CONFIG_SSI_POLLWAIT=y
|
||||
CONFIG_SSI_TXLIMIT=4
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ CONFIG_ARMV7M_TOOLCHAIN_BUILDROOT=y
|
|||
CONFIG_ARMV7M_OABI_TOOLCHAIN=y
|
||||
|
||||
#
|
||||
# LM3S Configuration Options
|
||||
# Stellaris Configuration Options
|
||||
#
|
||||
# CONFIG_ARCH_CHIP_LM3S6918 is not set
|
||||
# CONFIG_ARCH_CHIP_LM3S9B96 is not set
|
||||
|
|
@ -104,7 +104,7 @@ CONFIG_ARCH_CHIP_LM3S6965=y
|
|||
CONFIG_LM_DFU=y
|
||||
|
||||
#
|
||||
# Select LM3S Peripheral Support
|
||||
# Select Stellaris Peripheral Support
|
||||
#
|
||||
CONFIG_LM_UART0=y
|
||||
# CONFIG_LM_UART1 is not set
|
||||
|
|
@ -127,7 +127,7 @@ CONFIG_LM_DISABLE_GPIOH_IRQS=y
|
|||
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||
|
||||
#
|
||||
# LM3S SSI Configuration
|
||||
# Stellaris SSI Configuration
|
||||
#
|
||||
CONFIG_SSI_POLLWAIT=y
|
||||
CONFIG_SSI_TXLIMIT=4
|
||||
|
|
|
|||
|
|
@ -56,12 +56,12 @@
|
|||
* expanded).
|
||||
*/
|
||||
|
||||
#if LM3S_NSSI == 0
|
||||
#if LM_NSSI == 0
|
||||
# undef CONFIG_SSI0_DISABLE
|
||||
# define CONFIG_SSI0_DISABLE 1
|
||||
# undef CONFIG_SSI1_DISABLE
|
||||
# define CONFIG_SSI1_DISABLE 1
|
||||
#elif LM3S_NSSI == 1
|
||||
#elif LM_NSSI == 1
|
||||
# undef CONFIG_SSI1_DISABLE
|
||||
# define CONFIG_SSI1_DISABLE 1
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -64,9 +64,10 @@
|
|||
* Name: lm_boardinitialize
|
||||
*
|
||||
* Description:
|
||||
* All LM3S architectures must provide the following entry point. This entry point
|
||||
* is called early in the intitialization -- after all memory has been configured
|
||||
* and mapped but before any devices have been initialized.
|
||||
* All Stellaris architectures must provide the following entry point. This entry
|
||||
* point is called early in the intitialization -- after all memory has been
|
||||
* configured and mapped but before any devices have been initialized.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
void lm_boardinitialize(void)
|
||||
|
|
|
|||
|
|
@ -80,8 +80,8 @@ void lm_ethernetmac(struct ether_addr *ethaddr)
|
|||
|
||||
/* Get the current value of the user registers */
|
||||
|
||||
user0 = getreg32(LM3S_FLASH_USERREG0);
|
||||
user1 = getreg32(LM3S_FLASH_USERREG1);
|
||||
user0 = getreg32(LM_FLASH_USERREG0);
|
||||
user1 = getreg32(LM_FLASH_USERREG1);
|
||||
|
||||
nlldbg("user: %06x:%06x\n", user1 & 0x00ffffff, user0 & 0x00ffffff);
|
||||
DEBUGASSERT(user0 != 0xffffffff && user1 != 0xffffffff);
|
||||
|
|
|
|||
|
|
@ -371,7 +371,7 @@ Stellaris LM3S8962 Evaluation Kit Configuration Options
|
|||
|
||||
CONFIG_DRAM_START=0x20000000
|
||||
|
||||
CONFIG_ARCH_IRQPRIO - The LM3S6918 supports interrupt prioritization
|
||||
CONFIG_ARCH_IRQPRIO - The LM3S8962 supports interrupt prioritization
|
||||
|
||||
CONFIG_ARCH_IRQPRIO=y
|
||||
|
||||
|
|
@ -395,7 +395,7 @@ Stellaris LM3S8962 Evaluation Kit Configuration Options
|
|||
the delay actually is 100 seconds.
|
||||
|
||||
There are configurations for disabling support for interrupts GPIO ports.
|
||||
GPIOJ must be disabled because it does not exist on the LM3S6918.
|
||||
GPIOJ must be disabled because it does not exist on the LM3S8962.
|
||||
Additional interrupt support can be disabled if desired to reduce memory
|
||||
footprint.
|
||||
|
||||
|
|
@ -409,7 +409,7 @@ Stellaris LM3S8962 Evaluation Kit Configuration Options
|
|||
CONFIG_LM_DISABLE_GPIOH_IRQS=n
|
||||
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||
|
||||
LM3S6818 specific device driver settings
|
||||
LM3S8962 specific device driver settings
|
||||
|
||||
CONFIG_UARTn_SERIAL_CONSOLE - selects the UARTn for the
|
||||
console and ttys0 (default is the UART0).
|
||||
|
|
@ -433,7 +433,7 @@ Stellaris LM3S8962 Evaluation Kit Configuration Options
|
|||
Rx FIFO overrun errors. Default: half of the Tx FIFO size (4).
|
||||
|
||||
CONFIG_LM_ETHERNET - This must be set (along with CONFIG_NET)
|
||||
to build the LM3S Ethernet driver
|
||||
to build the Stellaris Ethernet driver
|
||||
CONFIG_LM_ETHLEDS - Enable to use Ethernet LEDs on the board.
|
||||
CONFIG_LM_BOARDMAC - If the board-specific logic can provide
|
||||
a MAC address (via lm_ethernetmac()), then this should be selected.
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@
|
|||
* of (400 / 2) / 4 = 50MHz
|
||||
*/
|
||||
|
||||
#define LM3S_SYSDIV 4
|
||||
#define LM_SYSDIV 4
|
||||
#define SYSCLK_FREQUENCY 50000000 /* 50MHz */
|
||||
|
||||
/* Other RCC settings:
|
||||
|
|
@ -74,7 +74,7 @@
|
|||
* - No auto-clock gating reset
|
||||
*/
|
||||
|
||||
#define LM3S_RCC_VALUE (SYSCON_RCC_OSCSRC | SYSCON_RCC_XTAL | SYSCON_RCC_USESYSDIV | SYSCON_RCC_SYSDIV(LM3S_SYSDIV))
|
||||
#define LM_RCC_VALUE (SYSCON_RCC_OSCSRC | SYSCON_RCC_XTAL | SYSCON_RCC_USESYSDIV | SYSCON_RCC_SYSDIV(LM_SYSDIV))
|
||||
|
||||
/* RCC2 settings -- RCC2 not used. Other RCC2 settings
|
||||
*
|
||||
|
|
@ -83,7 +83,7 @@
|
|||
* - Not using RCC2
|
||||
*/
|
||||
|
||||
#define LM3S_RCC2_VALUE (SYSCON_RCC2_OSCSRC | SYSCON_RCC2_SYSDIV(LM3S_SYSDIV))
|
||||
#define LM_RCC2_VALUE (SYSCON_RCC2_OSCSRC | SYSCON_RCC2_SYSDIV(LM_SYSDIV))
|
||||
|
||||
/* LED definitions ******************************************************************/
|
||||
|
||||
|
|
@ -115,9 +115,9 @@
|
|||
* Name: lm_boardinitialize
|
||||
*
|
||||
* Description:
|
||||
* All LM3S architectures must provide the following entry point. This entry point
|
||||
* is called early in the intitialization -- after all memory has been configured
|
||||
* and mapped but before any devices have been initialized.
|
||||
* All Stellaris architectures must provide the following entry point. This entry
|
||||
* point is called early in the intitialization -- after all memory has been
|
||||
* configured and mapped but before any devices have been initialized.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
|
|
|
|||
|
|
@ -56,12 +56,12 @@
|
|||
* expanded).
|
||||
*/
|
||||
|
||||
#if LM3S_NSSI == 0
|
||||
#if LM_NSSI == 0
|
||||
# undef CONFIG_SSI0_DISABLE
|
||||
# define CONFIG_SSI0_DISABLE 1
|
||||
# undef CONFIG_SSI1_DISABLE
|
||||
# define CONFIG_SSI1_DISABLE 1
|
||||
#elif LM3S_NSSI == 1
|
||||
#elif LM_NSSI == 1
|
||||
# undef CONFIG_SSI1_DISABLE
|
||||
# define CONFIG_SSI1_DISABLE 1
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -64,9 +64,10 @@
|
|||
* Name: lm_boardinitialize
|
||||
*
|
||||
* Description:
|
||||
* All LM3S architectures must provide the following entry point. This entry point
|
||||
* is called early in the intitialization -- after all memory has been configured
|
||||
* and mapped but before any devices have been initialized.
|
||||
* All Stellaris architectures must provide the following entry point. This entry
|
||||
* point is called early in the intitialization -- after all memory has been
|
||||
* configured and mapped but before any devices have been initialized.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
void lm_boardinitialize(void)
|
||||
|
|
|
|||
|
|
@ -80,8 +80,8 @@ void lm_ethernetmac(struct ether_addr *ethaddr)
|
|||
|
||||
/* Get the current value of the user registers */
|
||||
|
||||
user0 = getreg32(LM3S_FLASH_USERREG0);
|
||||
user1 = getreg32(LM3S_FLASH_USERREG1);
|
||||
user0 = getreg32(LM_FLASH_USERREG0);
|
||||
user1 = getreg32(LM_FLASH_USERREG1);
|
||||
|
||||
nlldbg("user: %06x:%06x\n", user1 & 0x00ffffff, user0 & 0x00ffffff);
|
||||
DEBUGASSERT(user0 != 0xffffffff && user1 != 0xffffffff);
|
||||
|
|
|
|||
|
|
@ -361,7 +361,7 @@ Code Red IDE
|
|||
crt_emu_cm3_nxp (for LPC17xx parts)
|
||||
crt_emu_a7_nxp (for LPC21/22/23/24 parts)
|
||||
crt_emu_a9_nxp (for LPC31/32 and LPC29xx parts)
|
||||
crt_emu_cm3_lmi (for TI Stellaris LM3S parts
|
||||
crt_emu_cm3_lmi (for TI Stellaris parts)
|
||||
|
||||
wire is one of:
|
||||
|
||||
|
|
|
|||
|
|
@ -52,8 +52,6 @@
|
|||
#include "lpc17_internal.h"
|
||||
#include "lpcxpresso_internal.h"
|
||||
|
||||
/* The LM3S6965 Eval Kit microSD CS is on SSI0 */
|
||||
|
||||
#if defined(CONFIG_LPC17_SSP0) || defined(CONFIG_LPC17_SSP1)
|
||||
|
||||
/************************************************************************************
|
||||
|
|
@ -98,7 +96,7 @@
|
|||
* Name: lpc17_sspinitialize
|
||||
*
|
||||
* Description:
|
||||
* Called to configure SPI chip select GPIO pins for the LM3S6965 Eval Kit.
|
||||
* Called to configure SPI chip select GPIO pins for the LPCXpresso.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
|
|
|
|||
|
|
@ -52,8 +52,6 @@
|
|||
#include "lpc17_internal.h"
|
||||
#include "nucleus2g_internal.h"
|
||||
|
||||
/* The LM3S6965 Eval Kit microSD CS is on SSI0 */
|
||||
|
||||
#if defined(CONFIG_LPC17_SSP0) || defined(CONFIG_LPC17_SSP1)
|
||||
|
||||
/************************************************************************************
|
||||
|
|
@ -98,7 +96,7 @@
|
|||
* Name: lpc17_sspinitialize
|
||||
*
|
||||
* Description:
|
||||
* Called to configure SPI chip select GPIO pins for the LM3S6965 Eval Kit.
|
||||
* Called to configure SPI chip select GPIO pins for the Nucleus 2G.
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue