mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Rename LM3S files, variables, and types from lm3s_ to lm_; Rename configuration variables from CONFIG_LM3S_ to CONFIG_LM_
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5497 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+19
-19
@@ -334,15 +334,15 @@ Eagle100-specific Configuration Options
|
|||||||
Additional interrupt support can be disabled if desired to reduce memory
|
Additional interrupt support can be disabled if desired to reduce memory
|
||||||
footprint.
|
footprint.
|
||||||
|
|
||||||
CONFIG_LM3S_DISABLE_GPIOA_IRQS=n
|
CONFIG_LM_DISABLE_GPIOA_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOB_IRQS=n
|
CONFIG_LM_DISABLE_GPIOB_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOC_IRQS=n
|
CONFIG_LM_DISABLE_GPIOC_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOD_IRQS=n
|
CONFIG_LM_DISABLE_GPIOD_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOE_IRQS=n
|
CONFIG_LM_DISABLE_GPIOE_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOF_IRQS=n
|
CONFIG_LM_DISABLE_GPIOF_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOG_IRQS=n
|
CONFIG_LM_DISABLE_GPIOG_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=y
|
CONFIG_LM_DISABLE_GPIOH_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
LM3S6818 specific device driver settings
|
LM3S6818 specific device driver settings
|
||||||
|
|
||||||
@@ -367,18 +367,18 @@ Eagle100-specific Configuration Options
|
|||||||
value is large, then larger values of this setting may cause
|
value is large, then larger values of this setting may cause
|
||||||
Rx FIFO overrun errors. Default: half of the Tx FIFO size (4).
|
Rx FIFO overrun errors. Default: half of the Tx FIFO size (4).
|
||||||
|
|
||||||
CONFIG_LM3S_ETHERNET - This must be set (along with CONFIG_NET)
|
CONFIG_LM_ETHERNET - This must be set (along with CONFIG_NET)
|
||||||
to build the LM3S Ethernet driver
|
to build the LM3S Ethernet driver
|
||||||
CONFIG_LM3S_ETHLEDS - Enable to use Ethernet LEDs on the board.
|
CONFIG_LM_ETHLEDS - Enable to use Ethernet LEDs on the board.
|
||||||
CONFIG_LM3S_BOARDMAC - If the board-specific logic can provide
|
CONFIG_LM_BOARDMAC - If the board-specific logic can provide
|
||||||
a MAC address (via lm_ethernetmac()), then this should be selected.
|
a MAC address (via lm_ethernetmac()), then this should be selected.
|
||||||
CONFIG_LM3S_ETHHDUPLEX - Set to force half duplex operation
|
CONFIG_LM_ETHHDUPLEX - Set to force half duplex operation
|
||||||
CONFIG_LM3S_ETHNOAUTOCRC - Set to suppress auto-CRC generation
|
CONFIG_LM_ETHNOAUTOCRC - Set to suppress auto-CRC generation
|
||||||
CONFIG_LM3S_ETHNOPAD - Set to suppress Tx padding
|
CONFIG_LM_ETHNOPAD - Set to suppress Tx padding
|
||||||
CONFIG_LM3S_MULTICAST - Set to enable multicast frames
|
CONFIG_LM_MULTICAST - Set to enable multicast frames
|
||||||
CONFIG_LM3S_PROMISCUOUS - Set to enable promiscuous mode
|
CONFIG_LM_PROMISCUOUS - Set to enable promiscuous mode
|
||||||
CONFIG_LM3S_BADCRC - Set to enable bad CRC rejection.
|
CONFIG_LM_BADCRC - Set to enable bad CRC rejection.
|
||||||
CONFIG_LM3S_DUMPPACKET - Dump each packet received/sent to the console.
|
CONFIG_LM_DUMPPACKET - Dump each packet received/sent to the console.
|
||||||
|
|
||||||
Configurations
|
Configurations
|
||||||
^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^
|
||||||
|
|||||||
@@ -58,21 +58,21 @@ CONFIG_ARCH_CALIBRATION=n
|
|||||||
# Disable support for interrupts on GPIOJ which does not
|
# Disable support for interrupts on GPIOJ which does not
|
||||||
# exist on the LM3S6918. Additional interrupt support can be
|
# exist on the LM3S6918. Additional interrupt support can be
|
||||||
# disabled if desired to reduce memory footprint.
|
# disabled if desired to reduce memory footprint.
|
||||||
CONFIG_LM3S_DISABLE_GPIOA_IRQS=n
|
CONFIG_LM_DISABLE_GPIOA_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOB_IRQS=n
|
CONFIG_LM_DISABLE_GPIOB_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOC_IRQS=n
|
CONFIG_LM_DISABLE_GPIOC_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOD_IRQS=n
|
CONFIG_LM_DISABLE_GPIOD_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOE_IRQS=n
|
CONFIG_LM_DISABLE_GPIOE_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOF_IRQS=n
|
CONFIG_LM_DISABLE_GPIOF_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOG_IRQS=n
|
CONFIG_LM_DISABLE_GPIOG_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=n
|
CONFIG_LM_DISABLE_GPIOH_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# LM3S6918 specific serial device driver settings
|
# LM3S6918 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_UART0=y
|
CONFIG_LM_UART0=y
|
||||||
CONFIG_LM3S_UART1=n
|
CONFIG_LM_UART1=n
|
||||||
CONFIG_UART0_SERIAL_CONSOLE=y
|
CONFIG_UART0_SERIAL_CONSOLE=y
|
||||||
CONFIG_UART1_SERIAL_CONSOLE=n
|
CONFIG_UART1_SERIAL_CONSOLE=n
|
||||||
CONFIG_UART0_TXBUFSIZE=256
|
CONFIG_UART0_TXBUFSIZE=256
|
||||||
@@ -99,16 +99,16 @@ CONFIG_SSI_POLLWAIT=y
|
|||||||
#
|
#
|
||||||
# LM3S6918 specific serial device driver settings
|
# LM3S6918 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_ETHERNET=y
|
CONFIG_LM_ETHERNET=y
|
||||||
CONFIG_LM3S_ETHLEDS=n
|
CONFIG_LM_ETHLEDS=n
|
||||||
CONFIG_LM3S_BOARDMAC=y
|
CONFIG_LM_BOARDMAC=y
|
||||||
CONFIG_LM3S_ETHHDUPLEX=n
|
CONFIG_LM_ETHHDUPLEX=n
|
||||||
CONFIG_LM3S_ETHNOAUTOCRC=n
|
CONFIG_LM_ETHNOAUTOCRC=n
|
||||||
CONFIG_LM3S_ETHNOPAD=n
|
CONFIG_LM_ETHNOPAD=n
|
||||||
CONFIG_LM3S_MULTICAST=n
|
CONFIG_LM_MULTICAST=n
|
||||||
CONFIG_LM3S_PROMISCUOUS=n
|
CONFIG_LM_PROMISCUOUS=n
|
||||||
CONFIG_LM3S_BADCRC=n
|
CONFIG_LM_BADCRC=n
|
||||||
CONFIG_LM3S_DUMPPACKET=n
|
CONFIG_LM_DUMPPACKET=n
|
||||||
|
|
||||||
#
|
#
|
||||||
# General build options
|
# General build options
|
||||||
|
|||||||
@@ -112,7 +112,7 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_boardinitialize
|
* Name: lm_boardinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All LM3S architectures must provide the following entry point. This entry point
|
* All LM3S architectures must provide the following entry point. This entry point
|
||||||
@@ -121,21 +121,21 @@
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
extern void lm3s_boardinitialize(void);
|
extern void lm_boardinitialize(void);
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_ethernetmac
|
* Name: lm_ethernetmac
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* For the Ethernet Eval Kits, the MAC address will be stored in the non-volatile
|
* For the Ethernet Eval Kits, the MAC address will be stored in the non-volatile
|
||||||
* USER0 and USER1 registers. If CONFIG_LM3S_BOARDMAC is defined, this function
|
* USER0 and USER1 registers. If CONFIG_LM_BOARDMAC is defined, this function
|
||||||
* will obtain the MAC address from these registers.
|
* will obtain the MAC address from these registers.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_LM3S_BOARDMAC
|
#ifdef CONFIG_LM_BOARDMAC
|
||||||
struct ether_addr;
|
struct ether_addr;
|
||||||
extern void lm3s_ethernetmac(struct ether_addr *ethaddr);
|
extern void lm_ethernetmac(struct ether_addr *ethaddr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
|
|||||||
@@ -58,21 +58,21 @@ CONFIG_ARCH_CALIBRATION=n
|
|||||||
# Disable support for interrupts on GPIOJ which does not
|
# Disable support for interrupts on GPIOJ which does not
|
||||||
# exist on the LM3S6918. Additional interrupt support can be
|
# exist on the LM3S6918. Additional interrupt support can be
|
||||||
# disabled if desired to reduce memory footprint.
|
# disabled if desired to reduce memory footprint.
|
||||||
CONFIG_LM3S_DISABLE_GPIOA_IRQS=n
|
CONFIG_LM_DISABLE_GPIOA_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOB_IRQS=n
|
CONFIG_LM_DISABLE_GPIOB_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOC_IRQS=n
|
CONFIG_LM_DISABLE_GPIOC_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOD_IRQS=n
|
CONFIG_LM_DISABLE_GPIOD_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOE_IRQS=n
|
CONFIG_LM_DISABLE_GPIOE_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOF_IRQS=n
|
CONFIG_LM_DISABLE_GPIOF_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOG_IRQS=n
|
CONFIG_LM_DISABLE_GPIOG_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=n
|
CONFIG_LM_DISABLE_GPIOH_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# LM3S6918 specific serial device driver settings
|
# LM3S6918 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_UART0=y
|
CONFIG_LM_UART0=y
|
||||||
CONFIG_LM3S_UART1=n
|
CONFIG_LM_UART1=n
|
||||||
CONFIG_UART0_SERIAL_CONSOLE=y
|
CONFIG_UART0_SERIAL_CONSOLE=y
|
||||||
CONFIG_UART1_SERIAL_CONSOLE=n
|
CONFIG_UART1_SERIAL_CONSOLE=n
|
||||||
CONFIG_UART0_TXBUFSIZE=256
|
CONFIG_UART0_TXBUFSIZE=256
|
||||||
@@ -99,16 +99,16 @@ CONFIG_SSI_POLLWAIT=y
|
|||||||
#
|
#
|
||||||
# LM3S6918 specific serial device driver settings
|
# LM3S6918 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_ETHERNET=y
|
CONFIG_LM_ETHERNET=y
|
||||||
CONFIG_LM3S_ETHLEDS=n
|
CONFIG_LM_ETHLEDS=n
|
||||||
CONFIG_LM3S_BOARDMAC=y
|
CONFIG_LM_BOARDMAC=y
|
||||||
CONFIG_LM3S_ETHHDUPLEX=n
|
CONFIG_LM_ETHHDUPLEX=n
|
||||||
CONFIG_LM3S_ETHNOAUTOCRC=n
|
CONFIG_LM_ETHNOAUTOCRC=n
|
||||||
CONFIG_LM3S_ETHNOPAD=n
|
CONFIG_LM_ETHNOPAD=n
|
||||||
CONFIG_LM3S_MULTICAST=n
|
CONFIG_LM_MULTICAST=n
|
||||||
CONFIG_LM3S_PROMISCUOUS=n
|
CONFIG_LM_PROMISCUOUS=n
|
||||||
CONFIG_LM3S_BADCRC=n
|
CONFIG_LM_BADCRC=n
|
||||||
CONFIG_LM3S_DUMPPACKET=n
|
CONFIG_LM_DUMPPACKET=n
|
||||||
|
|
||||||
#
|
#
|
||||||
# General build options
|
# General build options
|
||||||
|
|||||||
@@ -58,21 +58,21 @@ CONFIG_ARCH_CALIBRATION=n
|
|||||||
# Disable support for interrupts on GPIOJ which does not
|
# Disable support for interrupts on GPIOJ which does not
|
||||||
# exist on the LM3S6918. Additional interrupt support can be
|
# exist on the LM3S6918. Additional interrupt support can be
|
||||||
# disabled if desired to reduce memory footprint.
|
# disabled if desired to reduce memory footprint.
|
||||||
CONFIG_LM3S_DISABLE_GPIOA_IRQS=n
|
CONFIG_LM_DISABLE_GPIOA_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOB_IRQS=n
|
CONFIG_LM_DISABLE_GPIOB_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOC_IRQS=n
|
CONFIG_LM_DISABLE_GPIOC_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOD_IRQS=n
|
CONFIG_LM_DISABLE_GPIOD_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOE_IRQS=n
|
CONFIG_LM_DISABLE_GPIOE_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOF_IRQS=n
|
CONFIG_LM_DISABLE_GPIOF_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOG_IRQS=n
|
CONFIG_LM_DISABLE_GPIOG_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=n
|
CONFIG_LM_DISABLE_GPIOH_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# LM3S6918 specific serial device driver settings
|
# LM3S6918 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_UART0=y
|
CONFIG_LM_UART0=y
|
||||||
CONFIG_LM3S_UART1=n
|
CONFIG_LM_UART1=n
|
||||||
CONFIG_UART0_SERIAL_CONSOLE=y
|
CONFIG_UART0_SERIAL_CONSOLE=y
|
||||||
CONFIG_UART1_SERIAL_CONSOLE=n
|
CONFIG_UART1_SERIAL_CONSOLE=n
|
||||||
CONFIG_UART0_TXBUFSIZE=256
|
CONFIG_UART0_TXBUFSIZE=256
|
||||||
@@ -99,16 +99,16 @@ CONFIG_SSI_POLLWAIT=y
|
|||||||
#
|
#
|
||||||
# LM3S6918 specific serial device driver settings
|
# LM3S6918 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_ETHERNET=y
|
CONFIG_LM_ETHERNET=y
|
||||||
CONFIG_LM3S_ETHLEDS=n
|
CONFIG_LM_ETHLEDS=n
|
||||||
CONFIG_LM3S_BOARDMAC=y
|
CONFIG_LM_BOARDMAC=y
|
||||||
CONFIG_LM3S_ETHHDUPLEX=n
|
CONFIG_LM_ETHHDUPLEX=n
|
||||||
CONFIG_LM3S_ETHNOAUTOCRC=n
|
CONFIG_LM_ETHNOAUTOCRC=n
|
||||||
CONFIG_LM3S_ETHNOPAD=n
|
CONFIG_LM_ETHNOPAD=n
|
||||||
CONFIG_LM3S_MULTICAST=n
|
CONFIG_LM_MULTICAST=n
|
||||||
CONFIG_LM3S_PROMISCUOUS=n
|
CONFIG_LM_PROMISCUOUS=n
|
||||||
CONFIG_LM3S_BADCRC=n
|
CONFIG_LM_BADCRC=n
|
||||||
CONFIG_LM3S_DUMPPACKET=n
|
CONFIG_LM_DUMPPACKET=n
|
||||||
|
|
||||||
#
|
#
|
||||||
# General build options
|
# General build options
|
||||||
|
|||||||
@@ -58,21 +58,21 @@ CONFIG_ARCH_CALIBRATION=n
|
|||||||
# Disable support for interrupts on GPIOJ which does not
|
# Disable support for interrupts on GPIOJ which does not
|
||||||
# exist on the LM3S6918. Additional interrupt support can be
|
# exist on the LM3S6918. Additional interrupt support can be
|
||||||
# disabled if desired to reduce memory footprint.
|
# disabled if desired to reduce memory footprint.
|
||||||
CONFIG_LM3S_DISABLE_GPIOA_IRQS=n
|
CONFIG_LM_DISABLE_GPIOA_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOB_IRQS=n
|
CONFIG_LM_DISABLE_GPIOB_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOC_IRQS=n
|
CONFIG_LM_DISABLE_GPIOC_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOD_IRQS=n
|
CONFIG_LM_DISABLE_GPIOD_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOE_IRQS=n
|
CONFIG_LM_DISABLE_GPIOE_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOF_IRQS=n
|
CONFIG_LM_DISABLE_GPIOF_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOG_IRQS=n
|
CONFIG_LM_DISABLE_GPIOG_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=n
|
CONFIG_LM_DISABLE_GPIOH_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# LM3S6918 specific serial device driver settings
|
# LM3S6918 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_UART0=y
|
CONFIG_LM_UART0=y
|
||||||
CONFIG_LM3S_UART1=n
|
CONFIG_LM_UART1=n
|
||||||
CONFIG_UART0_SERIAL_CONSOLE=y
|
CONFIG_UART0_SERIAL_CONSOLE=y
|
||||||
CONFIG_UART1_SERIAL_CONSOLE=n
|
CONFIG_UART1_SERIAL_CONSOLE=n
|
||||||
CONFIG_UART0_TXBUFSIZE=256
|
CONFIG_UART0_TXBUFSIZE=256
|
||||||
@@ -99,16 +99,16 @@ CONFIG_SSI_POLLWAIT=y
|
|||||||
#
|
#
|
||||||
# LM3S6918 specific serial device driver settings
|
# LM3S6918 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_ETHERNET=n
|
CONFIG_LM_ETHERNET=n
|
||||||
CONFIG_LM3S_ETHLEDS=n
|
CONFIG_LM_ETHLEDS=n
|
||||||
CONFIG_LM3S_BOARDMAC=y
|
CONFIG_LM_BOARDMAC=y
|
||||||
CONFIG_LM3S_ETHHDUPLEX=n
|
CONFIG_LM_ETHHDUPLEX=n
|
||||||
CONFIG_LM3S_ETHNOAUTOCRC=n
|
CONFIG_LM_ETHNOAUTOCRC=n
|
||||||
CONFIG_LM3S_ETHNOPAD=n
|
CONFIG_LM_ETHNOPAD=n
|
||||||
CONFIG_LM3S_MULTICAST=n
|
CONFIG_LM_MULTICAST=n
|
||||||
CONFIG_LM3S_PROMISCUOUS=n
|
CONFIG_LM_PROMISCUOUS=n
|
||||||
CONFIG_LM3S_BADCRC=n
|
CONFIG_LM_BADCRC=n
|
||||||
CONFIG_LM3S_DUMPPACKET=n
|
CONFIG_LM_DUMPPACKET=n
|
||||||
|
|
||||||
#
|
#
|
||||||
# General build options
|
# General build options
|
||||||
|
|||||||
@@ -58,21 +58,21 @@ CONFIG_ARCH_CALIBRATION=n
|
|||||||
# Disable support for interrupts on GPIOJ which does not
|
# Disable support for interrupts on GPIOJ which does not
|
||||||
# exist on the LM3S6918. Additional interrupt support can be
|
# exist on the LM3S6918. Additional interrupt support can be
|
||||||
# disabled if desired to reduce memory footprint.
|
# disabled if desired to reduce memory footprint.
|
||||||
CONFIG_LM3S_DISABLE_GPIOA_IRQS=n
|
CONFIG_LM_DISABLE_GPIOA_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOB_IRQS=n
|
CONFIG_LM_DISABLE_GPIOB_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOC_IRQS=n
|
CONFIG_LM_DISABLE_GPIOC_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOD_IRQS=n
|
CONFIG_LM_DISABLE_GPIOD_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOE_IRQS=n
|
CONFIG_LM_DISABLE_GPIOE_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOF_IRQS=n
|
CONFIG_LM_DISABLE_GPIOF_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOG_IRQS=n
|
CONFIG_LM_DISABLE_GPIOG_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=n
|
CONFIG_LM_DISABLE_GPIOH_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# LM3S6918 specific serial device driver settings
|
# LM3S6918 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_UART0=y
|
CONFIG_LM_UART0=y
|
||||||
CONFIG_LM3S_UART1=n
|
CONFIG_LM_UART1=n
|
||||||
CONFIG_UART0_SERIAL_CONSOLE=y
|
CONFIG_UART0_SERIAL_CONSOLE=y
|
||||||
CONFIG_UART1_SERIAL_CONSOLE=n
|
CONFIG_UART1_SERIAL_CONSOLE=n
|
||||||
CONFIG_UART0_TXBUFSIZE=256
|
CONFIG_UART0_TXBUFSIZE=256
|
||||||
@@ -99,16 +99,16 @@ CONFIG_SSI_POLLWAIT=y
|
|||||||
#
|
#
|
||||||
# LM3S6918 specific serial device driver settings
|
# LM3S6918 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_ETHERNET=n
|
CONFIG_LM_ETHERNET=n
|
||||||
CONFIG_LM3S_ETHLEDS=n
|
CONFIG_LM_ETHLEDS=n
|
||||||
CONFIG_LM3S_BOARDMAC=y
|
CONFIG_LM_BOARDMAC=y
|
||||||
CONFIG_LM3S_ETHHDUPLEX=n
|
CONFIG_LM_ETHHDUPLEX=n
|
||||||
CONFIG_LM3S_ETHNOAUTOCRC=n
|
CONFIG_LM_ETHNOAUTOCRC=n
|
||||||
CONFIG_LM3S_ETHNOPAD=n
|
CONFIG_LM_ETHNOPAD=n
|
||||||
CONFIG_LM3S_MULTICAST=n
|
CONFIG_LM_MULTICAST=n
|
||||||
CONFIG_LM3S_PROMISCUOUS=n
|
CONFIG_LM_PROMISCUOUS=n
|
||||||
CONFIG_LM3S_BADCRC=n
|
CONFIG_LM_BADCRC=n
|
||||||
CONFIG_LM3S_DUMPPACKET=n
|
CONFIG_LM_DUMPPACKET=n
|
||||||
|
|
||||||
#
|
#
|
||||||
# General build options
|
# General build options
|
||||||
|
|||||||
@@ -81,14 +81,14 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_ssiinitialize
|
* Name: lm_ssiinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Called to configure SPI chip select GPIO pins for the Eagle100 board.
|
* Called to configure SPI chip select GPIO pins for the Eagle100 board.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
extern void weak_function lm3s_ssiinitialize(void);
|
extern void weak_function lm_ssiinitialize(void);
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_ledinit
|
* Name: up_ledinit
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_boardinitialize
|
* Name: lm_boardinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All LM3S architectures must provide the following entry point. This entry point
|
* All LM3S architectures must provide the following entry point. This entry point
|
||||||
@@ -68,18 +68,18 @@
|
|||||||
* and mapped but before any devices have been initialized.
|
* and mapped but before any devices have been initialized.
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void lm3s_boardinitialize(void)
|
void lm_boardinitialize(void)
|
||||||
{
|
{
|
||||||
/* Configure SPI chip selects if 1) SSI is not disabled, and 2) the weak function
|
/* Configure SPI chip selects if 1) SSI is not disabled, and 2) the weak function
|
||||||
* lm3s_ssiinitialize() has been brought into the link.
|
* lm_ssiinitialize() has been brought into the link.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* The Eagle100 microSD CS is on SSI0 */
|
/* The Eagle100 microSD CS is on SSI0 */
|
||||||
|
|
||||||
#if !defined(CONFIG_SSI0_DISABLE) /* || !defined(CONFIG_SSI1_DISABLE) */
|
#if !defined(CONFIG_SSI0_DISABLE) /* || !defined(CONFIG_SSI1_DISABLE) */
|
||||||
if (lm3s_ssiinitialize)
|
if (lm_ssiinitialize)
|
||||||
{
|
{
|
||||||
lm3s_ssiinitialize();
|
lm_ssiinitialize();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -63,17 +63,17 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_ethernetmac
|
* Name: lm_ethernetmac
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* For the Ethernet Eval Kits, the MAC address will be stored in the non-volatile
|
* For the Ethernet Eval Kits, the MAC address will be stored in the non-volatile
|
||||||
* USER0 and USER1 registers. If CONFIG_LM3S_BOARDMAC is defined, this function
|
* USER0 and USER1 registers. If CONFIG_LM_BOARDMAC is defined, this function
|
||||||
* will obtain the MAC address from these registers.
|
* will obtain the MAC address from these registers.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_LM3S_BOARDMAC
|
#ifdef CONFIG_LM_BOARDMAC
|
||||||
void lm3s_ethernetmac(struct ether_addr *ethaddr)
|
void lm_ethernetmac(struct ether_addr *ethaddr)
|
||||||
{
|
{
|
||||||
uint32_t user0;
|
uint32_t user0;
|
||||||
uint32_t user1;
|
uint32_t user1;
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
/* Dump GPIO registers */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
#ifdef LED_DEBUG
|
||||||
# define led_dumpgpio(m) lm3s_dumpgpio(LED_GPIO, m)
|
# define led_dumpgpio(m) lm_dumpgpio(LED_GPIO, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
#endif
|
#endif
|
||||||
@@ -106,9 +106,9 @@ void up_ledinit(void)
|
|||||||
|
|
||||||
/* Configure Port E, Bit 1 as an output, initial value=OFF */
|
/* Configure Port E, Bit 1 as an output, initial value=OFF */
|
||||||
|
|
||||||
led_dumpgpio("up_ledinit before lm3s_configgpio()");
|
led_dumpgpio("up_ledinit before lm_configgpio()");
|
||||||
lm3s_configgpio(LED_GPIO);
|
lm_configgpio(LED_GPIO);
|
||||||
led_dumpgpio("up_ledinit after lm3s_configgpio()");
|
led_dumpgpio("up_ledinit after lm_configgpio()");
|
||||||
g_nest = 0;
|
g_nest = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -132,9 +132,9 @@ void up_ledon(int led)
|
|||||||
g_nest++;
|
g_nest++;
|
||||||
case LED_IRQSENABLED:
|
case LED_IRQSENABLED:
|
||||||
case LED_STACKCREATED:
|
case LED_STACKCREATED:
|
||||||
led_dumpgpio("up_ledon: before lm3s_gpiowrite()");
|
led_dumpgpio("up_ledon: before lm_gpiowrite()");
|
||||||
lm3s_gpiowrite(LED_GPIO, false);
|
lm_gpiowrite(LED_GPIO, false);
|
||||||
led_dumpgpio("up_ledon: after lm3s_gpiowrite()");
|
led_dumpgpio("up_ledon: after lm_gpiowrite()");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -160,9 +160,9 @@ void up_ledoff(int led)
|
|||||||
case LED_PANIC:
|
case LED_PANIC:
|
||||||
if (--g_nest <= 0)
|
if (--g_nest <= 0)
|
||||||
{
|
{
|
||||||
led_dumpgpio("up_ledoff: before lm3s_gpiowrite()");
|
led_dumpgpio("up_ledoff: before lm_gpiowrite()");
|
||||||
lm3s_gpiowrite(LED_GPIO, true);
|
lm_gpiowrite(LED_GPIO, true);
|
||||||
led_dumpgpio("up_ledoff: after lm3s_gpiowrite()");
|
led_dumpgpio("up_ledoff: after lm_gpiowrite()");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
/* Dump GPIO registers */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef SSI_VERBOSE
|
#ifdef SSI_VERBOSE
|
||||||
# define ssi_dumpgpio(m) lm3s_dumpgpio(SDCCS_GPIO, m)
|
# define ssi_dumpgpio(m) lm_dumpgpio(SDCCS_GPIO, m)
|
||||||
#else
|
#else
|
||||||
# define ssi_dumpgpio(m)
|
# define ssi_dumpgpio(m)
|
||||||
#endif
|
#endif
|
||||||
@@ -95,30 +95,30 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_ssiinitialize
|
* Name: lm_ssiinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Called to configure SPI chip select GPIO pins for the Eagle100 board.
|
* Called to configure SPI chip select GPIO pins for the Eagle100 board.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void weak_function lm3s_ssiinitialize(void)
|
void weak_function lm_ssiinitialize(void)
|
||||||
{
|
{
|
||||||
/* Configure the SPI-based microSD CS GPIO */
|
/* Configure the SPI-based microSD CS GPIO */
|
||||||
|
|
||||||
ssi_dumpgpio("lm3s_ssiinitialize() before lm3s_configgpio()");
|
ssi_dumpgpio("lm_ssiinitialize() before lm_configgpio()");
|
||||||
lm3s_configgpio(SDCCS_GPIO);
|
lm_configgpio(SDCCS_GPIO);
|
||||||
ssi_dumpgpio("lm3s_ssiinitialize() after lm3s_configgpio()");
|
ssi_dumpgpio("lm_ssiinitialize() after lm_configgpio()");
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* The external functions, lm3s_spiselect and lm3s_spistatus must be provided
|
* The external functions, lm_spiselect and lm_spistatus must be provided
|
||||||
* by board-specific logic. The are implementations of the select and status
|
* by board-specific logic. The are implementations of the select and status
|
||||||
* methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi.h).
|
* methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi.h).
|
||||||
* All othermethods (including up_spiinitialize()) are provided by common
|
* All othermethods (including up_spiinitialize()) are provided by common
|
||||||
* logic. To use this common SPI logic on your board:
|
* logic. To use this common SPI logic on your board:
|
||||||
*
|
*
|
||||||
* 1. Provide lm3s_spiselect() and lm3s_spistatus() functions in your
|
* 1. Provide lm_spiselect() and lm_spistatus() functions in your
|
||||||
* board-specific logic. This function will perform chip selection and
|
* board-specific logic. This function will perform chip selection and
|
||||||
* status operations using GPIOs in the way your board is configured.
|
* status operations using GPIOs in the way your board is configured.
|
||||||
* 2. Add a call to up_spiinitialize() in your low level initialization
|
* 2. Add a call to up_spiinitialize() in your low level initialization
|
||||||
@@ -130,20 +130,20 @@ void weak_function lm3s_ssiinitialize(void)
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void lm3s_spiselect(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected)
|
void lm_spiselect(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected)
|
||||||
{
|
{
|
||||||
ssidbg("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
|
ssidbg("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
|
||||||
if (devid == SPIDEV_MMCSD)
|
if (devid == SPIDEV_MMCSD)
|
||||||
{
|
{
|
||||||
/* Assert the CS pin to the card */
|
/* Assert the CS pin to the card */
|
||||||
|
|
||||||
ssi_dumpgpio("lm3s_spiselect() before lm3s_gpiowrite()");
|
ssi_dumpgpio("lm_spiselect() before lm_gpiowrite()");
|
||||||
lm3s_gpiowrite(SDCCS_GPIO, !selected);
|
lm_gpiowrite(SDCCS_GPIO, !selected);
|
||||||
ssi_dumpgpio("lm3s_spiselect() after lm3s_gpiowrite()");
|
ssi_dumpgpio("lm_spiselect() after lm_gpiowrite()");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t lm3s_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
|
uint8_t lm_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
|
||||||
{
|
{
|
||||||
ssidbg("Returning SPI_STATUS_PRESENT\n");
|
ssidbg("Returning SPI_STATUS_PRESENT\n");
|
||||||
return SPI_STATUS_PRESENT;
|
return SPI_STATUS_PRESENT;
|
||||||
|
|||||||
@@ -58,21 +58,21 @@ CONFIG_ARCH_CALIBRATION=n
|
|||||||
# Disable support for interrupts on GPIOJ which does not
|
# Disable support for interrupts on GPIOJ which does not
|
||||||
# exist on the LM3S6918. Additional interrupt support can be
|
# exist on the LM3S6918. Additional interrupt support can be
|
||||||
# disabled if desired to reduce memory footprint.
|
# disabled if desired to reduce memory footprint.
|
||||||
CONFIG_LM3S_DISABLE_GPIOA_IRQS=n
|
CONFIG_LM_DISABLE_GPIOA_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOB_IRQS=n
|
CONFIG_LM_DISABLE_GPIOB_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOC_IRQS=n
|
CONFIG_LM_DISABLE_GPIOC_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOD_IRQS=n
|
CONFIG_LM_DISABLE_GPIOD_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOE_IRQS=n
|
CONFIG_LM_DISABLE_GPIOE_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOF_IRQS=n
|
CONFIG_LM_DISABLE_GPIOF_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOG_IRQS=n
|
CONFIG_LM_DISABLE_GPIOG_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=n
|
CONFIG_LM_DISABLE_GPIOH_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# LM3S6918 specific serial device driver settings
|
# LM3S6918 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_UART0=y
|
CONFIG_LM_UART0=y
|
||||||
CONFIG_LM3S_UART1=n
|
CONFIG_LM_UART1=n
|
||||||
CONFIG_UART0_SERIAL_CONSOLE=y
|
CONFIG_UART0_SERIAL_CONSOLE=y
|
||||||
CONFIG_UART1_SERIAL_CONSOLE=n
|
CONFIG_UART1_SERIAL_CONSOLE=n
|
||||||
CONFIG_UART0_TXBUFSIZE=256
|
CONFIG_UART0_TXBUFSIZE=256
|
||||||
@@ -99,16 +99,16 @@ CONFIG_SSI_POLLWAIT=y
|
|||||||
#
|
#
|
||||||
# LM3S6918 specific serial device driver settings
|
# LM3S6918 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_ETHERNET=y
|
CONFIG_LM_ETHERNET=y
|
||||||
CONFIG_LM3S_ETHLEDS=n
|
CONFIG_LM_ETHLEDS=n
|
||||||
CONFIG_LM3S_BOARDMAC=y
|
CONFIG_LM_BOARDMAC=y
|
||||||
CONFIG_LM3S_ETHHDUPLEX=n
|
CONFIG_LM_ETHHDUPLEX=n
|
||||||
CONFIG_LM3S_ETHNOAUTOCRC=n
|
CONFIG_LM_ETHNOAUTOCRC=n
|
||||||
CONFIG_LM3S_ETHNOPAD=n
|
CONFIG_LM_ETHNOPAD=n
|
||||||
CONFIG_LM3S_MULTICAST=n
|
CONFIG_LM_MULTICAST=n
|
||||||
CONFIG_LM3S_PROMISCUOUS=n
|
CONFIG_LM_PROMISCUOUS=n
|
||||||
CONFIG_LM3S_BADCRC=n
|
CONFIG_LM_BADCRC=n
|
||||||
CONFIG_LM3S_DUMPPACKET=n
|
CONFIG_LM_DUMPPACKET=n
|
||||||
|
|
||||||
#
|
#
|
||||||
# General build options
|
# General build options
|
||||||
|
|||||||
@@ -102,12 +102,12 @@ GNU Toolchain Options
|
|||||||
the CodeSourcery or devkitARM, you simply need to add one of the following
|
the CodeSourcery or devkitARM, you simply need to add one of the following
|
||||||
configuration options to your .config (or defconfig) file:
|
configuration options to your .config (or defconfig) file:
|
||||||
|
|
||||||
CONFIG_LM3S_CODESOURCERYW=y : CodeSourcery under Windows
|
CONFIG_LM_CODESOURCERYW=y : CodeSourcery under Windows
|
||||||
CONFIG_LM3S_CODESOURCERYL=y : CodeSourcery under Linux
|
CONFIG_LM_CODESOURCERYL=y : CodeSourcery under Linux
|
||||||
CONFIG_LM3S_DEVKITARM=y : devkitARM under Windows
|
CONFIG_LM_DEVKITARM=y : devkitARM under Windows
|
||||||
CONFIG_LM3S_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
CONFIG_LM_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
||||||
|
|
||||||
If you are not using CONFIG_LM3S_BUILDROOT, then you may also have to modify
|
If you are not using CONFIG_LM_BUILDROOT, then you may also have to modify
|
||||||
the PATH in the setenv.h file if your make cannot find the tools.
|
the PATH in the setenv.h file if your make cannot find the tools.
|
||||||
|
|
||||||
NOTE: the CodeSourcery (for Windows) and devkitARM are Windows native toolchains.
|
NOTE: the CodeSourcery (for Windows) and devkitARM are Windows native toolchains.
|
||||||
@@ -352,15 +352,15 @@ Stellaris EKK-LM3S9B96 Evaluation Kit Configuration Options
|
|||||||
Additional interrupt support can be disabled if desired to reduce memory
|
Additional interrupt support can be disabled if desired to reduce memory
|
||||||
footprint.
|
footprint.
|
||||||
|
|
||||||
CONFIG_LM3S_DISABLE_GPIOA_IRQS=n
|
CONFIG_LM_DISABLE_GPIOA_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOB_IRQS=n
|
CONFIG_LM_DISABLE_GPIOB_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOC_IRQS=n
|
CONFIG_LM_DISABLE_GPIOC_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOD_IRQS=n
|
CONFIG_LM_DISABLE_GPIOD_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOE_IRQS=n
|
CONFIG_LM_DISABLE_GPIOE_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOF_IRQS=n
|
CONFIG_LM_DISABLE_GPIOF_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOG_IRQS=n
|
CONFIG_LM_DISABLE_GPIOG_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=n
|
CONFIG_LM_DISABLE_GPIOH_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
LM3S6818 specific device driver settings
|
LM3S6818 specific device driver settings
|
||||||
|
|
||||||
@@ -385,18 +385,18 @@ Stellaris EKK-LM3S9B96 Evaluation Kit Configuration Options
|
|||||||
value is large, then larger values of this setting may cause
|
value is large, then larger values of this setting may cause
|
||||||
Rx FIFO overrun errors. Default: half of the Tx FIFO size (4).
|
Rx FIFO overrun errors. Default: half of the Tx FIFO size (4).
|
||||||
|
|
||||||
CONFIG_LM3S_ETHERNET - This must be set (along with CONFIG_NET)
|
CONFIG_LM_ETHERNET - This must be set (along with CONFIG_NET)
|
||||||
to build the LM3S Ethernet driver
|
to build the LM3S Ethernet driver
|
||||||
CONFIG_LM3S_ETHLEDS - Enable to use Ethernet LEDs on the board.
|
CONFIG_LM_ETHLEDS - Enable to use Ethernet LEDs on the board.
|
||||||
CONFIG_LM3S_BOARDMAC - If the board-specific logic can provide
|
CONFIG_LM_BOARDMAC - If the board-specific logic can provide
|
||||||
a MAC address (via lm_ethernetmac()), then this should be selected.
|
a MAC address (via lm_ethernetmac()), then this should be selected.
|
||||||
CONFIG_LM3S_ETHHDUPLEX - Set to force half duplex operation
|
CONFIG_LM_ETHHDUPLEX - Set to force half duplex operation
|
||||||
CONFIG_LM3S_ETHNOAUTOCRC - Set to suppress auto-CRC generation
|
CONFIG_LM_ETHNOAUTOCRC - Set to suppress auto-CRC generation
|
||||||
CONFIG_LM3S_ETHNOPAD - Set to suppress Tx padding
|
CONFIG_LM_ETHNOPAD - Set to suppress Tx padding
|
||||||
CONFIG_LM3S_MULTICAST - Set to enable multicast frames
|
CONFIG_LM_MULTICAST - Set to enable multicast frames
|
||||||
CONFIG_LM3S_PROMISCUOUS - Set to enable promiscuous mode
|
CONFIG_LM_PROMISCUOUS - Set to enable promiscuous mode
|
||||||
CONFIG_LM3S_BADCRC - Set to enable bad CRC rejection.
|
CONFIG_LM_BADCRC - Set to enable bad CRC rejection.
|
||||||
CONFIG_LM3S_DUMPPACKET - Dump each packet received/sent to the console.
|
CONFIG_LM_DUMPPACKET - Dump each packet received/sent to the console.
|
||||||
|
|
||||||
Configurations
|
Configurations
|
||||||
^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^
|
||||||
|
|||||||
@@ -113,7 +113,7 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_boardinitialize
|
* Name: lm_boardinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All LM3S architectures must provide the following entry point. This entry point
|
* All LM3S architectures must provide the following entry point. This entry point
|
||||||
@@ -122,21 +122,21 @@
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
extern void lm3s_boardinitialize(void);
|
extern void lm_boardinitialize(void);
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_ethernetmac
|
* Name: lm_ethernetmac
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* For the Ethernet Eval Kits, the MAC address will be stored in the non-volatile
|
* For the Ethernet Eval Kits, the MAC address will be stored in the non-volatile
|
||||||
* USER0 and USER1 registers. If CONFIG_LM3S_BOARDMAC is defined, this function
|
* USER0 and USER1 registers. If CONFIG_LM_BOARDMAC is defined, this function
|
||||||
* will obtain the MAC address from these registers.
|
* will obtain the MAC address from these registers.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_LM3S_BOARDMAC
|
#ifdef CONFIG_LM_BOARDMAC
|
||||||
struct ether_addr;
|
struct ether_addr;
|
||||||
extern void lm3s_ethernetmac(struct ether_addr *ethaddr);
|
extern void lm_ethernetmac(struct ether_addr *ethaddr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
|
|||||||
@@ -57,32 +57,32 @@ CONFIG_ARCH_CALIBRATION=n
|
|||||||
#
|
#
|
||||||
# Identify toolchain and linker options
|
# Identify toolchain and linker options
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_CODESOURCERYW=n
|
CONFIG_LM_CODESOURCERYW=n
|
||||||
CONFIG_LM3S_CODESOURCERYL=n
|
CONFIG_LM_CODESOURCERYL=n
|
||||||
CONFIG_LM3S_DEVKITARM=n
|
CONFIG_LM_DEVKITARM=n
|
||||||
CONFIG_LM3S_BUILDROOT=y
|
CONFIG_LM_BUILDROOT=y
|
||||||
CONFIG_LM3S_DFU=y
|
CONFIG_LM_DFU=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Disable support for interrupts on GPIOH and GPIOJ which do not
|
# Disable support for interrupts on GPIOH and GPIOJ which do not
|
||||||
# exist on the LM3S6B96. Additional interrupt support can be
|
# exist on the LM3S6B96. Additional interrupt support can be
|
||||||
# disabled if desired to reduce memory footprint.
|
# disabled if desired to reduce memory footprint.
|
||||||
CONFIG_LM3S_DISABLE_GPIOA_IRQS=n
|
CONFIG_LM_DISABLE_GPIOA_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOB_IRQS=n
|
CONFIG_LM_DISABLE_GPIOB_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOC_IRQS=n
|
CONFIG_LM_DISABLE_GPIOC_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOD_IRQS=n
|
CONFIG_LM_DISABLE_GPIOD_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOE_IRQS=n
|
CONFIG_LM_DISABLE_GPIOE_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOF_IRQS=n
|
CONFIG_LM_DISABLE_GPIOF_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOG_IRQS=n
|
CONFIG_LM_DISABLE_GPIOG_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=y
|
CONFIG_LM_DISABLE_GPIOH_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# LM3S6B96 specific serial device driver settings
|
# LM3S6B96 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_UART0=y
|
CONFIG_LM_UART0=y
|
||||||
CONFIG_LM3S_UART1=n
|
CONFIG_LM_UART1=n
|
||||||
CONFIG_LM3S_UART2=n
|
CONFIG_LM_UART2=n
|
||||||
CONFIG_UART0_SERIAL_CONSOLE=y
|
CONFIG_UART0_SERIAL_CONSOLE=y
|
||||||
CONFIG_UART1_SERIAL_CONSOLE=n
|
CONFIG_UART1_SERIAL_CONSOLE=n
|
||||||
CONFIG_UART2_SERIAL_CONSOLE=n
|
CONFIG_UART2_SERIAL_CONSOLE=n
|
||||||
@@ -116,16 +116,16 @@ CONFIG_SSI_POLLWAIT=y
|
|||||||
#
|
#
|
||||||
# LM3S6B96 specific serial device driver settings
|
# LM3S6B96 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_ETHERNET=y
|
CONFIG_LM_ETHERNET=y
|
||||||
CONFIG_LM3S_ETHLEDS=n
|
CONFIG_LM_ETHLEDS=n
|
||||||
CONFIG_LM3S_BOARDMAC=n
|
CONFIG_LM_BOARDMAC=n
|
||||||
CONFIG_LM3S_ETHHDUPLEX=n
|
CONFIG_LM_ETHHDUPLEX=n
|
||||||
CONFIG_LM3S_ETHNOAUTOCRC=n
|
CONFIG_LM_ETHNOAUTOCRC=n
|
||||||
CONFIG_LM3S_ETHNOPAD=n
|
CONFIG_LM_ETHNOPAD=n
|
||||||
CONFIG_LM3S_MULTICAST=n
|
CONFIG_LM_MULTICAST=n
|
||||||
CONFIG_LM3S_PROMISCUOUS=n
|
CONFIG_LM_PROMISCUOUS=n
|
||||||
CONFIG_LM3S_BADCRC=n
|
CONFIG_LM_BADCRC=n
|
||||||
CONFIG_LM3S_DUMPPACKET=n
|
CONFIG_LM_DUMPPACKET=n
|
||||||
|
|
||||||
#
|
#
|
||||||
# General build options
|
# General build options
|
||||||
|
|||||||
@@ -57,32 +57,32 @@ CONFIG_ARCH_CALIBRATION=n
|
|||||||
#
|
#
|
||||||
# Identify toolchain and linker options
|
# Identify toolchain and linker options
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_CODESOURCERYW=n
|
CONFIG_LM_CODESOURCERYW=n
|
||||||
CONFIG_LM3S_CODESOURCERYL=n
|
CONFIG_LM_CODESOURCERYL=n
|
||||||
CONFIG_LM3S_DEVKITARM=n
|
CONFIG_LM_DEVKITARM=n
|
||||||
CONFIG_LM3S_BUILDROOT=y
|
CONFIG_LM_BUILDROOT=y
|
||||||
CONFIG_LM3S_DFU=y
|
CONFIG_LM_DFU=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Disable support for interrupts on GPIOH and GPIOJ which do not
|
# Disable support for interrupts on GPIOH and GPIOJ which do not
|
||||||
# exist on the LM3S6B96. Additional interrupt support can be
|
# exist on the LM3S6B96. Additional interrupt support can be
|
||||||
# disabled if desired to reduce memory footprint.
|
# disabled if desired to reduce memory footprint.
|
||||||
CONFIG_LM3S_DISABLE_GPIOA_IRQS=n
|
CONFIG_LM_DISABLE_GPIOA_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOB_IRQS=n
|
CONFIG_LM_DISABLE_GPIOB_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOC_IRQS=n
|
CONFIG_LM_DISABLE_GPIOC_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOD_IRQS=n
|
CONFIG_LM_DISABLE_GPIOD_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOE_IRQS=n
|
CONFIG_LM_DISABLE_GPIOE_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOF_IRQS=n
|
CONFIG_LM_DISABLE_GPIOF_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOG_IRQS=n
|
CONFIG_LM_DISABLE_GPIOG_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=y
|
CONFIG_LM_DISABLE_GPIOH_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# LM3S6B96 specific serial device driver settings
|
# LM3S6B96 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_UART0=y
|
CONFIG_LM_UART0=y
|
||||||
CONFIG_LM3S_UART1=n
|
CONFIG_LM_UART1=n
|
||||||
CONFIG_LM3S_UART2=n
|
CONFIG_LM_UART2=n
|
||||||
CONFIG_UART0_SERIAL_CONSOLE=y
|
CONFIG_UART0_SERIAL_CONSOLE=y
|
||||||
CONFIG_UART1_SERIAL_CONSOLE=n
|
CONFIG_UART1_SERIAL_CONSOLE=n
|
||||||
CONFIG_UART2_SERIAL_CONSOLE=n
|
CONFIG_UART2_SERIAL_CONSOLE=n
|
||||||
@@ -116,16 +116,16 @@ CONFIG_SSI_POLLWAIT=y
|
|||||||
#
|
#
|
||||||
# LM3S6B96 specific serial device driver settings
|
# LM3S6B96 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_ETHERNET=n
|
CONFIG_LM_ETHERNET=n
|
||||||
CONFIG_LM3S_ETHLEDS=n
|
CONFIG_LM_ETHLEDS=n
|
||||||
CONFIG_LM3S_BOARDMAC=y
|
CONFIG_LM_BOARDMAC=y
|
||||||
CONFIG_LM3S_ETHHDUPLEX=n
|
CONFIG_LM_ETHHDUPLEX=n
|
||||||
CONFIG_LM3S_ETHNOAUTOCRC=n
|
CONFIG_LM_ETHNOAUTOCRC=n
|
||||||
CONFIG_LM3S_ETHNOPAD=n
|
CONFIG_LM_ETHNOPAD=n
|
||||||
CONFIG_LM3S_MULTICAST=n
|
CONFIG_LM_MULTICAST=n
|
||||||
CONFIG_LM3S_PROMISCUOUS=n
|
CONFIG_LM_PROMISCUOUS=n
|
||||||
CONFIG_LM3S_BADCRC=n
|
CONFIG_LM_BADCRC=n
|
||||||
CONFIG_LM3S_DUMPPACKET=n
|
CONFIG_LM_DUMPPACKET=n
|
||||||
|
|
||||||
#
|
#
|
||||||
# General build options
|
# General build options
|
||||||
|
|||||||
@@ -102,14 +102,14 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_ssiinitialize
|
* Name: lm_ssiinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Called to configure SPI chip select GPIO pins for the LM3S6965 Eval Kit.
|
* Called to configure SPI chip select GPIO pins for the LM3S6965 Eval Kit.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
extern void weak_function lm3s_ssiinitialize(void);
|
extern void weak_function lm_ssiinitialize(void);
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
#endif /* __CONFIGS_EKK_LM3S9B96_SRC_EKKLM3S9B96_INTERNAL_H */
|
#endif /* __CONFIGS_EKK_LM3S9B96_SRC_EKKLM3S9B96_INTERNAL_H */
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_boardinitialize
|
* Name: lm_boardinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All LM3S architectures must provide the following entry point. This entry point
|
* All LM3S architectures must provide the following entry point. This entry point
|
||||||
@@ -70,16 +70,16 @@
|
|||||||
* and mapped but before any devices have been initialized.
|
* and mapped but before any devices have been initialized.
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void lm3s_boardinitialize(void)
|
void lm_boardinitialize(void)
|
||||||
{
|
{
|
||||||
/* Configure chip selects if 1) SSI is not disabled, and 2) the weak function
|
/* Configure chip selects if 1) SSI is not disabled, and 2) the weak function
|
||||||
* lm3s_ssiinitialize() has been brought into the link.
|
* lm_ssiinitialize() has been brought into the link.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(CONFIG_SSI0_DISABLE) || !defined(CONFIG_SSI1_DISABLE)
|
#if !defined(CONFIG_SSI0_DISABLE) || !defined(CONFIG_SSI1_DISABLE)
|
||||||
if (lm3s_ssiinitialize)
|
if (lm_ssiinitialize)
|
||||||
{
|
{
|
||||||
lm3s_ssiinitialize();
|
lm_ssiinitialize();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -64,17 +64,17 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_ethernetmac
|
* Name: lm_ethernetmac
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* For the Ethernet Eval Kits, the MAC address will be stored in the non-volatile
|
* For the Ethernet Eval Kits, the MAC address will be stored in the non-volatile
|
||||||
* USER0 and USER1 registers. If CONFIG_LM3S_BOARDMAC is defined, this function
|
* USER0 and USER1 registers. If CONFIG_LM_BOARDMAC is defined, this function
|
||||||
* will obtain the MAC address from these registers.
|
* will obtain the MAC address from these registers.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_LM3S_BOARDMAC
|
#ifdef CONFIG_LM_BOARDMAC
|
||||||
void lm3s_ethernetmac(struct ether_addr *ethaddr)
|
void lm_ethernetmac(struct ether_addr *ethaddr)
|
||||||
{
|
{
|
||||||
uint32_t user0;
|
uint32_t user0;
|
||||||
uint32_t user1;
|
uint32_t user1;
|
||||||
|
|||||||
@@ -73,7 +73,7 @@
|
|||||||
/* Dump GPIO registers */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
#ifdef LED_DEBUG
|
||||||
# define led_dumpgpio(m) lm3s_dumpgpio(LED_GPIO, m)
|
# define led_dumpgpio(m) lm_dumpgpio(LED_GPIO, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
#endif
|
#endif
|
||||||
@@ -103,9 +103,9 @@ void up_ledinit(void)
|
|||||||
|
|
||||||
/* Configure Port D, Bit 0 as an output, initial value=OFF */
|
/* Configure Port D, Bit 0 as an output, initial value=OFF */
|
||||||
|
|
||||||
led_dumpgpio("up_ledinit before lm3s_configgpio()");
|
led_dumpgpio("up_ledinit before lm_configgpio()");
|
||||||
lm3s_configgpio(LED_GPIO);
|
lm_configgpio(LED_GPIO);
|
||||||
led_dumpgpio("up_ledinit after lm3s_configgpio()");
|
led_dumpgpio("up_ledinit after lm_configgpio()");
|
||||||
g_nest = 0;
|
g_nest = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -129,9 +129,9 @@ void up_ledon(int led)
|
|||||||
g_nest++;
|
g_nest++;
|
||||||
case LED_IRQSENABLED:
|
case LED_IRQSENABLED:
|
||||||
case LED_STACKCREATED:
|
case LED_STACKCREATED:
|
||||||
led_dumpgpio("up_ledon: before lm3s_gpiowrite()");
|
led_dumpgpio("up_ledon: before lm_gpiowrite()");
|
||||||
lm3s_gpiowrite(LED_GPIO, false);
|
lm_gpiowrite(LED_GPIO, false);
|
||||||
led_dumpgpio("up_ledon: after lm3s_gpiowrite()");
|
led_dumpgpio("up_ledon: after lm_gpiowrite()");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -157,9 +157,9 @@ void up_ledoff(int led)
|
|||||||
case LED_PANIC:
|
case LED_PANIC:
|
||||||
if (--g_nest <= 0)
|
if (--g_nest <= 0)
|
||||||
{
|
{
|
||||||
led_dumpgpio("up_ledoff: before lm3s_gpiowrite()");
|
led_dumpgpio("up_ledoff: before lm_gpiowrite()");
|
||||||
lm3s_gpiowrite(LED_GPIO, true);
|
lm_gpiowrite(LED_GPIO, true);
|
||||||
led_dumpgpio("up_ledoff: after lm3s_gpiowrite()");
|
led_dumpgpio("up_ledoff: after lm_gpiowrite()");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
|
|
||||||
#ifdef SSI_VERBOSE
|
#ifdef SSI_VERBOSE
|
||||||
#if 0
|
#if 0
|
||||||
# define ssi_dumpgpio(m) lm3s_dumpgpio(SDCCS_GPIO, m)
|
# define ssi_dumpgpio(m) lm_dumpgpio(SDCCS_GPIO, m)
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
# define ssi_dumpgpio(m)
|
# define ssi_dumpgpio(m)
|
||||||
@@ -96,31 +96,31 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_ssiinitialize
|
* Name: lm_ssiinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Called to configure chip select GPIO pins for the LM3S9B96 Eval board.
|
* Called to configure chip select GPIO pins for the LM3S9B96 Eval board.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void weak_function lm3s_ssiinitialize(void)
|
void weak_function lm_ssiinitialize(void)
|
||||||
{
|
{
|
||||||
/* Configure the CS GPIO */
|
/* Configure the CS GPIO */
|
||||||
#if 0
|
#if 0
|
||||||
ssi_dumpgpio("lm3s_ssiinitialize() Entry");
|
ssi_dumpgpio("lm_ssiinitialize() Entry");
|
||||||
ssi_dumpgpio("lm3s_ssiinitialize() Exit");
|
ssi_dumpgpio("lm_ssiinitialize() Exit");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* The external functions, lm3s_spiselect and lm3s_spistatus must be provided
|
* The external functions, lm_spiselect and lm_spistatus must be provided
|
||||||
* by board-specific logic. The are implementations of the select and status
|
* by board-specific logic. The are implementations of the select and status
|
||||||
* methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi.h).
|
* methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi.h).
|
||||||
* All othermethods (including up_spiinitialize()) are provided by common
|
* All othermethods (including up_spiinitialize()) are provided by common
|
||||||
* logic. To use this common SPI logic on your board:
|
* logic. To use this common SPI logic on your board:
|
||||||
*
|
*
|
||||||
* 1. Provide lm3s_spiselect() and lm3s_spistatus() functions in your
|
* 1. Provide lm_spiselect() and lm_spistatus() functions in your
|
||||||
* board-specific logic. This function will perform chip selection and
|
* board-specific logic. This function will perform chip selection and
|
||||||
* status operations using GPIOs in the way your board is configured.
|
* status operations using GPIOs in the way your board is configured.
|
||||||
* 2. Add a call to up_spiinitialize() in your low level initialization
|
* 2. Add a call to up_spiinitialize() in your low level initialization
|
||||||
@@ -132,28 +132,28 @@ void weak_function lm3s_ssiinitialize(void)
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void lm3s_spiselect(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected)
|
void lm_spiselect(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected)
|
||||||
{
|
{
|
||||||
ssidbg("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
|
ssidbg("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
|
||||||
ssi_dumpgpio("lm3s_spiselect() Entry");
|
ssi_dumpgpio("lm_spiselect() Entry");
|
||||||
if (devid == SPIDEV_MMCSD)
|
if (devid == SPIDEV_MMCSD)
|
||||||
{
|
{
|
||||||
/* Assert the CS pin to the card */
|
/* Assert the CS pin to the card */
|
||||||
|
|
||||||
lm3s_gpiowrite(SDCCS_GPIO, !selected);
|
lm_gpiowrite(SDCCS_GPIO, !selected);
|
||||||
}
|
}
|
||||||
#ifdef CONFIG_NX_LCDDRIVER
|
#ifdef CONFIG_NX_LCDDRIVER
|
||||||
else if (devid == SPIDEV_DISPLAY)
|
else if (devid == SPIDEV_DISPLAY)
|
||||||
{
|
{
|
||||||
/* Assert the CS pin to the display */
|
/* Assert the CS pin to the display */
|
||||||
|
|
||||||
lm3s_gpiowrite(OLEDCS_GPIO, !selected);
|
lm_gpiowrite(OLEDCS_GPIO, !selected);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
ssi_dumpgpio("lm3s_spiselect() Exit");
|
ssi_dumpgpio("lm_spiselect() Exit");
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t lm3s_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
|
uint8_t lm_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
|
||||||
{
|
{
|
||||||
ssidbg("Returning SPI_STATUS_PRESENT\n");
|
ssidbg("Returning SPI_STATUS_PRESENT\n");
|
||||||
return SPI_STATUS_PRESENT;
|
return SPI_STATUS_PRESENT;
|
||||||
|
|||||||
@@ -97,12 +97,12 @@ GNU Toolchain Options
|
|||||||
To use a specific toolchain, you simply need to add one of the following
|
To use a specific toolchain, you simply need to add one of the following
|
||||||
configuration options to your .config (or defconfig) file:
|
configuration options to your .config (or defconfig) file:
|
||||||
|
|
||||||
CONFIG_LM3S_CODESOURCERYW=y : CodeSourcery under Windows
|
CONFIG_LM_CODESOURCERYW=y : CodeSourcery under Windows
|
||||||
CONFIG_LM3S_CODESOURCERYL=y : CodeSourcery under Linux or on Mac OS X.
|
CONFIG_LM_CODESOURCERYL=y : CodeSourcery under Linux or on Mac OS X.
|
||||||
CONFIG_LM3S_DEVKITARM=y : devkitARM under Windows
|
CONFIG_LM_DEVKITARM=y : devkitARM under Windows
|
||||||
CONFIG_LM3S_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
CONFIG_LM_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
||||||
|
|
||||||
If you are not using CONFIG_LM3S_BUILDROOT, then you may also have to modify
|
If you are not using CONFIG_LM_BUILDROOT, then you may also have to modify
|
||||||
the PATH in the setenv.h file if your make cannot find the tools.
|
the PATH in the setenv.h file if your make cannot find the tools.
|
||||||
|
|
||||||
NOTE: the CodeSourcery (for Windows) and devkitARM are Windows native toolchains.
|
NOTE: the CodeSourcery (for Windows) and devkitARM are Windows native toolchains.
|
||||||
@@ -346,15 +346,15 @@ Stellaris MDL-S2E Reference Design Configuration Options
|
|||||||
Additional interrupt support can be disabled if desired to reduce memory
|
Additional interrupt support can be disabled if desired to reduce memory
|
||||||
footprint - GPIOs C-G are not pinned out on the MDL-S2E board.
|
footprint - GPIOs C-G are not pinned out on the MDL-S2E board.
|
||||||
|
|
||||||
CONFIG_LM3S_DISABLE_GPIOA_IRQS=n
|
CONFIG_LM_DISABLE_GPIOA_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOB_IRQS=n
|
CONFIG_LM_DISABLE_GPIOB_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOC_IRQS=y
|
CONFIG_LM_DISABLE_GPIOC_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOD_IRQS=y
|
CONFIG_LM_DISABLE_GPIOD_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOE_IRQS=y
|
CONFIG_LM_DISABLE_GPIOE_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOF_IRQS=y
|
CONFIG_LM_DISABLE_GPIOF_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOG_IRQS=y
|
CONFIG_LM_DISABLE_GPIOG_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=y
|
CONFIG_LM_DISABLE_GPIOH_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
LM3S6432 specific device driver settings
|
LM3S6432 specific device driver settings
|
||||||
|
|
||||||
@@ -388,18 +388,18 @@ Stellaris MDL-S2E Reference Design Configuration Options
|
|||||||
value is large, then larger values of this setting may cause
|
value is large, then larger values of this setting may cause
|
||||||
Rx FIFO overrun errors. Default: half of the Tx FIFO size (4).
|
Rx FIFO overrun errors. Default: half of the Tx FIFO size (4).
|
||||||
|
|
||||||
CONFIG_LM3S_ETHERNET - This must be set (along with CONFIG_NET)
|
CONFIG_LM_ETHERNET - This must be set (along with CONFIG_NET)
|
||||||
to build the LM3S Ethernet driver
|
to build the LM3S Ethernet driver
|
||||||
CONFIG_LM3S_ETHLEDS - Enable to use Ethernet LEDs on the board.
|
CONFIG_LM_ETHLEDS - Enable to use Ethernet LEDs on the board.
|
||||||
CONFIG_LM3S_BOARDMAC - This should be set in order to use the
|
CONFIG_LM_BOARDMAC - This should be set in order to use the
|
||||||
MAC address configured in the flash USER registers.
|
MAC address configured in the flash USER registers.
|
||||||
CONFIG_LM3S_ETHHDUPLEX - Set to force half duplex operation
|
CONFIG_LM_ETHHDUPLEX - Set to force half duplex operation
|
||||||
CONFIG_LM3S_ETHNOAUTOCRC - Set to suppress auto-CRC generation
|
CONFIG_LM_ETHNOAUTOCRC - Set to suppress auto-CRC generation
|
||||||
CONFIG_LM3S_ETHNOPAD - Set to suppress Tx padding
|
CONFIG_LM_ETHNOPAD - Set to suppress Tx padding
|
||||||
CONFIG_LM3S_MULTICAST - Set to enable multicast frames
|
CONFIG_LM_MULTICAST - Set to enable multicast frames
|
||||||
CONFIG_LM3S_PROMISCUOUS - Set to enable promiscuous mode
|
CONFIG_LM_PROMISCUOUS - Set to enable promiscuous mode
|
||||||
CONFIG_LM3S_BADCRC - Set to enable bad CRC rejection.
|
CONFIG_LM_BADCRC - Set to enable bad CRC rejection.
|
||||||
CONFIG_LM3S_DUMPPACKET - Dump each packet received/sent to the console.
|
CONFIG_LM_DUMPPACKET - Dump each packet received/sent to the console.
|
||||||
|
|
||||||
Configurations
|
Configurations
|
||||||
^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^
|
||||||
|
|||||||
@@ -114,7 +114,7 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_boardinitialize
|
* Name: lm_boardinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All LM3S architectures must provide the following entry point. This entry point
|
* All LM3S architectures must provide the following entry point. This entry point
|
||||||
@@ -123,21 +123,21 @@
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
extern void lm3s_boardinitialize(void);
|
extern void lm_boardinitialize(void);
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_ethernetmac
|
* Name: lm_ethernetmac
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* For the MDL-S2E Reference Design, the MAC address will be stored in the
|
* For the MDL-S2E Reference Design, the MAC address will be stored in the
|
||||||
* non-volatile USER0 and USER1 registers. If CONFIG_LM3S_BOARDMAC is defined,
|
* non-volatile USER0 and USER1 registers. If CONFIG_LM_BOARDMAC is defined,
|
||||||
* this function will obtain the MAC address from these registers.
|
* this function will obtain the MAC address from these registers.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_LM3S_BOARDMAC
|
#ifdef CONFIG_LM_BOARDMAC
|
||||||
struct ether_addr;
|
struct ether_addr;
|
||||||
extern void lm3s_ethernetmac(struct ether_addr *ethaddr);
|
extern void lm_ethernetmac(struct ether_addr *ethaddr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
|
|||||||
@@ -56,32 +56,32 @@ CONFIG_ARCH_CALIBRATION=n
|
|||||||
#
|
#
|
||||||
# Identify toolchain and linker options
|
# Identify toolchain and linker options
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_CODESOURCERYW=n
|
CONFIG_LM_CODESOURCERYW=n
|
||||||
CONFIG_LM3S_CODESOURCERYL=y
|
CONFIG_LM_CODESOURCERYL=y
|
||||||
CONFIG_LM3S_DEVKITARM=n
|
CONFIG_LM_DEVKITARM=n
|
||||||
CONFIG_LM3S_BUILDROOT=n
|
CONFIG_LM_BUILDROOT=n
|
||||||
|
|
||||||
#
|
#
|
||||||
# Disable support for interrupts on GPIOs which do not
|
# Disable support for interrupts on GPIOs which do not
|
||||||
# exist on the LM3S6432 or are not pinned anywhere useful
|
# exist on the LM3S6432 or are not pinned anywhere useful
|
||||||
# on the S2E.
|
# on the S2E.
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_DISABLE_GPIOA_IRQS=n
|
CONFIG_LM_DISABLE_GPIOA_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOB_IRQS=n
|
CONFIG_LM_DISABLE_GPIOB_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOC_IRQS=y
|
CONFIG_LM_DISABLE_GPIOC_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOD_IRQS=y
|
CONFIG_LM_DISABLE_GPIOD_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOE_IRQS=y
|
CONFIG_LM_DISABLE_GPIOE_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOF_IRQS=y
|
CONFIG_LM_DISABLE_GPIOF_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOG_IRQS=y
|
CONFIG_LM_DISABLE_GPIOG_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=y
|
CONFIG_LM_DISABLE_GPIOH_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# LM3S6432 specific serial device driver settings
|
# LM3S6432 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_UART0=y
|
CONFIG_LM_UART0=y
|
||||||
CONFIG_LM3S_UART1=y
|
CONFIG_LM_UART1=y
|
||||||
CONFIG_LM3S_UART2=n
|
CONFIG_LM_UART2=n
|
||||||
CONFIG_UART0_SERIAL_CONSOLE=n
|
CONFIG_UART0_SERIAL_CONSOLE=n
|
||||||
CONFIG_UART1_SERIAL_CONSOLE=y
|
CONFIG_UART1_SERIAL_CONSOLE=y
|
||||||
CONFIG_UART2_SERIAL_CONSOLE=n
|
CONFIG_UART2_SERIAL_CONSOLE=n
|
||||||
@@ -115,16 +115,16 @@ CONFIG_SSI_POLLWAIT=y
|
|||||||
#
|
#
|
||||||
# LM3S6432 specific ethernet device driver settings
|
# LM3S6432 specific ethernet device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_ETHERNET=y
|
CONFIG_LM_ETHERNET=y
|
||||||
CONFIG_LM3S_ETHLEDS=n
|
CONFIG_LM_ETHLEDS=n
|
||||||
CONFIG_LM3S_BOARDMAC=y
|
CONFIG_LM_BOARDMAC=y
|
||||||
CONFIG_LM3S_ETHHDUPLEX=n
|
CONFIG_LM_ETHHDUPLEX=n
|
||||||
CONFIG_LM3S_ETHNOAUTOCRC=n
|
CONFIG_LM_ETHNOAUTOCRC=n
|
||||||
CONFIG_LM3S_ETHNOPAD=n
|
CONFIG_LM_ETHNOPAD=n
|
||||||
CONFIG_LM3S_MULTICAST=n
|
CONFIG_LM_MULTICAST=n
|
||||||
CONFIG_LM3S_PROMISCUOUS=n
|
CONFIG_LM_PROMISCUOUS=n
|
||||||
CONFIG_LM3S_BADCRC=n
|
CONFIG_LM_BADCRC=n
|
||||||
CONFIG_LM3S_DUMPPACKET=n
|
CONFIG_LM_DUMPPACKET=n
|
||||||
|
|
||||||
#
|
#
|
||||||
# General build options
|
# General build options
|
||||||
|
|||||||
@@ -56,32 +56,32 @@ CONFIG_ARCH_CALIBRATION=n
|
|||||||
#
|
#
|
||||||
# Identify toolchain and linker options
|
# Identify toolchain and linker options
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_CODESOURCERYW=n
|
CONFIG_LM_CODESOURCERYW=n
|
||||||
CONFIG_LM3S_CODESOURCERYL=y
|
CONFIG_LM_CODESOURCERYL=y
|
||||||
CONFIG_LM3S_DEVKITARM=n
|
CONFIG_LM_DEVKITARM=n
|
||||||
CONFIG_LM3S_BUILDROOT=n
|
CONFIG_LM_BUILDROOT=n
|
||||||
|
|
||||||
#
|
#
|
||||||
# Disable support for interrupts on GPIOs which do not
|
# Disable support for interrupts on GPIOs which do not
|
||||||
# exist on the LM3S6432 or are not pinned anywhere useful
|
# exist on the LM3S6432 or are not pinned anywhere useful
|
||||||
# on the S2E.
|
# on the S2E.
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_DISABLE_GPIOA_IRQS=n
|
CONFIG_LM_DISABLE_GPIOA_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOB_IRQS=n
|
CONFIG_LM_DISABLE_GPIOB_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOC_IRQS=y
|
CONFIG_LM_DISABLE_GPIOC_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOD_IRQS=y
|
CONFIG_LM_DISABLE_GPIOD_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOE_IRQS=y
|
CONFIG_LM_DISABLE_GPIOE_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOF_IRQS=y
|
CONFIG_LM_DISABLE_GPIOF_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOG_IRQS=y
|
CONFIG_LM_DISABLE_GPIOG_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=y
|
CONFIG_LM_DISABLE_GPIOH_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# LM3S6432 specific serial device driver settings
|
# LM3S6432 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_UART0=y
|
CONFIG_LM_UART0=y
|
||||||
CONFIG_LM3S_UART1=y
|
CONFIG_LM_UART1=y
|
||||||
CONFIG_LM3S_UART2=n
|
CONFIG_LM_UART2=n
|
||||||
CONFIG_UART0_SERIAL_CONSOLE=n
|
CONFIG_UART0_SERIAL_CONSOLE=n
|
||||||
CONFIG_UART1_SERIAL_CONSOLE=y
|
CONFIG_UART1_SERIAL_CONSOLE=y
|
||||||
CONFIG_UART2_SERIAL_CONSOLE=n
|
CONFIG_UART2_SERIAL_CONSOLE=n
|
||||||
@@ -115,16 +115,16 @@ CONFIG_SSI_POLLWAIT=y
|
|||||||
#
|
#
|
||||||
# LM3S6432 specific ethernet device driver settings
|
# LM3S6432 specific ethernet device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_ETHERNET=n
|
CONFIG_LM_ETHERNET=n
|
||||||
CONFIG_LM3S_ETHLEDS=n
|
CONFIG_LM_ETHLEDS=n
|
||||||
CONFIG_LM3S_BOARDMAC=y
|
CONFIG_LM_BOARDMAC=y
|
||||||
CONFIG_LM3S_ETHHDUPLEX=n
|
CONFIG_LM_ETHHDUPLEX=n
|
||||||
CONFIG_LM3S_ETHNOAUTOCRC=n
|
CONFIG_LM_ETHNOAUTOCRC=n
|
||||||
CONFIG_LM3S_ETHNOPAD=n
|
CONFIG_LM_ETHNOPAD=n
|
||||||
CONFIG_LM3S_MULTICAST=n
|
CONFIG_LM_MULTICAST=n
|
||||||
CONFIG_LM3S_PROMISCUOUS=n
|
CONFIG_LM_PROMISCUOUS=n
|
||||||
CONFIG_LM3S_BADCRC=n
|
CONFIG_LM_BADCRC=n
|
||||||
CONFIG_LM3S_DUMPPACKET=n
|
CONFIG_LM_DUMPPACKET=n
|
||||||
|
|
||||||
#
|
#
|
||||||
# General build options
|
# General build options
|
||||||
|
|||||||
@@ -112,14 +112,14 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_ssiinitialize
|
* Name: lm_ssiinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Called to configure SPI chip select GPIO pins for the MDL-S2E.
|
* Called to configure SPI chip select GPIO pins for the MDL-S2E.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
extern void weak_function lm3s_ssiinitialize(void);
|
extern void weak_function lm_ssiinitialize(void);
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
#endif /* __CONFIGS_LM3S6432_S2E_SRC_LM3S6432S2E_INTERNAL_H */
|
#endif /* __CONFIGS_LM3S6432_S2E_SRC_LM3S6432S2E_INTERNAL_H */
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
* Definitions
|
* Definitions
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#if defined(CONFIG_LM3S_UART1) && !defined(CONFIG_SSI0_DISABLE)
|
#if defined(CONFIG_LM_UART1) && !defined(CONFIG_SSI0_DISABLE)
|
||||||
# error Only one of UART1 and SSI0 can be enabled on this board.
|
# error Only one of UART1 and SSI0 can be enabled on this board.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -67,7 +67,7 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_boardinitialize
|
* Name: lm_boardinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All LM3S architectures must provide the following entry point. This entry point
|
* All LM3S architectures must provide the following entry point. This entry point
|
||||||
@@ -75,16 +75,16 @@
|
|||||||
* and mapped but before any devices have been initialized.
|
* and mapped but before any devices have been initialized.
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void lm3s_boardinitialize(void)
|
void lm_boardinitialize(void)
|
||||||
{
|
{
|
||||||
/* Configure SPI chip selects if 1) SSI is not disabled, and 2) the weak function
|
/* Configure SPI chip selects if 1) SSI is not disabled, and 2) the weak function
|
||||||
* lm3s_ssiinitialize() has been brought into the link.
|
* lm_ssiinitialize() has been brought into the link.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(CONFIG_SSI0_DISABLE)
|
#if !defined(CONFIG_SSI0_DISABLE)
|
||||||
if (lm3s_ssiinitialize)
|
if (lm_ssiinitialize)
|
||||||
{
|
{
|
||||||
lm3s_ssiinitialize();
|
lm_ssiinitialize();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -96,8 +96,8 @@ void lm3s_boardinitialize(void)
|
|||||||
|
|
||||||
/* Configure serial transciever */
|
/* Configure serial transciever */
|
||||||
|
|
||||||
lm3s_configgpio(XCVR_INV_GPIO);
|
lm_configgpio(XCVR_INV_GPIO);
|
||||||
lm3s_configgpio(XCVR_ENA_GPIO);
|
lm_configgpio(XCVR_ENA_GPIO);
|
||||||
lm3s_configgpio(XCVR_ON_GPIO);
|
lm_configgpio(XCVR_ON_GPIO);
|
||||||
lm3s_configgpio(XCVR_OFF_GPIO);
|
lm_configgpio(XCVR_OFF_GPIO);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -63,17 +63,17 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_ethernetmac
|
* Name: lm_ethernetmac
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* For the Ethernet Eval Kits, the MAC address will be stored in the non-volatile
|
* For the Ethernet Eval Kits, the MAC address will be stored in the non-volatile
|
||||||
* USER0 and USER1 registers. If CONFIG_LM3S_BOARDMAC is defined, this function
|
* USER0 and USER1 registers. If CONFIG_LM_BOARDMAC is defined, this function
|
||||||
* will obtain the MAC address from these registers.
|
* will obtain the MAC address from these registers.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_LM3S_BOARDMAC
|
#ifdef CONFIG_LM_BOARDMAC
|
||||||
void lm3s_ethernetmac(struct ether_addr *ethaddr)
|
void lm_ethernetmac(struct ether_addr *ethaddr)
|
||||||
{
|
{
|
||||||
uint32_t user0;
|
uint32_t user0;
|
||||||
uint32_t user1;
|
uint32_t user1;
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
/* Dump GPIO registers */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
#ifdef LED_DEBUG
|
||||||
# define led_dumpgpio(m) lm3s_dumpgpio(LED_GPIO, m)
|
# define led_dumpgpio(m) lm_dumpgpio(LED_GPIO, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
#endif
|
#endif
|
||||||
@@ -102,10 +102,10 @@ void up_ledinit(void)
|
|||||||
|
|
||||||
/* Configure Port F, Bit 2 as an output, initial value=OFF */
|
/* Configure Port F, Bit 2 as an output, initial value=OFF */
|
||||||
|
|
||||||
led_dumpgpio("up_ledinit before lm3s_configgpio()");
|
led_dumpgpio("up_ledinit before lm_configgpio()");
|
||||||
lm3s_configgpio(LED0_GPIO);
|
lm_configgpio(LED0_GPIO);
|
||||||
lm3s_configgpio(LED1_GPIO);
|
lm_configgpio(LED1_GPIO);
|
||||||
led_dumpgpio("up_ledinit after lm3s_configgpio()");
|
led_dumpgpio("up_ledinit after lm_configgpio()");
|
||||||
g_nest = 0;
|
g_nest = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -129,9 +129,9 @@ void up_ledon(int led)
|
|||||||
g_nest++;
|
g_nest++;
|
||||||
case LED_IRQSENABLED:
|
case LED_IRQSENABLED:
|
||||||
case LED_STACKCREATED:
|
case LED_STACKCREATED:
|
||||||
led_dumpgpio("up_ledon: before lm3s_gpiowrite()");
|
led_dumpgpio("up_ledon: before lm_gpiowrite()");
|
||||||
lm3s_gpiowrite(LED1_GPIO, false);
|
lm_gpiowrite(LED1_GPIO, false);
|
||||||
led_dumpgpio("up_ledon: after lm3s_gpiowrite()");
|
led_dumpgpio("up_ledon: after lm_gpiowrite()");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -157,9 +157,9 @@ void up_ledoff(int led)
|
|||||||
case LED_PANIC:
|
case LED_PANIC:
|
||||||
if (--g_nest <= 0)
|
if (--g_nest <= 0)
|
||||||
{
|
{
|
||||||
led_dumpgpio("up_ledoff: before lm3s_gpiowrite()");
|
led_dumpgpio("up_ledoff: before lm_gpiowrite()");
|
||||||
lm3s_gpiowrite(LED1_GPIO, true);
|
lm_gpiowrite(LED1_GPIO, true);
|
||||||
led_dumpgpio("up_ledoff: after lm3s_gpiowrite()");
|
led_dumpgpio("up_ledoff: after lm_gpiowrite()");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,7 +79,7 @@
|
|||||||
/* Dump GPIO registers */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef SSI_VERBOSE
|
#ifdef SSI_VERBOSE
|
||||||
# define ssi_dumpgpio(m) lm3s_dumpgpio(SDCCS_GPIO, m)
|
# define ssi_dumpgpio(m) lm_dumpgpio(SDCCS_GPIO, m)
|
||||||
#else
|
#else
|
||||||
# define ssi_dumpgpio(m)
|
# define ssi_dumpgpio(m)
|
||||||
#endif
|
#endif
|
||||||
@@ -93,30 +93,30 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_ssiinitialize
|
* Name: lm_ssiinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Called to configure SPI chip select GPIO pins for the MDL-S2E.
|
* Called to configure SPI chip select GPIO pins for the MDL-S2E.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void weak_function lm3s_ssiinitialize(void)
|
void weak_function lm_ssiinitialize(void)
|
||||||
{
|
{
|
||||||
/* Configure the SPI CS GPIO */
|
/* Configure the SPI CS GPIO */
|
||||||
|
|
||||||
ssi_dumpgpio("lm3s_ssiinitialize() Entry)");
|
ssi_dumpgpio("lm_ssiinitialize() Entry)");
|
||||||
lm3s_configgpio(SSICS_GPIO);
|
lm_configgpio(SSICS_GPIO);
|
||||||
ssi_dumpgpio("lm3s_ssiinitialize() Exit");
|
ssi_dumpgpio("lm_ssiinitialize() Exit");
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* The external functions, lm3s_spiselect and lm3s_spistatus must be provided
|
* The external functions, lm_spiselect and lm_spistatus must be provided
|
||||||
* by board-specific logic. The are implementations of the select and status
|
* by board-specific logic. The are implementations of the select and status
|
||||||
* methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi.h).
|
* methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi.h).
|
||||||
* All othermethods (including up_spiinitialize()) are provided by common
|
* All othermethods (including up_spiinitialize()) are provided by common
|
||||||
* logic. To use this common SPI logic on your board:
|
* logic. To use this common SPI logic on your board:
|
||||||
*
|
*
|
||||||
* 1. Provide lm3s_spiselect() and lm3s_spistatus() functions in your
|
* 1. Provide lm_spiselect() and lm_spistatus() functions in your
|
||||||
* board-specific logic. This function will perform chip selection and
|
* board-specific logic. This function will perform chip selection and
|
||||||
* status operations using GPIOs in the way your board is configured.
|
* status operations using GPIOs in the way your board is configured.
|
||||||
* 2. Add a call to up_spiinitialize() in your low level initialization
|
* 2. Add a call to up_spiinitialize() in your low level initialization
|
||||||
@@ -128,21 +128,21 @@ void weak_function lm3s_ssiinitialize(void)
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void lm3s_spiselect(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected)
|
void lm_spiselect(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected)
|
||||||
{
|
{
|
||||||
ssidbg("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
|
ssidbg("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
|
||||||
ssi_dumpgpio("lm3s_spiselect() Entry");
|
ssi_dumpgpio("lm_spiselect() Entry");
|
||||||
|
|
||||||
if (devid == SPIDEV_MMCSD)
|
if (devid == SPIDEV_MMCSD)
|
||||||
{
|
{
|
||||||
/* Assert the CS pin to the card */
|
/* Assert the CS pin to the card */
|
||||||
|
|
||||||
lm3s_gpiowrite(SDCCS_GPIO, !selected);
|
lm_gpiowrite(SDCCS_GPIO, !selected);
|
||||||
}
|
}
|
||||||
ssi_dumpgpio("lm3s_spiselect() Exit");
|
ssi_dumpgpio("lm_spiselect() Exit");
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t lm3s_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
|
uint8_t lm_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
|
||||||
{
|
{
|
||||||
ssidbg("Returning SPI_STATUS_PRESENT\n");
|
ssidbg("Returning SPI_STATUS_PRESENT\n");
|
||||||
return SPI_STATUS_PRESENT;
|
return SPI_STATUS_PRESENT;
|
||||||
|
|||||||
@@ -126,12 +126,12 @@ GNU Toolchain Options
|
|||||||
the CodeSourcery or devkitARM, you simply need to add one of the following
|
the CodeSourcery or devkitARM, you simply need to add one of the following
|
||||||
configuration options to your .config (or defconfig) file:
|
configuration options to your .config (or defconfig) file:
|
||||||
|
|
||||||
CONFIG_LM3S_CODESOURCERYW=y : CodeSourcery under Windows
|
CONFIG_LM_CODESOURCERYW=y : CodeSourcery under Windows
|
||||||
CONFIG_LM3S_CODESOURCERYL=y : CodeSourcery under Linux
|
CONFIG_LM_CODESOURCERYL=y : CodeSourcery under Linux
|
||||||
CONFIG_LM3S_DEVKITARM=y : devkitARM under Windows
|
CONFIG_LM_DEVKITARM=y : devkitARM under Windows
|
||||||
CONFIG_LM3S_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
CONFIG_LM_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
||||||
|
|
||||||
If you are not using CONFIG_LM3S_BUILDROOT, then you may also have to modify
|
If you are not using CONFIG_LM_BUILDROOT, then you may also have to modify
|
||||||
the PATH in the setenv.h file if your make cannot find the tools.
|
the PATH in the setenv.h file if your make cannot find the tools.
|
||||||
|
|
||||||
NOTE: the CodeSourcery (for Windows) and devkitARM are Windows native toolchains.
|
NOTE: the CodeSourcery (for Windows) and devkitARM are Windows native toolchains.
|
||||||
@@ -415,15 +415,15 @@ Stellaris LM3S6965 Evaluation Kit Configuration Options
|
|||||||
Additional interrupt support can be disabled if desired to reduce memory
|
Additional interrupt support can be disabled if desired to reduce memory
|
||||||
footprint.
|
footprint.
|
||||||
|
|
||||||
CONFIG_LM3S_DISABLE_GPIOA_IRQS=n
|
CONFIG_LM_DISABLE_GPIOA_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOB_IRQS=n
|
CONFIG_LM_DISABLE_GPIOB_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOC_IRQS=n
|
CONFIG_LM_DISABLE_GPIOC_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOD_IRQS=n
|
CONFIG_LM_DISABLE_GPIOD_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOE_IRQS=n
|
CONFIG_LM_DISABLE_GPIOE_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOF_IRQS=n
|
CONFIG_LM_DISABLE_GPIOF_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOG_IRQS=n
|
CONFIG_LM_DISABLE_GPIOG_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=n
|
CONFIG_LM_DISABLE_GPIOH_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
LM3S6818 specific device driver settings
|
LM3S6818 specific device driver settings
|
||||||
|
|
||||||
@@ -448,18 +448,18 @@ Stellaris LM3S6965 Evaluation Kit Configuration Options
|
|||||||
value is large, then larger values of this setting may cause
|
value is large, then larger values of this setting may cause
|
||||||
Rx FIFO overrun errors. Default: half of the Tx FIFO size (4).
|
Rx FIFO overrun errors. Default: half of the Tx FIFO size (4).
|
||||||
|
|
||||||
CONFIG_LM3S_ETHERNET - This must be set (along with CONFIG_NET)
|
CONFIG_LM_ETHERNET - This must be set (along with CONFIG_NET)
|
||||||
to build the LM3S Ethernet driver
|
to build the LM3S Ethernet driver
|
||||||
CONFIG_LM3S_ETHLEDS - Enable to use Ethernet LEDs on the board.
|
CONFIG_LM_ETHLEDS - Enable to use Ethernet LEDs on the board.
|
||||||
CONFIG_LM3S_BOARDMAC - If the board-specific logic can provide
|
CONFIG_LM_BOARDMAC - If the board-specific logic can provide
|
||||||
a MAC address (via lm_ethernetmac()), then this should be selected.
|
a MAC address (via lm_ethernetmac()), then this should be selected.
|
||||||
CONFIG_LM3S_ETHHDUPLEX - Set to force half duplex operation
|
CONFIG_LM_ETHHDUPLEX - Set to force half duplex operation
|
||||||
CONFIG_LM3S_ETHNOAUTOCRC - Set to suppress auto-CRC generation
|
CONFIG_LM_ETHNOAUTOCRC - Set to suppress auto-CRC generation
|
||||||
CONFIG_LM3S_ETHNOPAD - Set to suppress Tx padding
|
CONFIG_LM_ETHNOPAD - Set to suppress Tx padding
|
||||||
CONFIG_LM3S_MULTICAST - Set to enable multicast frames
|
CONFIG_LM_MULTICAST - Set to enable multicast frames
|
||||||
CONFIG_LM3S_PROMISCUOUS - Set to enable promiscuous mode
|
CONFIG_LM_PROMISCUOUS - Set to enable promiscuous mode
|
||||||
CONFIG_LM3S_BADCRC - Set to enable bad CRC rejection.
|
CONFIG_LM_BADCRC - Set to enable bad CRC rejection.
|
||||||
CONFIG_LM3S_DUMPPACKET - Dump each packet received/sent to the console.
|
CONFIG_LM_DUMPPACKET - Dump each packet received/sent to the console.
|
||||||
|
|
||||||
Configurations
|
Configurations
|
||||||
^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^
|
||||||
|
|||||||
@@ -112,7 +112,7 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_boardinitialize
|
* Name: lm_boardinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All LM3S architectures must provide the following entry point. This entry point
|
* All LM3S architectures must provide the following entry point. This entry point
|
||||||
@@ -121,21 +121,21 @@
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
extern void lm3s_boardinitialize(void);
|
extern void lm_boardinitialize(void);
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_ethernetmac
|
* Name: lm_ethernetmac
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* For the Ethernet Eval Kits, the MAC address will be stored in the non-volatile
|
* For the Ethernet Eval Kits, the MAC address will be stored in the non-volatile
|
||||||
* USER0 and USER1 registers. If CONFIG_LM3S_BOARDMAC is defined, this function
|
* USER0 and USER1 registers. If CONFIG_LM_BOARDMAC is defined, this function
|
||||||
* will obtain the MAC address from these registers.
|
* will obtain the MAC address from these registers.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_LM3S_BOARDMAC
|
#ifdef CONFIG_LM_BOARDMAC
|
||||||
struct ether_addr;
|
struct ether_addr;
|
||||||
extern void lm3s_ethernetmac(struct ether_addr *ethaddr);
|
extern void lm_ethernetmac(struct ether_addr *ethaddr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
|
|||||||
@@ -100,44 +100,44 @@ CONFIG_ARMV7M_OABI_TOOLCHAIN=y
|
|||||||
# CONFIG_ARCH_CHIP_LM3S6432 is not set
|
# CONFIG_ARCH_CHIP_LM3S6432 is not set
|
||||||
CONFIG_ARCH_CHIP_LM3S6965=y
|
CONFIG_ARCH_CHIP_LM3S6965=y
|
||||||
# CONFIG_ARCH_CHIP_LM3S8962 is not set
|
# CONFIG_ARCH_CHIP_LM3S8962 is not set
|
||||||
# CONFIG_LM3S_REVA2 is not set
|
# CONFIG_LM_REVA2 is not set
|
||||||
CONFIG_LM3S_DFU=y
|
CONFIG_LM_DFU=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Select LM3S Peripheral Support
|
# Select LM3S Peripheral Support
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_UART0=y
|
CONFIG_LM_UART0=y
|
||||||
# CONFIG_LM3S_UART1 is not set
|
# CONFIG_LM_UART1 is not set
|
||||||
# CONFIG_SSI0_DISABLE is not set
|
# CONFIG_SSI0_DISABLE is not set
|
||||||
CONFIG_SSI1_DISABLE=y
|
CONFIG_SSI1_DISABLE=y
|
||||||
# CONFIG_LM3S_UART2 is not set
|
# CONFIG_LM_UART2 is not set
|
||||||
CONFIG_LM3S_ETHERNET=y
|
CONFIG_LM_ETHERNET=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Disable GPIO Interrupts
|
# Disable GPIO Interrupts
|
||||||
#
|
#
|
||||||
# CONFIG_LM3S_DISABLE_GPIOA_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOA_IRQS is not set
|
||||||
# CONFIG_LM3S_DISABLE_GPIOB_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOB_IRQS is not set
|
||||||
# CONFIG_LM3S_DISABLE_GPIOC_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOC_IRQS is not set
|
||||||
# CONFIG_LM3S_DISABLE_GPIOD_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOD_IRQS is not set
|
||||||
# CONFIG_LM3S_DISABLE_GPIOE_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOE_IRQS is not set
|
||||||
# CONFIG_LM3S_DISABLE_GPIOF_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOF_IRQS is not set
|
||||||
# CONFIG_LM3S_DISABLE_GPIOG_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOG_IRQS is not set
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=y
|
CONFIG_LM_DISABLE_GPIOH_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# LM3S Ethernet Configuration
|
# LM3S Ethernet Configuration
|
||||||
#
|
#
|
||||||
# CONFIG_LM3S_ETHLEDS is not set
|
# CONFIG_LM_ETHLEDS is not set
|
||||||
# CONFIG_LM3S_BOARDMAC is not set
|
# CONFIG_LM_BOARDMAC is not set
|
||||||
# CONFIG_LM3S_ETHHDUPLEX is not set
|
# CONFIG_LM_ETHHDUPLEX is not set
|
||||||
# CONFIG_LM3S_ETHNOAUTOCRC is not set
|
# CONFIG_LM_ETHNOAUTOCRC is not set
|
||||||
# CONFIG_LM3S_ETHNOPAD is not set
|
# CONFIG_LM_ETHNOPAD is not set
|
||||||
# CONFIG_LM3S_MULTICAST is not set
|
# CONFIG_LM_MULTICAST is not set
|
||||||
# CONFIG_LM3S_PROMISCUOUS is not set
|
# CONFIG_LM_PROMISCUOUS is not set
|
||||||
# CONFIG_LM3S_TIMESTAMP is not set
|
# CONFIG_LM_TIMESTAMP is not set
|
||||||
# CONFIG_LM3S_BADCRC is not set
|
# CONFIG_LM_BADCRC is not set
|
||||||
# CONFIG_M3S_DUMPPACKET is not set
|
# CONFIG_M3S_DUMPPACKET is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -100,31 +100,31 @@ CONFIG_ARMV7M_OABI_TOOLCHAIN=y
|
|||||||
# CONFIG_ARCH_CHIP_LM3S6432 is not set
|
# CONFIG_ARCH_CHIP_LM3S6432 is not set
|
||||||
CONFIG_ARCH_CHIP_LM3S6965=y
|
CONFIG_ARCH_CHIP_LM3S6965=y
|
||||||
# CONFIG_ARCH_CHIP_LM3S8962 is not set
|
# CONFIG_ARCH_CHIP_LM3S8962 is not set
|
||||||
# CONFIG_LM3S_REVA2 is not set
|
# CONFIG_LM_REVA2 is not set
|
||||||
CONFIG_LM3S_DFU=y
|
CONFIG_LM_DFU=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Select LM3S Peripheral Support
|
# Select LM3S Peripheral Support
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_UART0=y
|
CONFIG_LM_UART0=y
|
||||||
# CONFIG_LM3S_UART1 is not set
|
# CONFIG_LM_UART1 is not set
|
||||||
# CONFIG_SSI0_DISABLE is not set
|
# CONFIG_SSI0_DISABLE is not set
|
||||||
CONFIG_SSI1_DISABLE=y
|
CONFIG_SSI1_DISABLE=y
|
||||||
# CONFIG_LM3S_UART2 is not set
|
# CONFIG_LM_UART2 is not set
|
||||||
# CONFIG_LM3S_ETHERNET is not set
|
# CONFIG_LM_ETHERNET is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Disable GPIO Interrupts
|
# Disable GPIO Interrupts
|
||||||
#
|
#
|
||||||
# CONFIG_LM3S_DISABLE_GPIOA_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOA_IRQS is not set
|
||||||
# CONFIG_LM3S_DISABLE_GPIOB_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOB_IRQS is not set
|
||||||
# CONFIG_LM3S_DISABLE_GPIOC_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOC_IRQS is not set
|
||||||
# CONFIG_LM3S_DISABLE_GPIOD_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOD_IRQS is not set
|
||||||
# CONFIG_LM3S_DISABLE_GPIOE_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOE_IRQS is not set
|
||||||
# CONFIG_LM3S_DISABLE_GPIOF_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOF_IRQS is not set
|
||||||
# CONFIG_LM3S_DISABLE_GPIOG_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOG_IRQS is not set
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=y
|
CONFIG_LM_DISABLE_GPIOH_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# LM3S SSI Configuration
|
# LM3S SSI Configuration
|
||||||
|
|||||||
@@ -100,31 +100,31 @@ CONFIG_ARMV7M_OABI_TOOLCHAIN=y
|
|||||||
# CONFIG_ARCH_CHIP_LM3S6432 is not set
|
# CONFIG_ARCH_CHIP_LM3S6432 is not set
|
||||||
CONFIG_ARCH_CHIP_LM3S6965=y
|
CONFIG_ARCH_CHIP_LM3S6965=y
|
||||||
# CONFIG_ARCH_CHIP_LM3S8962 is not set
|
# CONFIG_ARCH_CHIP_LM3S8962 is not set
|
||||||
# CONFIG_LM3S_REVA2 is not set
|
# CONFIG_LM_REVA2 is not set
|
||||||
CONFIG_LM3S_DFU=y
|
CONFIG_LM_DFU=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Select LM3S Peripheral Support
|
# Select LM3S Peripheral Support
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_UART0=y
|
CONFIG_LM_UART0=y
|
||||||
# CONFIG_LM3S_UART1 is not set
|
# CONFIG_LM_UART1 is not set
|
||||||
# CONFIG_SSI0_DISABLE is not set
|
# CONFIG_SSI0_DISABLE is not set
|
||||||
CONFIG_SSI1_DISABLE=y
|
CONFIG_SSI1_DISABLE=y
|
||||||
# CONFIG_LM3S_UART2 is not set
|
# CONFIG_LM_UART2 is not set
|
||||||
# CONFIG_LM3S_ETHERNET is not set
|
# CONFIG_LM_ETHERNET is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Disable GPIO Interrupts
|
# Disable GPIO Interrupts
|
||||||
#
|
#
|
||||||
# CONFIG_LM3S_DISABLE_GPIOA_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOA_IRQS is not set
|
||||||
# CONFIG_LM3S_DISABLE_GPIOB_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOB_IRQS is not set
|
||||||
# CONFIG_LM3S_DISABLE_GPIOC_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOC_IRQS is not set
|
||||||
# CONFIG_LM3S_DISABLE_GPIOD_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOD_IRQS is not set
|
||||||
# CONFIG_LM3S_DISABLE_GPIOE_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOE_IRQS is not set
|
||||||
# CONFIG_LM3S_DISABLE_GPIOF_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOF_IRQS is not set
|
||||||
# CONFIG_LM3S_DISABLE_GPIOG_IRQS is not set
|
# CONFIG_LM_DISABLE_GPIOG_IRQS is not set
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=y
|
CONFIG_LM_DISABLE_GPIOH_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# LM3S SSI Configuration
|
# LM3S SSI Configuration
|
||||||
|
|||||||
@@ -123,14 +123,14 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_ssiinitialize
|
* Name: lm_ssiinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Called to configure SPI chip select GPIO pins for the LM3S6965 Eval Kit.
|
* Called to configure SPI chip select GPIO pins for the LM3S6965 Eval Kit.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
extern void weak_function lm3s_ssiinitialize(void);
|
extern void weak_function lm_ssiinitialize(void);
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
#endif /* __CONFIGS_LM3S6965_EK_SRC_LM3S6965EK_INTERNAL_H */
|
#endif /* __CONFIGS_LM3S6965_EK_SRC_LM3S6965EK_INTERNAL_H */
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_boardinitialize
|
* Name: lm_boardinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All LM3S architectures must provide the following entry point. This entry point
|
* All LM3S architectures must provide the following entry point. This entry point
|
||||||
@@ -69,18 +69,18 @@
|
|||||||
* and mapped but before any devices have been initialized.
|
* and mapped but before any devices have been initialized.
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void lm3s_boardinitialize(void)
|
void lm_boardinitialize(void)
|
||||||
{
|
{
|
||||||
/* Configure SPI chip selects if 1) SSI is not disabled, and 2) the weak function
|
/* Configure SPI chip selects if 1) SSI is not disabled, and 2) the weak function
|
||||||
* lm3s_ssiinitialize() has been brought into the link.
|
* lm_ssiinitialize() has been brought into the link.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* The LM3S6965 Eval Kit microSD CS and OLED are on SSI0 (Duh! There is no SSI1) */
|
/* The LM3S6965 Eval Kit microSD CS and OLED are on SSI0 (Duh! There is no SSI1) */
|
||||||
|
|
||||||
#if !defined(CONFIG_SSI0_DISABLE) /* || !defined(CONFIG_SSI1_DISABLE) */
|
#if !defined(CONFIG_SSI0_DISABLE) /* || !defined(CONFIG_SSI1_DISABLE) */
|
||||||
if (lm3s_ssiinitialize)
|
if (lm_ssiinitialize)
|
||||||
{
|
{
|
||||||
lm3s_ssiinitialize();
|
lm_ssiinitialize();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -63,17 +63,17 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_ethernetmac
|
* Name: lm_ethernetmac
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* For the Ethernet Eval Kits, the MAC address will be stored in the non-volatile
|
* For the Ethernet Eval Kits, the MAC address will be stored in the non-volatile
|
||||||
* USER0 and USER1 registers. If CONFIG_LM3S_BOARDMAC is defined, this function
|
* USER0 and USER1 registers. If CONFIG_LM_BOARDMAC is defined, this function
|
||||||
* will obtain the MAC address from these registers.
|
* will obtain the MAC address from these registers.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_LM3S_BOARDMAC
|
#ifdef CONFIG_LM_BOARDMAC
|
||||||
void lm3s_ethernetmac(struct ether_addr *ethaddr)
|
void lm_ethernetmac(struct ether_addr *ethaddr)
|
||||||
{
|
{
|
||||||
uint32_t user0;
|
uint32_t user0;
|
||||||
uint32_t user1;
|
uint32_t user1;
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
/* Dump GPIO registers */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef LED_DEBUG
|
#ifdef LED_DEBUG
|
||||||
# define led_dumpgpio(m) lm3s_dumpgpio(LED_GPIO, m)
|
# define led_dumpgpio(m) lm_dumpgpio(LED_GPIO, m)
|
||||||
#else
|
#else
|
||||||
# define led_dumpgpio(m)
|
# define led_dumpgpio(m)
|
||||||
#endif
|
#endif
|
||||||
@@ -102,9 +102,9 @@ void up_ledinit(void)
|
|||||||
|
|
||||||
/* Configure Port E, Bit 1 as an output, initial value=OFF */
|
/* Configure Port E, Bit 1 as an output, initial value=OFF */
|
||||||
|
|
||||||
led_dumpgpio("up_ledinit before lm3s_configgpio()");
|
led_dumpgpio("up_ledinit before lm_configgpio()");
|
||||||
lm3s_configgpio(LED_GPIO);
|
lm_configgpio(LED_GPIO);
|
||||||
led_dumpgpio("up_ledinit after lm3s_configgpio()");
|
led_dumpgpio("up_ledinit after lm_configgpio()");
|
||||||
g_nest = 0;
|
g_nest = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -128,9 +128,9 @@ void up_ledon(int led)
|
|||||||
g_nest++;
|
g_nest++;
|
||||||
case LED_IRQSENABLED:
|
case LED_IRQSENABLED:
|
||||||
case LED_STACKCREATED:
|
case LED_STACKCREATED:
|
||||||
led_dumpgpio("up_ledon: before lm3s_gpiowrite()");
|
led_dumpgpio("up_ledon: before lm_gpiowrite()");
|
||||||
lm3s_gpiowrite(LED_GPIO, false);
|
lm_gpiowrite(LED_GPIO, false);
|
||||||
led_dumpgpio("up_ledon: after lm3s_gpiowrite()");
|
led_dumpgpio("up_ledon: after lm_gpiowrite()");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -156,9 +156,9 @@ void up_ledoff(int led)
|
|||||||
case LED_PANIC:
|
case LED_PANIC:
|
||||||
if (--g_nest <= 0)
|
if (--g_nest <= 0)
|
||||||
{
|
{
|
||||||
led_dumpgpio("up_ledoff: before lm3s_gpiowrite()");
|
led_dumpgpio("up_ledoff: before lm_gpiowrite()");
|
||||||
lm3s_gpiowrite(LED_GPIO, true);
|
lm_gpiowrite(LED_GPIO, true);
|
||||||
led_dumpgpio("up_ledoff: after lm3s_gpiowrite()");
|
led_dumpgpio("up_ledoff: after lm_gpiowrite()");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,8 +72,8 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_LCD_RITDEBUG
|
#ifdef CONFIG_LCD_RITDEBUG
|
||||||
# define ritdbg(format, arg...) vdbg(format, ##arg)
|
# define ritdbg(format, arg...) vdbg(format, ##arg)
|
||||||
# define oleddc_dumpgpio(m) lm3s_dumpgpio(OLEDDC_GPIO, m)
|
# define oleddc_dumpgpio(m) lm_dumpgpio(OLEDDC_GPIO, m)
|
||||||
# define oledcs_dumpgpio(m) lm3s_dumpgpio(OLEDCS_GPIO, m)
|
# define oledcs_dumpgpio(m) lm_dumpgpio(OLEDCS_GPIO, m)
|
||||||
#else
|
#else
|
||||||
# define ritdbg(x...)
|
# define ritdbg(x...)
|
||||||
# define oleddc_dumpgpio(m)
|
# define oleddc_dumpgpio(m)
|
||||||
@@ -102,8 +102,8 @@ FAR struct lcd_dev_s *up_nxdrvinit(unsigned int devno)
|
|||||||
oledcs_dumpgpio("up_nxdrvinit: After OLEDCS setup");
|
oledcs_dumpgpio("up_nxdrvinit: After OLEDCS setup");
|
||||||
oleddc_dumpgpio("up_nxdrvinit: On entry");
|
oleddc_dumpgpio("up_nxdrvinit: On entry");
|
||||||
|
|
||||||
lm3s_configgpio(OLEDDC_GPIO); /* PC7: OLED display data/control select (D/Cn) */
|
lm_configgpio(OLEDDC_GPIO); /* PC7: OLED display data/control select (D/Cn) */
|
||||||
lm3s_configgpio(OLEDEN_GPIO); /* PC6: Enable +15V needed by OLED (EN+15V) */
|
lm_configgpio(OLEDEN_GPIO); /* PC6: Enable +15V needed by OLED (EN+15V) */
|
||||||
|
|
||||||
oleddc_dumpgpio("up_nxdrvinit: After OLEDDC/EN setup");
|
oleddc_dumpgpio("up_nxdrvinit: After OLEDDC/EN setup");
|
||||||
|
|
||||||
@@ -137,7 +137,7 @@ FAR struct lcd_dev_s *up_nxdrvinit(unsigned int devno)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Name: lm3s_spicmddata
|
* Name: lm_spicmddata
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Set or clear the SD1329 D/Cn bit to select data (true) or command
|
* Set or clear the SD1329 D/Cn bit to select data (true) or command
|
||||||
@@ -159,13 +159,13 @@ FAR struct lcd_dev_s *up_nxdrvinit(unsigned int devno)
|
|||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
int lm3s_spicmddata(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool cmd)
|
int lm_spicmddata(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool cmd)
|
||||||
{
|
{
|
||||||
if (devid == SPIDEV_DISPLAY)
|
if (devid == SPIDEV_DISPLAY)
|
||||||
{
|
{
|
||||||
/* Set GPIO to 1 for data, 0 for command */
|
/* Set GPIO to 1 for data, 0 for command */
|
||||||
|
|
||||||
lm3s_gpiowrite(OLEDDC_GPIO, !cmd);
|
lm_gpiowrite(OLEDDC_GPIO, !cmd);
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
/* Dump GPIO registers */
|
/* Dump GPIO registers */
|
||||||
|
|
||||||
#ifdef SSI_VERBOSE
|
#ifdef SSI_VERBOSE
|
||||||
# define ssi_dumpgpio(m) lm3s_dumpgpio(SDCCS_GPIO, m)
|
# define ssi_dumpgpio(m) lm_dumpgpio(SDCCS_GPIO, m)
|
||||||
#else
|
#else
|
||||||
# define ssi_dumpgpio(m)
|
# define ssi_dumpgpio(m)
|
||||||
#endif
|
#endif
|
||||||
@@ -95,33 +95,33 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_ssiinitialize
|
* Name: lm_ssiinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Called to configure SPI chip select GPIO pins for the LM3S6965 Eval Kit.
|
* Called to configure SPI chip select GPIO pins for the LM3S6965 Eval Kit.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void weak_function lm3s_ssiinitialize(void)
|
void weak_function lm_ssiinitialize(void)
|
||||||
{
|
{
|
||||||
/* Configure the SPI-based microSD CS GPIO */
|
/* Configure the SPI-based microSD CS GPIO */
|
||||||
|
|
||||||
ssi_dumpgpio("lm3s_ssiinitialize() Entry)");
|
ssi_dumpgpio("lm_ssiinitialize() Entry)");
|
||||||
lm3s_configgpio(SDCCS_GPIO);
|
lm_configgpio(SDCCS_GPIO);
|
||||||
#ifdef CONFIG_NX_LCDDRIVER
|
#ifdef CONFIG_NX_LCDDRIVER
|
||||||
lm3s_configgpio(OLEDCS_GPIO);
|
lm_configgpio(OLEDCS_GPIO);
|
||||||
#endif
|
#endif
|
||||||
ssi_dumpgpio("lm3s_ssiinitialize() Exit");
|
ssi_dumpgpio("lm_ssiinitialize() Exit");
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* The external functions, lm3s_spiselect and lm3s_spistatus must be provided
|
* The external functions, lm_spiselect and lm_spistatus must be provided
|
||||||
* by board-specific logic. The are implementations of the select and status
|
* by board-specific logic. The are implementations of the select and status
|
||||||
* methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi.h).
|
* methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi.h).
|
||||||
* All othermethods (including up_spiinitialize()) are provided by common
|
* All othermethods (including up_spiinitialize()) are provided by common
|
||||||
* logic. To use this common SPI logic on your board:
|
* logic. To use this common SPI logic on your board:
|
||||||
*
|
*
|
||||||
* 1. Provide lm3s_spiselect() and lm3s_spistatus() functions in your
|
* 1. Provide lm_spiselect() and lm_spistatus() functions in your
|
||||||
* board-specific logic. This function will perform chip selection and
|
* board-specific logic. This function will perform chip selection and
|
||||||
* status operations using GPIOs in the way your board is configured.
|
* status operations using GPIOs in the way your board is configured.
|
||||||
* 2. Add a call to up_spiinitialize() in your low level initialization
|
* 2. Add a call to up_spiinitialize() in your low level initialization
|
||||||
@@ -133,29 +133,29 @@ void weak_function lm3s_ssiinitialize(void)
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void lm3s_spiselect(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected)
|
void lm_spiselect(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool selected)
|
||||||
{
|
{
|
||||||
ssidbg("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
|
ssidbg("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
|
||||||
ssi_dumpgpio("lm3s_spiselect() Entry");
|
ssi_dumpgpio("lm_spiselect() Entry");
|
||||||
|
|
||||||
if (devid == SPIDEV_MMCSD)
|
if (devid == SPIDEV_MMCSD)
|
||||||
{
|
{
|
||||||
/* Assert the CS pin to the card */
|
/* Assert the CS pin to the card */
|
||||||
|
|
||||||
lm3s_gpiowrite(SDCCS_GPIO, !selected);
|
lm_gpiowrite(SDCCS_GPIO, !selected);
|
||||||
}
|
}
|
||||||
#ifdef CONFIG_NX_LCDDRIVER
|
#ifdef CONFIG_NX_LCDDRIVER
|
||||||
else if (devid == SPIDEV_DISPLAY)
|
else if (devid == SPIDEV_DISPLAY)
|
||||||
{
|
{
|
||||||
/* Assert the CS pin to the display */
|
/* Assert the CS pin to the display */
|
||||||
|
|
||||||
lm3s_gpiowrite(OLEDCS_GPIO, !selected);
|
lm_gpiowrite(OLEDCS_GPIO, !selected);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
ssi_dumpgpio("lm3s_spiselect() Exit");
|
ssi_dumpgpio("lm_spiselect() Exit");
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t lm3s_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
|
uint8_t lm_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
|
||||||
{
|
{
|
||||||
ssidbg("Returning SPI_STATUS_PRESENT\n");
|
ssidbg("Returning SPI_STATUS_PRESENT\n");
|
||||||
return SPI_STATUS_PRESENT;
|
return SPI_STATUS_PRESENT;
|
||||||
|
|||||||
@@ -126,12 +126,12 @@ GNU Toolchain Options
|
|||||||
the CodeSourcery or devkitARM, you simply need to add one of the following
|
the CodeSourcery or devkitARM, you simply need to add one of the following
|
||||||
configuration options to your .config (or defconfig) file:
|
configuration options to your .config (or defconfig) file:
|
||||||
|
|
||||||
CONFIG_LM3S_CODESOURCERYW=y : CodeSourcery under Windows
|
CONFIG_LM_CODESOURCERYW=y : CodeSourcery under Windows
|
||||||
CONFIG_LM3S_CODESOURCERYL=y : CodeSourcery under Linux
|
CONFIG_LM_CODESOURCERYL=y : CodeSourcery under Linux
|
||||||
CONFIG_LM3S_DEVKITARM=y : devkitARM under Windows
|
CONFIG_LM_DEVKITARM=y : devkitARM under Windows
|
||||||
CONFIG_LM3S_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
CONFIG_LM_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
||||||
|
|
||||||
If you are not using CONFIG_LM3S_BUILDROOT, then you may also have to modify
|
If you are not using CONFIG_LM_BUILDROOT, then you may also have to modify
|
||||||
the PATH in the setenv.h file if your make cannot find the tools.
|
the PATH in the setenv.h file if your make cannot find the tools.
|
||||||
|
|
||||||
NOTE: the CodeSourcery (for Windows) and devkitARM are Windows native toolchains.
|
NOTE: the CodeSourcery (for Windows) and devkitARM are Windows native toolchains.
|
||||||
@@ -399,15 +399,15 @@ Stellaris LM3S8962 Evaluation Kit Configuration Options
|
|||||||
Additional interrupt support can be disabled if desired to reduce memory
|
Additional interrupt support can be disabled if desired to reduce memory
|
||||||
footprint.
|
footprint.
|
||||||
|
|
||||||
CONFIG_LM3S_DISABLE_GPIOA_IRQS=n
|
CONFIG_LM_DISABLE_GPIOA_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOB_IRQS=n
|
CONFIG_LM_DISABLE_GPIOB_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOC_IRQS=n
|
CONFIG_LM_DISABLE_GPIOC_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOD_IRQS=n
|
CONFIG_LM_DISABLE_GPIOD_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOE_IRQS=n
|
CONFIG_LM_DISABLE_GPIOE_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOF_IRQS=n
|
CONFIG_LM_DISABLE_GPIOF_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOG_IRQS=n
|
CONFIG_LM_DISABLE_GPIOG_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=n
|
CONFIG_LM_DISABLE_GPIOH_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
LM3S6818 specific device driver settings
|
LM3S6818 specific device driver settings
|
||||||
|
|
||||||
@@ -432,18 +432,18 @@ Stellaris LM3S8962 Evaluation Kit Configuration Options
|
|||||||
value is large, then larger values of this setting may cause
|
value is large, then larger values of this setting may cause
|
||||||
Rx FIFO overrun errors. Default: half of the Tx FIFO size (4).
|
Rx FIFO overrun errors. Default: half of the Tx FIFO size (4).
|
||||||
|
|
||||||
CONFIG_LM3S_ETHERNET - This must be set (along with CONFIG_NET)
|
CONFIG_LM_ETHERNET - This must be set (along with CONFIG_NET)
|
||||||
to build the LM3S Ethernet driver
|
to build the LM3S Ethernet driver
|
||||||
CONFIG_LM3S_ETHLEDS - Enable to use Ethernet LEDs on the board.
|
CONFIG_LM_ETHLEDS - Enable to use Ethernet LEDs on the board.
|
||||||
CONFIG_LM3S_BOARDMAC - If the board-specific logic can provide
|
CONFIG_LM_BOARDMAC - If the board-specific logic can provide
|
||||||
a MAC address (via lm_ethernetmac()), then this should be selected.
|
a MAC address (via lm_ethernetmac()), then this should be selected.
|
||||||
CONFIG_LM3S_ETHHDUPLEX - Set to force half duplex operation
|
CONFIG_LM_ETHHDUPLEX - Set to force half duplex operation
|
||||||
CONFIG_LM3S_ETHNOAUTOCRC - Set to suppress auto-CRC generation
|
CONFIG_LM_ETHNOAUTOCRC - Set to suppress auto-CRC generation
|
||||||
CONFIG_LM3S_ETHNOPAD - Set to suppress Tx padding
|
CONFIG_LM_ETHNOPAD - Set to suppress Tx padding
|
||||||
CONFIG_LM3S_MULTICAST - Set to enable multicast frames
|
CONFIG_LM_MULTICAST - Set to enable multicast frames
|
||||||
CONFIG_LM3S_PROMISCUOUS - Set to enable promiscuous mode
|
CONFIG_LM_PROMISCUOUS - Set to enable promiscuous mode
|
||||||
CONFIG_LM3S_BADCRC - Set to enable bad CRC rejection.
|
CONFIG_LM_BADCRC - Set to enable bad CRC rejection.
|
||||||
CONFIG_LM3S_DUMPPACKET - Dump each packet received/sent to the console.
|
CONFIG_LM_DUMPPACKET - Dump each packet received/sent to the console.
|
||||||
|
|
||||||
Configurations
|
Configurations
|
||||||
^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^
|
||||||
|
|||||||
@@ -112,7 +112,7 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_boardinitialize
|
* Name: lm_boardinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All LM3S architectures must provide the following entry point. This entry point
|
* All LM3S architectures must provide the following entry point. This entry point
|
||||||
@@ -121,21 +121,21 @@
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
extern void lm3s_boardinitialize(void);
|
extern void lm_boardinitialize(void);
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_ethernetmac
|
* Name: lm_ethernetmac
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* For the Ethernet Eval Kits, the MAC address will be stored in the non-volatile
|
* For the Ethernet Eval Kits, the MAC address will be stored in the non-volatile
|
||||||
* USER0 and USER1 registers. If CONFIG_LM3S_BOARDMAC is defined, this function
|
* USER0 and USER1 registers. If CONFIG_LM_BOARDMAC is defined, this function
|
||||||
* will obtain the MAC address from these registers.
|
* will obtain the MAC address from these registers.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_LM3S_BOARDMAC
|
#ifdef CONFIG_LM_BOARDMAC
|
||||||
struct ether_addr;
|
struct ether_addr;
|
||||||
extern void lm3s_ethernetmac(struct ether_addr *ethaddr);
|
extern void lm_ethernetmac(struct ether_addr *ethaddr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
|
|||||||
@@ -56,32 +56,32 @@ CONFIG_ARCH_CALIBRATION=n
|
|||||||
#
|
#
|
||||||
# Identify toolchain and linker options
|
# Identify toolchain and linker options
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_CODESOURCERYW=n
|
CONFIG_LM_CODESOURCERYW=n
|
||||||
CONFIG_LM3S_CODESOURCERYL=n
|
CONFIG_LM_CODESOURCERYL=n
|
||||||
CONFIG_LM3S_DEVKITARM=n
|
CONFIG_LM_DEVKITARM=n
|
||||||
CONFIG_LM3S_BUILDROOT=y
|
CONFIG_LM_BUILDROOT=y
|
||||||
CONFIG_LM3S_DFU=y
|
CONFIG_LM_DFU=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Disable support for interrupts on GPIOH and GPIOJ which do not
|
# Disable support for interrupts on GPIOH and GPIOJ which do not
|
||||||
# exist on the LM3S6B96. Additional interrupt support can be
|
# exist on the LM3S6B96. Additional interrupt support can be
|
||||||
# disabled if desired to reduce memory footprint.
|
# disabled if desired to reduce memory footprint.
|
||||||
CONFIG_LM3S_DISABLE_GPIOA_IRQS=n
|
CONFIG_LM_DISABLE_GPIOA_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOB_IRQS=n
|
CONFIG_LM_DISABLE_GPIOB_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOC_IRQS=n
|
CONFIG_LM_DISABLE_GPIOC_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOD_IRQS=n
|
CONFIG_LM_DISABLE_GPIOD_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOE_IRQS=n
|
CONFIG_LM_DISABLE_GPIOE_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOF_IRQS=n
|
CONFIG_LM_DISABLE_GPIOF_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOG_IRQS=n
|
CONFIG_LM_DISABLE_GPIOG_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=y
|
CONFIG_LM_DISABLE_GPIOH_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# LM3S8962 specific serial device driver settings
|
# LM3S8962 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_UART0=y
|
CONFIG_LM_UART0=y
|
||||||
CONFIG_LM3S_UART1=n
|
CONFIG_LM_UART1=n
|
||||||
CONFIG_LM3S_UART2=n
|
CONFIG_LM_UART2=n
|
||||||
CONFIG_UART0_SERIAL_CONSOLE=y
|
CONFIG_UART0_SERIAL_CONSOLE=y
|
||||||
CONFIG_UART1_SERIAL_CONSOLE=n
|
CONFIG_UART1_SERIAL_CONSOLE=n
|
||||||
CONFIG_UART2_SERIAL_CONSOLE=n
|
CONFIG_UART2_SERIAL_CONSOLE=n
|
||||||
@@ -115,16 +115,16 @@ CONFIG_SSI_POLLWAIT=y
|
|||||||
#
|
#
|
||||||
# LM3S8962 specific serial device driver settings
|
# LM3S8962 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_ETHERNET=y
|
CONFIG_LM_ETHERNET=y
|
||||||
CONFIG_LM3S_ETHLEDS=n
|
CONFIG_LM_ETHLEDS=n
|
||||||
CONFIG_LM3S_BOARDMAC=n
|
CONFIG_LM_BOARDMAC=n
|
||||||
CONFIG_LM3S_ETHHDUPLEX=n
|
CONFIG_LM_ETHHDUPLEX=n
|
||||||
CONFIG_LM3S_ETHNOAUTOCRC=n
|
CONFIG_LM_ETHNOAUTOCRC=n
|
||||||
CONFIG_LM3S_ETHNOPAD=n
|
CONFIG_LM_ETHNOPAD=n
|
||||||
CONFIG_LM3S_MULTICAST=n
|
CONFIG_LM_MULTICAST=n
|
||||||
CONFIG_LM3S_PROMISCUOUS=n
|
CONFIG_LM_PROMISCUOUS=n
|
||||||
CONFIG_LM3S_BADCRC=n
|
CONFIG_LM_BADCRC=n
|
||||||
CONFIG_LM3S_DUMPPACKET=n
|
CONFIG_LM_DUMPPACKET=n
|
||||||
|
|
||||||
#
|
#
|
||||||
# General build options
|
# General build options
|
||||||
|
|||||||
@@ -56,32 +56,32 @@ CONFIG_ARCH_CALIBRATION=n
|
|||||||
#
|
#
|
||||||
# Identify toolchain and linker options
|
# Identify toolchain and linker options
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_CODESOURCERYW=n
|
CONFIG_LM_CODESOURCERYW=n
|
||||||
CONFIG_LM3S_CODESOURCERYL=n
|
CONFIG_LM_CODESOURCERYL=n
|
||||||
CONFIG_LM3S_DEVKITARM=n
|
CONFIG_LM_DEVKITARM=n
|
||||||
CONFIG_LM3S_BUILDROOT=y
|
CONFIG_LM_BUILDROOT=y
|
||||||
CONFIG_LM3S_DFU=y
|
CONFIG_LM_DFU=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Disable support for interrupts on GPIOH and GPIOJ which do not
|
# Disable support for interrupts on GPIOH and GPIOJ which do not
|
||||||
# exist on the LM3S6B96. Additional interrupt support can be
|
# exist on the LM3S6B96. Additional interrupt support can be
|
||||||
# disabled if desired to reduce memory footprint.
|
# disabled if desired to reduce memory footprint.
|
||||||
CONFIG_LM3S_DISABLE_GPIOA_IRQS=n
|
CONFIG_LM_DISABLE_GPIOA_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOB_IRQS=n
|
CONFIG_LM_DISABLE_GPIOB_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOC_IRQS=n
|
CONFIG_LM_DISABLE_GPIOC_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOD_IRQS=n
|
CONFIG_LM_DISABLE_GPIOD_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOE_IRQS=n
|
CONFIG_LM_DISABLE_GPIOE_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOF_IRQS=n
|
CONFIG_LM_DISABLE_GPIOF_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOG_IRQS=n
|
CONFIG_LM_DISABLE_GPIOG_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=y
|
CONFIG_LM_DISABLE_GPIOH_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# LM3S8962 specific serial device driver settings
|
# LM3S8962 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_UART0=y
|
CONFIG_LM_UART0=y
|
||||||
CONFIG_LM3S_UART1=n
|
CONFIG_LM_UART1=n
|
||||||
CONFIG_LM3S_UART2=n
|
CONFIG_LM_UART2=n
|
||||||
CONFIG_UART0_SERIAL_CONSOLE=y
|
CONFIG_UART0_SERIAL_CONSOLE=y
|
||||||
CONFIG_UART1_SERIAL_CONSOLE=n
|
CONFIG_UART1_SERIAL_CONSOLE=n
|
||||||
CONFIG_UART2_SERIAL_CONSOLE=n
|
CONFIG_UART2_SERIAL_CONSOLE=n
|
||||||
@@ -115,16 +115,16 @@ CONFIG_SSI_POLLWAIT=y
|
|||||||
#
|
#
|
||||||
# LM3S8962 specific serial device driver settings
|
# LM3S8962 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_ETHERNET=n
|
CONFIG_LM_ETHERNET=n
|
||||||
CONFIG_LM3S_ETHLEDS=n
|
CONFIG_LM_ETHLEDS=n
|
||||||
CONFIG_LM3S_BOARDMAC=y
|
CONFIG_LM_BOARDMAC=y
|
||||||
CONFIG_LM3S_ETHHDUPLEX=n
|
CONFIG_LM_ETHHDUPLEX=n
|
||||||
CONFIG_LM3S_ETHNOAUTOCRC=n
|
CONFIG_LM_ETHNOAUTOCRC=n
|
||||||
CONFIG_LM3S_ETHNOPAD=n
|
CONFIG_LM_ETHNOPAD=n
|
||||||
CONFIG_LM3S_MULTICAST=n
|
CONFIG_LM_MULTICAST=n
|
||||||
CONFIG_LM3S_PROMISCUOUS=n
|
CONFIG_LM_PROMISCUOUS=n
|
||||||
CONFIG_LM3S_BADCRC=n
|
CONFIG_LM_BADCRC=n
|
||||||
CONFIG_LM3S_DUMPPACKET=n
|
CONFIG_LM_DUMPPACKET=n
|
||||||
|
|
||||||
#
|
#
|
||||||
# General build options
|
# General build options
|
||||||
|
|||||||
@@ -56,32 +56,32 @@ CONFIG_ARCH_CALIBRATION=n
|
|||||||
#
|
#
|
||||||
# Identify toolchain and linker options
|
# Identify toolchain and linker options
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_CODESOURCERYW=n
|
CONFIG_LM_CODESOURCERYW=n
|
||||||
CONFIG_LM3S_CODESOURCERYL=n
|
CONFIG_LM_CODESOURCERYL=n
|
||||||
CONFIG_LM3S_DEVKITARM=n
|
CONFIG_LM_DEVKITARM=n
|
||||||
CONFIG_LM3S_BUILDROOT=y
|
CONFIG_LM_BUILDROOT=y
|
||||||
CONFIG_LM3S_DFU=y
|
CONFIG_LM_DFU=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Disable support for interrupts on GPIOH and GPIOJ which do not
|
# Disable support for interrupts on GPIOH and GPIOJ which do not
|
||||||
# exist on the LM3S6B96. Additional interrupt support can be
|
# exist on the LM3S6B96. Additional interrupt support can be
|
||||||
# disabled if desired to reduce memory footprint.
|
# disabled if desired to reduce memory footprint.
|
||||||
CONFIG_LM3S_DISABLE_GPIOA_IRQS=n
|
CONFIG_LM_DISABLE_GPIOA_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOB_IRQS=n
|
CONFIG_LM_DISABLE_GPIOB_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOC_IRQS=n
|
CONFIG_LM_DISABLE_GPIOC_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOD_IRQS=n
|
CONFIG_LM_DISABLE_GPIOD_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOE_IRQS=n
|
CONFIG_LM_DISABLE_GPIOE_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOF_IRQS=n
|
CONFIG_LM_DISABLE_GPIOF_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOG_IRQS=n
|
CONFIG_LM_DISABLE_GPIOG_IRQS=n
|
||||||
CONFIG_LM3S_DISABLE_GPIOH_IRQS=y
|
CONFIG_LM_DISABLE_GPIOH_IRQS=y
|
||||||
CONFIG_LM3S_DISABLE_GPIOJ_IRQS=y
|
CONFIG_LM_DISABLE_GPIOJ_IRQS=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# LM3S8962 specific serial device driver settings
|
# LM3S8962 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_UART0=y
|
CONFIG_LM_UART0=y
|
||||||
CONFIG_LM3S_UART1=n
|
CONFIG_LM_UART1=n
|
||||||
CONFIG_LM3S_UART2=n
|
CONFIG_LM_UART2=n
|
||||||
CONFIG_UART0_SERIAL_CONSOLE=y
|
CONFIG_UART0_SERIAL_CONSOLE=y
|
||||||
CONFIG_UART1_SERIAL_CONSOLE=n
|
CONFIG_UART1_SERIAL_CONSOLE=n
|
||||||
CONFIG_UART2_SERIAL_CONSOLE=n
|
CONFIG_UART2_SERIAL_CONSOLE=n
|
||||||
@@ -115,16 +115,16 @@ CONFIG_SSI_POLLWAIT=y
|
|||||||
#
|
#
|
||||||
# LM3S8962 specific serial device driver settings
|
# LM3S8962 specific serial device driver settings
|
||||||
#
|
#
|
||||||
CONFIG_LM3S_ETHERNET=n
|
CONFIG_LM_ETHERNET=n
|
||||||
CONFIG_LM3S_ETHLEDS=n
|
CONFIG_LM_ETHLEDS=n
|
||||||
CONFIG_LM3S_BOARDMAC=y
|
CONFIG_LM_BOARDMAC=y
|
||||||
CONFIG_LM3S_ETHHDUPLEX=n
|
CONFIG_LM_ETHHDUPLEX=n
|
||||||
CONFIG_LM3S_ETHNOAUTOCRC=n
|
CONFIG_LM_ETHNOAUTOCRC=n
|
||||||
CONFIG_LM3S_ETHNOPAD=n
|
CONFIG_LM_ETHNOPAD=n
|
||||||
CONFIG_LM3S_MULTICAST=n
|
CONFIG_LM_MULTICAST=n
|
||||||
CONFIG_LM3S_PROMISCUOUS=n
|
CONFIG_LM_PROMISCUOUS=n
|
||||||
CONFIG_LM3S_BADCRC=n
|
CONFIG_LM_BADCRC=n
|
||||||
CONFIG_LM3S_DUMPPACKET=n
|
CONFIG_LM_DUMPPACKET=n
|
||||||
|
|
||||||
#
|
#
|
||||||
# General build options
|
# General build options
|
||||||
|
|||||||
@@ -123,14 +123,14 @@
|
|||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_ssiinitialize
|
* Name: lm_ssiinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Called to configure SPI chip select GPIO pins for the LM3S8962 Eval Kit.
|
* Called to configure SPI chip select GPIO pins for the LM3S8962 Eval Kit.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
extern void weak_function lm3s_ssiinitialize(void);
|
extern void weak_function lm_ssiinitialize(void);
|
||||||
|
|
||||||
#endif /* __ASSEMBLY__ */
|
#endif /* __ASSEMBLY__ */
|
||||||
#endif /* __CONFIGS_LM3S8962_EK_SRC_LM3S8962EK_INTERNAL_H */
|
#endif /* __CONFIGS_LM3S8962_EK_SRC_LM3S8962EK_INTERNAL_H */
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_boardinitialize
|
* Name: lm_boardinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* All LM3S architectures must provide the following entry point. This entry point
|
* All LM3S architectures must provide the following entry point. This entry point
|
||||||
@@ -69,18 +69,18 @@
|
|||||||
* and mapped but before any devices have been initialized.
|
* and mapped but before any devices have been initialized.
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
void lm3s_boardinitialize(void)
|
void lm_boardinitialize(void)
|
||||||
{
|
{
|
||||||
/* Configure SPI chip selects if 1) SSI is not disabled, and 2) the weak function
|
/* Configure SPI chip selects if 1) SSI is not disabled, and 2) the weak function
|
||||||
* lm3s_ssiinitialize() has been brought into the link.
|
* lm_ssiinitialize() has been brought into the link.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* The LM3S8962 Eval Kit microSD CS and OLED are on SSI0 (Duh! There is no SSI1) */
|
/* The LM3S8962 Eval Kit microSD CS and OLED are on SSI0 (Duh! There is no SSI1) */
|
||||||
|
|
||||||
#if !defined(CONFIG_SSI0_DISABLE) /* || !defined(CONFIG_SSI1_DISABLE) */
|
#if !defined(CONFIG_SSI0_DISABLE) /* || !defined(CONFIG_SSI1_DISABLE) */
|
||||||
if (lm3s_ssiinitialize)
|
if (lm_ssiinitialize)
|
||||||
{
|
{
|
||||||
lm3s_ssiinitialize();
|
lm_ssiinitialize();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -63,17 +63,17 @@
|
|||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Name: lm3s_ethernetmac
|
* Name: lm_ethernetmac
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* For the Ethernet Eval Kits, the MAC address will be stored in the non-volatile
|
* For the Ethernet Eval Kits, the MAC address will be stored in the non-volatile
|
||||||
* USER0 and USER1 registers. If CONFIG_LM3S_BOARDMAC is defined, this function
|
* USER0 and USER1 registers. If CONFIG_LM_BOARDMAC is defined, this function
|
||||||
* will obtain the MAC address from these registers.
|
* will obtain the MAC address from these registers.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_LM3S_BOARDMAC
|
#ifdef CONFIG_LM_BOARDMAC
|
||||||
void lm3s_ethernetmac(struct ether_addr *ethaddr)
|
void lm_ethernetmac(struct ether_addr *ethaddr)
|
||||||
{
|
{
|
||||||
uint32_t user0;
|
uint32_t user0;
|
||||||
uint32_t user1;
|
uint32_t user1;
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user