Add LM3S SSI driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1818 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
52c8c15231
commit
4d1fd0a378
@ -724,8 +724,9 @@
|
||||
|
||||
0.4.7 2009-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
|
||||
* arch/arm/src/lm2s: Added an Ethernet driver for the LM3S6918
|
||||
* arch/arm/src/lm3s: Added an Ethernet driver for the LM3S6918
|
||||
* configs/eagle100/nettest: Added an examples/nettest configuration for the
|
||||
Micromint Eagle100 board.
|
||||
* Documentation/NuttxPortingGuide.html: Added a section on NuttX device drivers.
|
||||
* arch/arm/src/lm3s: Added an SSI driver for the LM3S6918
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
<tr align="center" bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<h1><big><font color="#3c34ec"><i>NuttX RTOS</i></font></big></h1>
|
||||
<p>Last Updated: May 21, 2009</p>
|
||||
<p>Last Updated: May 23, 2009</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1414,10 +1414,11 @@ buildroot-0.1.5 2009-04-25 <spudmonkey@racsa.co.cr>
|
||||
<pre><ul>
|
||||
nuttx-0.4.7 2009-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
|
||||
* arch/arm/src/lm2s: Added an Ethernet driver for the LM3S6918
|
||||
* arch/arm/src/lm3s: Added an Ethernet driver for the LM3S6918
|
||||
* configs/eagle100/nettest: Added an examples/nettest configuration for the
|
||||
Micromint Eagle100 board.
|
||||
* Documentation/NuttxPortingGuide.html: Added a section on NuttX device drivers.
|
||||
* arch/arm/src/lm3s: Added an SSI driver for the LM3S6918
|
||||
|
||||
pascal-0.1.3 2009-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
|
||||
|
@ -59,7 +59,7 @@
|
||||
* Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* The i.MX1/L supports 2 SPI interfaces. Which have been endabled? */
|
||||
/* The i.MX1/L supports 2 SPI interfaces. Which have been enabled? */
|
||||
|
||||
#ifndef CONFIG_SPI1_DISABLE
|
||||
# define SPI1_NDX 0 /* Index to SPI1 in g_spidev[] */
|
||||
@ -503,7 +503,7 @@ static int spi_transfer(struct imx_spidev_s *priv, const void *txbuffer,
|
||||
priv->nwords = nwords; /* Total number of exchanges */
|
||||
|
||||
/* Set up the low-level data transfer function pointers */
|
||||
|
||||
|
||||
if (priv->nbits > 8)
|
||||
{
|
||||
priv->txword = spi_txuint16;
|
||||
@ -514,7 +514,7 @@ static int spi_transfer(struct imx_spidev_s *priv, const void *txbuffer,
|
||||
priv->txword = spi_txubyte;
|
||||
priv->rxword = spi_rxubyte;
|
||||
}
|
||||
|
||||
|
||||
if (!txbuffer)
|
||||
{
|
||||
priv->txword = spi_txnull;
|
||||
@ -533,7 +533,7 @@ static int spi_transfer(struct imx_spidev_s *priv, const void *txbuffer,
|
||||
spi_startxfr(priv, ntxd);
|
||||
|
||||
/* Enable transmit empty interrupt */
|
||||
|
||||
|
||||
regval = spi_getreg(priv, CSPI_INTCS_OFFSET);
|
||||
regval |= CSPI_INTCS_TEEN;
|
||||
spi_putreg(priv, CSPI_INTCS_OFFSET, regval);
|
||||
@ -809,7 +809,7 @@ static void spi_setmode(FAR struct spi_dev_s *dev, enum spi_mode_e mode)
|
||||
* Name: spi_setbits
|
||||
*
|
||||
* Description:
|
||||
* Set the number if bits per word.
|
||||
* Set the number of bits per word.
|
||||
*
|
||||
* Input Parameters:
|
||||
* dev - Device-specific state data
|
||||
@ -995,11 +995,11 @@ FAR struct spi_dev_s *up_spiinitialize(int port)
|
||||
|
||||
#ifndef CONFIG_SPI2_DISABLE
|
||||
case 2:
|
||||
/* Select SPI1 */
|
||||
/* Select SPI2 */
|
||||
|
||||
priv = &g_spidev[SPI2_NDX];
|
||||
|
||||
/* Configure SPI1 GPIOs */
|
||||
/* Configure SPI2 GPIOs */
|
||||
/* SCLK: AIN of Port A, pin 0 -OR- AIN of Port D, pin 7 */
|
||||
|
||||
#if 1
|
||||
|
@ -47,7 +47,7 @@ CMN_CSRCS = up_allocateheap.c up_assert.c up_blocktask.c up_copystate.c \
|
||||
CHIP_ASRCS =
|
||||
CHIP_CSRCS = lm3s_start.c lm3s_syscontrol.c lm3s_irq.c \
|
||||
lm3s_gpio.c lm3s_gpioirq.c lm3s_timerisr.c lm3s_lowputc.c \
|
||||
lm3s_serial.c
|
||||
lm3s_serial.c lm3s_ssi.c
|
||||
|
||||
ifdef CONFIG_NET
|
||||
CHIP_CSRCS += lm3s_ethernet.c
|
||||
|
@ -50,9 +50,9 @@
|
||||
/* Get customizations for each supported chip (only the LM3S6918 right now) */
|
||||
|
||||
#ifdef CONFIG_ARCH_CHIP_LM3S6918
|
||||
# define LMS_NUARTS 2 /* Two UART modules */
|
||||
# define LMS_NSSI 2 /* Two SSI modules */
|
||||
# define LMS_NETHCONTROLLERS 1 /* One ethenet controller */
|
||||
# define LM3S_NUARTS 2 /* Two UART modules */
|
||||
# define LM3S_NSSI 2 /* Two SSI modules */
|
||||
# define LM3S_NETHCONTROLLERS 1 /* One ethenet controller */
|
||||
#else
|
||||
# error "No Ethernet support for this LM3S chip"
|
||||
#endif
|
||||
@ -63,7 +63,7 @@
|
||||
#include "lm3s_syscontrol.h" /* System control module */
|
||||
#include "lm3s_gpio.h" /* GPIO modules */
|
||||
#include "lm3s_uart.h" /* UART modules */
|
||||
#include "lm2s_ssi.h" /* SSI modules */
|
||||
#include "lm3s_ssi.h" /* SSI modules */
|
||||
#include "lm3s_ethernet.h" /* Ethernet MAC and PHY */
|
||||
#include "lm3s_flash.h" /* FLASH */
|
||||
|
||||
|
@ -179,7 +179,7 @@ struct lm3s_driver_s
|
||||
* multiple Ethernet controllers.
|
||||
*/
|
||||
|
||||
#if LMS_NETHCONTROLLERS > 1
|
||||
#if LM3S_NETHCONTROLLERS > 1
|
||||
uint32 ld_base; /* Ethernet controller base address */
|
||||
int ld-irq; /* Ethernet controller IRQ */
|
||||
#endif
|
||||
@ -201,7 +201,7 @@ struct lm3s_driver_s
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
static struct lm3s_driver_s g_lm3sdev[LMS_NETHCONTROLLERS];
|
||||
static struct lm3s_driver_s g_lm3sdev[LM3S_NETHCONTROLLERS];
|
||||
|
||||
/****************************************************************************
|
||||
* Private Function Prototypes
|
||||
@ -209,7 +209,7 @@ static struct lm3s_driver_s g_lm3sdev[LMS_NETHCONTROLLERS];
|
||||
|
||||
/* Miscellaneous low level helpers */
|
||||
|
||||
#if LMS_NETHCONTROLLERS > 1
|
||||
#if LM3S_NETHCONTROLLERS > 1
|
||||
static uint32 lm3s_ethin(struct lm3s_driver_s *priv, int offset);
|
||||
static void lm3s_ethout(struct lm3s_driver_s *priv, int offset, uint32 value);
|
||||
#else
|
||||
@ -263,7 +263,7 @@ static int lm3s_txavail(struct uip_driver_s *dev);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if LMS_NETHCONTROLLERS > 1
|
||||
#if LM3S_NETHCONTROLLERS > 1
|
||||
static uint32 lm3s_ethin(struct lm3s_driver_s *priv, int offset)
|
||||
{
|
||||
return getreg32(priv->ld_base + offset);
|
||||
@ -291,7 +291,7 @@ static inline uint32 lm3s_ethin(struct lm3s_driver_s *priv, int offset)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if LMS_NETHCONTROLLERS > 1
|
||||
#if LM3S_NETHCONTROLLERS > 1
|
||||
static void lm3s_ethout(struct lm3s_driver_s *priv, int offset, uint32 value)
|
||||
{
|
||||
putreg32(value, priv->ld_base + offset);
|
||||
@ -325,7 +325,7 @@ static void lm3s_ethreset(struct lm3s_driver_s *priv)
|
||||
uint32 regval;
|
||||
volatile uint32 delay;
|
||||
|
||||
#if LMS_NETHCONTROLLERS > 1
|
||||
#if LM3S_NETHCONTROLLERS > 1
|
||||
# error "If multiple interfaces are supported, this function would have to be redesigned"
|
||||
#endif
|
||||
|
||||
@ -830,7 +830,7 @@ static int lm3s_interrupt(int irq, FAR void *context)
|
||||
register struct lm3s_driver_s *priv;
|
||||
uint32 ris;
|
||||
|
||||
#if LMS_NETHCONTROLLERS > 1
|
||||
#if LM3S_NETHCONTROLLERS > 1
|
||||
# error "A mechanism to associate and interface with an IRQ is needed"
|
||||
#else
|
||||
priv = &g_lm3sdev[0];
|
||||
@ -1096,7 +1096,7 @@ static int lm3s_ifup(struct uip_driver_s *dev)
|
||||
|
||||
/* Enable the Ethernet interrupt */
|
||||
|
||||
#if LMS_NETHCONTROLLERS > 1
|
||||
#if LM3S_NETHCONTROLLERS > 1
|
||||
up_enable_irq(priv->irq);
|
||||
#else
|
||||
up_enable_irq(LM3S_IRQ_ETHCON);
|
||||
@ -1164,7 +1164,7 @@ static int lm3s_ifdown(struct uip_driver_s *dev)
|
||||
|
||||
/* Disable the Ethernet interrupt */
|
||||
|
||||
#if LMS_NETHCONTROLLERS > 1
|
||||
#if LM3S_NETHCONTROLLERS > 1
|
||||
up_disable_irq(priv->irq);
|
||||
#else
|
||||
up_disable_irq(LM3S_IRQ_ETHCON);
|
||||
@ -1278,7 +1278,7 @@ static int lm3s_txavail(struct uip_driver_s *dev)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if LMS_NETHCONTROLLERS > 1
|
||||
#if LM3S_NETHCONTROLLERS > 1
|
||||
int lm3s_initialize(int intf)
|
||||
#else
|
||||
static inline int lm3s_initialize(int intf)
|
||||
@ -1291,12 +1291,12 @@ static inline int lm3s_initialize(int intf)
|
||||
|
||||
ndbg("Setting up eth%d\n", intf);
|
||||
|
||||
#if LMS_NETHCONTROLLERS > 1
|
||||
#if LM3S_NETHCONTROLLERS > 1
|
||||
# error "This debug check only works with one interface"
|
||||
#else
|
||||
DEBUGASSERT((getreg32(LM3S_SYSCON_DC4) & (SYSCON_DC4_EMAC0|SYSCON_DC4_EPHY0)) == (SYSCON_DC4_EMAC0|SYSCON_DC4_EPHY0));
|
||||
#endif
|
||||
DEBUGASSERT((unsigned)intf < LMS_NETHCONTROLLERS);
|
||||
DEBUGASSERT((unsigned)intf < LM3S_NETHCONTROLLERS);
|
||||
|
||||
/* Initialize the driver structure */
|
||||
|
||||
@ -1308,7 +1308,7 @@ static inline int lm3s_initialize(int intf)
|
||||
|
||||
/* Create a watchdog for timing polling for and timing of transmisstions */
|
||||
|
||||
#if LMS_NETHCONTROLLERS > 1
|
||||
#if LM3S_NETHCONTROLLERS > 1
|
||||
# error "A mechanism to associate base address an IRQ with an interface is needed"
|
||||
priv->ld_base = ??; /* Ethernet controller base address */
|
||||
priv->ld_irq = ??; /* Ethernet controller IRQ number */
|
||||
@ -1335,7 +1335,7 @@ static inline int lm3s_initialize(int intf)
|
||||
|
||||
/* Attach the IRQ to the driver */
|
||||
|
||||
#if LMS_NETHCONTROLLERS > 1
|
||||
#if LM3S_NETHCONTROLLERS > 1
|
||||
ret = irq_attach(priv->irq, lm3s_interrupt);
|
||||
#else
|
||||
ret = irq_attach(LM3S_IRQ_ETHCON, lm3s_interrupt);
|
||||
@ -1364,7 +1364,7 @@ static inline int lm3s_initialize(int intf)
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
#if LMS_NETHCONTROLLERS == 1
|
||||
#if LM3S_NETHCONTROLLERS == 1
|
||||
void up_netinitialize(void)
|
||||
{
|
||||
(void)lm3s_initialize(0);
|
||||
|
@ -308,10 +308,34 @@ EXTERN int weak_function gpio_irqinitialize(void);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if LMS_NETHCONTROLLERS > 1
|
||||
#if LM3S_NETHCONTROLLERS > 1
|
||||
EXTERN int lm3s_initialize(int intf);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* The external functions, lm3s_spiselect and lm3s_spistatus must be provided
|
||||
* 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).
|
||||
* All othermethods (including up_spiinitialize()) are provided by common
|
||||
* logic. To use this common SPI logic on your board:
|
||||
*
|
||||
* 1. Provide lm3s_spiselect() and lm3s_spistatus() functions in your
|
||||
* board-specific logic. This function will perform chip selection and
|
||||
* status operations using GPIOs in the way your board is configured.
|
||||
* 2. Add a call to up_spiinitialize() in your low level initialization
|
||||
* logic
|
||||
* 3. The handle returned by up_spiinitialize() may then be used to bind the
|
||||
* SPI driver to higher level logic (e.g., calling
|
||||
* mmcsd_spislotinitialize(), for example, will bind the SPI driver to
|
||||
* the SPI MMC/SD driver).
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
struct spi_dev_s;
|
||||
enum spi_dev_e;
|
||||
EXTERN void lm3s_spiselect(FAR struct spi_dev_s *dev, enum spi_dev_e devid, boolean selected);
|
||||
EXTERN ubyte lm3s_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid);
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
|
1266
arch/arm/src/lm3s/lm3s_ssi.c
Executable file
1266
arch/arm/src/lm3s/lm3s_ssi.c
Executable file
File diff suppressed because it is too large
Load Diff
@ -43,7 +43,7 @@
|
||||
#include <nuttx/config.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#if LMS_NSSI > 0
|
||||
#if LM3S_NSSI > 0
|
||||
|
||||
/************************************************************************************
|
||||
* Definitions
|
||||
@ -97,7 +97,7 @@
|
||||
#define LM3S_SSI0_PCELLID2 (LM3S_SSI0_BASE + LM3S_SSI_PCELLID2_OFFSET)
|
||||
#define LM3S_SSI0_PCELLID3 (LM3S_SSI0_BASE + LM3S_SSI_PCELLID3_OFFSET)
|
||||
|
||||
#if LMS_NSSI > 1
|
||||
#if LM3S_NSSI > 1
|
||||
#define LM3S_SSI1_CR0 (LM3S_SSI1_BASE + LM3S_SSI_CR0_OFFSET)
|
||||
#define LM3S_SSI1_CR1 (LM3S_SSI1_BASE + LM3S_SSI_CR1_OFFSET)
|
||||
#define LM3S_SSI1_DR (LM3S_SSI1_BASE + LM3S_SSI_DR_OFFSET)
|
||||
@ -143,18 +143,18 @@
|
||||
#define LM3S_SSI_PCELLID1(n) (LM3S_SSI_BASE(n) + LM3S_SSI_PCELLID1_OFFSET)
|
||||
#define LM3S_SSI_PCELLID2(n) (LM3S_SSI_BASE(n) + LM3S_SSI_PCELLID2_OFFSET)
|
||||
#define LM3S_SSI_PCELLID3(n) (LM3S_SSI_BASE(n) + LM3S_SSI_PCELLID3_OFFSET)
|
||||
#endif /* LMS_NSSI > 1 */
|
||||
#endif /* LM3S_NSSI > 1 */
|
||||
|
||||
/* SSI register bit defitiions ******************************************************/
|
||||
|
||||
/* SSI Control 0 (SSICR0), offset 0x000 */
|
||||
|
||||
#define SSI_CR0_DSS_SHIFT 0 /* Bits 3-0: SSI Data Size Select
|
||||
#define SSI_CR0_DSS_SHIFT 0 /* Bits 3-0: SSI Data Size Select */
|
||||
#define SSI_CR0_DSS_MASK (0x0f << SSI_CR0_DSS_SHIFT)
|
||||
#define SSI_CR0_DSS(n) ((n-1) << SSI_CR0_DSS_SHIFT) /* n={4,5,..16} */
|
||||
#define SSI_CR0_FRF_SHIFT 4 /* Bits 5-4: SSI Frame Format Select */
|
||||
#define SSI_CR0_FRF_MASK (3 << SSI_CR0_FRF_SHIFT)
|
||||
#define SSI_CR0_FRF_SPI (0 << SSI_CR0_FRF_SHIFT) /* Freescale SPI format */e
|
||||
#define SSI_CR0_FRF_SPI (0 << SSI_CR0_FRF_SHIFT) /* Freescale SPI format */
|
||||
#define SSI_CR0_FRF_SSFF (1 << SSI_CR0_FRF_SHIFT) /* TI synchronous serial fram format */
|
||||
#define SSI_CR0_FRF_UWIRE (2 << SSI_CR0_FRF_SHIFT) /* MICROWIRE frame format */
|
||||
#define SSI_CR0_SPO (1 << 6) /* Bit 6: SSI Serial Clock Polarity */
|
||||
@ -187,37 +187,37 @@
|
||||
|
||||
/* SSI Interrupt Mask (SSIIM), offset 0x014 */
|
||||
|
||||
#define SSI_IM_ROR (1 << 0) /* Bit 0: SSI Receive Overrun Interrupt Mask */
|
||||
#define SSI_IM_RT (1 << 1) /* Bit 1: SSI Receive Time-Out Interrupt Mask */
|
||||
#define SSI_IM_RX (1 << 2) /* Bit 2: SSI Receive FIFO Interrupt Mask */
|
||||
#define SSI_IM_TX (1 << 3) /* Bit 3: SSI Transmit FIFO Interrupt Mask */
|
||||
#define SSI_IM_ROR (1 << 0) /* Bit 0: SSI Receive Overrun Interrupt Mask */
|
||||
#define SSI_IM_RT (1 << 1) /* Bit 1: SSI Receive Time-Out Interrupt Mask */
|
||||
#define SSI_IM_RX (1 << 2) /* Bit 2: SSI Receive FIFO Interrupt Mask */
|
||||
#define SSI_IM_TX (1 << 3) /* Bit 3: SSI Transmit FIFO Interrupt Mask */
|
||||
|
||||
/* SSI Raw Interrupt Status (SSIRIS), offset 0x018 */
|
||||
|
||||
#define SSI_RIS_ROR (1 << 0) /* Bit 0: SSI Receive Overrun Raw Interrupt Status */
|
||||
#define SSI_RIS_RT (1 << 1) /* Bit 1: SSI Receive Time-Out Raw Interrupt Status */
|
||||
#define SSI_RIS_RX (1 << 2) /* Bit 2: SSI Receive FIFO Raw Interrupt Status */
|
||||
#define SSI_RIS_TX (1 << 3) /* Bit 3: SSI Transmit FIFO Raw Interrupt Status */
|
||||
#define SSI_RIS_ROR (1 << 0) /* Bit 0: SSI Receive Overrun Raw Interrupt Status */
|
||||
#define SSI_RIS_RT (1 << 1) /* Bit 1: SSI Receive Time-Out Raw Interrupt Status */
|
||||
#define SSI_RIS_RX (1 << 2) /* Bit 2: SSI Receive FIFO Raw Interrupt Status */
|
||||
#define SSI_RIS_TX (1 << 3) /* Bit 3: SSI Transmit FIFO Raw Interrupt Status */
|
||||
|
||||
/* SSI Masked Interrupt Status (SSIMIS), offset 0x01c */
|
||||
|
||||
#define SSI_MIS_ROR (1 << 0) /* Bit 0: SSI Receive Overrun Masked Interrupt Status */
|
||||
#define SSI_MIS_RT (1 << 1) /* Bit 1: SSI Receive Time-Out Masked Interrupt Status */
|
||||
#define SSI_MIS_RX (1 << 2) /* Bit 2: SSI Receive FIFO Masked Interrupt Status */
|
||||
#define SSI_MIS_TX (1 << 3) /* Bit 3: SSI Transmit FIFO Masked Interrupt Status */
|
||||
#define SSI_MIS_ROR (1 << 0) /* Bit 0: SSI Receive Overrun Masked Interrupt Status */
|
||||
#define SSI_MIS_RT (1 << 1) /* Bit 1: SSI Receive Time-Out Masked Interrupt Status */
|
||||
#define SSI_MIS_RX (1 << 2) /* Bit 2: SSI Receive FIFO Masked Interrupt Status */
|
||||
#define SSI_MIS_TX (1 << 3) /* Bit 3: SSI Transmit FIFO Masked Interrupt Status */
|
||||
|
||||
/* SSI Interrupt Clear (SSIICR), offset 0x020 */
|
||||
|
||||
#define SSI_ICR_ROR (1 << 0) /* Bit 0: SSI Receive Overrun Interrupt Clear */
|
||||
#define SSI_ICR_RT (1 << 1) /* Bit 1: SSI Receive Time-Out Interrupt Clear */
|
||||
#define SSI_ICR_ROR (1 << 0) /* Bit 0: SSI Receive Overrun Interrupt Clear */
|
||||
#define SSI_ICR_RT (1 << 1) /* Bit 1: SSI Receive Time-Out Interrupt Clear */
|
||||
|
||||
/* SSI Peripheral Identification n (SSIPERIPHIDn), offset 0xfd0-0xfec */
|
||||
|
||||
#define SSI_PERIPHID_MASK 0xff /* Bits 7-0: SSI Peripheral ID n */
|
||||
#define SSI_PERIPHID_MASK 0xff /* Bits 7-0: SSI Peripheral ID n */
|
||||
|
||||
/* SSI PrimeCell Identification n (SSIPCELLIDn), offset 0xff0-0xffc */
|
||||
|
||||
#define SSI_PCELLID_MASK 0xff /* Bits 7-0: SSI Prime cell ID */
|
||||
#define SSI_PCELLID_MASK 0xff /* Bits 7-0: SSI Prime cell ID */
|
||||
|
||||
/************************************************************************************
|
||||
* Public Types
|
||||
@ -231,5 +231,5 @@
|
||||
* Public Function Prototypes
|
||||
************************************************************************************/
|
||||
|
||||
#endif /* LMS_NSSI > 0 */
|
||||
#endif /* LM3S_NSSI > 0 */
|
||||
#endif /* __ARCH_ARM_SRC_LM3S_LM3S_SSI_H */
|
||||
|
@ -200,6 +200,10 @@ Eagle100-specific Configuration Options
|
||||
CONFIG_UARTn_PARTIY - 0=no parity, 1=odd parity, 2=even parity
|
||||
CONFIG_UARTn_2STOP - Two stop bits
|
||||
|
||||
CONFIG_SSI0_DISABLE - Select to disable support for SSI0
|
||||
CONFIG_SSI1_DISABLE - Select to disable support for SSI1
|
||||
CONFIG_SSI_POLLWAIT - Select to disable interrupt driven SSI support.
|
||||
|
||||
CONFIG_LM3S_ETHERNET - This must be set (along with CONFIG_NET)
|
||||
to build the LM3S Ethernet driver
|
||||
CONFIG_LM3S_ETHLEDS - Enable to use Ethernet LEDs on the board.
|
||||
|
@ -121,12 +121,15 @@ CONFIG_UART0_2STOP=0
|
||||
CONFIG_UART1_2STOP=0
|
||||
|
||||
#
|
||||
# LM3S6918 specific SPI device driver settings
|
||||
# LM3S6918 specific SSI device driver settings
|
||||
#
|
||||
# CONFIG_SPIn_DISABLE - select to disable all support for
|
||||
# the SPI
|
||||
CONFIG_SPI1_DISABLE=n
|
||||
CONFIG_SPI2_DISABLE=y
|
||||
# CONFIG_SSIn_DISABLE - select to disable all support for
|
||||
# the SSI
|
||||
# CONFIG_SSI_POLLWAIT - Select to disable interrupt driven SSI support
|
||||
#
|
||||
CONFIG_SSI0_DISABLE=n
|
||||
CONFIG_SSI1_DISABLE=y
|
||||
CONFIG_SSI_POLLWAIT=n
|
||||
|
||||
#
|
||||
# LM3S6918 specific serial device driver settings
|
||||
@ -142,7 +145,7 @@ CONFIG_SPI2_DISABLE=y
|
||||
# CONFIG_LM3S_MULTICAST - Set to enable multicast frames
|
||||
# CONFIG_LM3S_PROMISCUOUS - Set to enable promiscuous mode
|
||||
# CONFIG_LM3S_BADCRC - Set to enable bad CRC rejection.
|
||||
#
|
||||
#
|
||||
CONFIG_LM3S_ETHERNET=y
|
||||
CONFIG_LM3S_ETHLEDS=n
|
||||
CONFIG_LM3S_BOARDMAC=y
|
||||
|
@ -121,12 +121,15 @@ CONFIG_UART0_2STOP=0
|
||||
CONFIG_UART1_2STOP=0
|
||||
|
||||
#
|
||||
# LM3S6918 specific SPI device driver settings
|
||||
# LM3S6918 specific SSI device driver settings
|
||||
#
|
||||
# CONFIG_SPIn_DISABLE - select to disable all support for
|
||||
# the SPI
|
||||
CONFIG_SPI1_DISABLE=n
|
||||
CONFIG_SPI2_DISABLE=y
|
||||
# CONFIG_SSIn_DISABLE - select to disable all support for
|
||||
# the SSI
|
||||
# CONFIG_SSI_POLLWAIT - Select to disable interrupt driven SSI support
|
||||
#
|
||||
CONFIG_SSI0_DISABLE=n
|
||||
CONFIG_SSI1_DISABLE=y
|
||||
CONFIG_SSI_POLLWAIT=n
|
||||
|
||||
#
|
||||
# LM3S6918 specific serial device driver settings
|
||||
@ -142,7 +145,7 @@ CONFIG_SPI2_DISABLE=y
|
||||
# CONFIG_LM3S_MULTICAST - Set to enable multicast frames
|
||||
# CONFIG_LM3S_PROMISCUOUS - Set to enable promiscuous mode
|
||||
# CONFIG_LM3S_BADCRC - Set to enable bad CRC rejection.
|
||||
#
|
||||
#
|
||||
CONFIG_LM3S_ETHERNET=y
|
||||
CONFIG_LM3S_ETHLEDS=n
|
||||
CONFIG_LM3S_BOARDMAC=y
|
||||
|
@ -121,12 +121,15 @@ CONFIG_UART0_2STOP=0
|
||||
CONFIG_UART1_2STOP=0
|
||||
|
||||
#
|
||||
# LM3S6918 specific SPI device driver settings
|
||||
# LM3S6918 specific SSI device driver settings
|
||||
#
|
||||
# CONFIG_SPIn_DISABLE - select to disable all support for
|
||||
# the SPI
|
||||
CONFIG_SPI1_DISABLE=n
|
||||
CONFIG_SPI2_DISABLE=y
|
||||
# CONFIG_SSIn_DISABLE - select to disable all support for
|
||||
# the SSI
|
||||
# CONFIG_SSI_POLLWAIT - Select to disable interrupt driven SSI support
|
||||
#
|
||||
CONFIG_SSI0_DISABLE=n
|
||||
CONFIG_SSI1_DISABLE=y
|
||||
CONFIG_SSI_POLLWAIT=n
|
||||
|
||||
#
|
||||
# LM3S6918 specific serial device driver settings
|
||||
@ -142,7 +145,7 @@ CONFIG_SPI2_DISABLE=y
|
||||
# CONFIG_LM3S_MULTICAST - Set to enable multicast frames
|
||||
# CONFIG_LM3S_PROMISCUOUS - Set to enable promiscuous mode
|
||||
# CONFIG_LM3S_BADCRC - Set to enable bad CRC rejection.
|
||||
#
|
||||
#
|
||||
CONFIG_LM3S_ETHERNET=n
|
||||
CONFIG_LM3S_ETHLEDS=n
|
||||
CONFIG_LM3S_BOARDMAC=y
|
||||
|
@ -121,12 +121,15 @@ CONFIG_UART0_2STOP=0
|
||||
CONFIG_UART1_2STOP=0
|
||||
|
||||
#
|
||||
# LM3S6918 specific SPI device driver settings
|
||||
# LM3S6918 specific SSI device driver settings
|
||||
#
|
||||
# CONFIG_SPIn_DISABLE - select to disable all support for
|
||||
# the SPI
|
||||
CONFIG_SPI1_DISABLE=n
|
||||
CONFIG_SPI2_DISABLE=y
|
||||
# CONFIG_SSIn_DISABLE - select to disable all support for
|
||||
# the SSI
|
||||
# CONFIG_SSI_POLLWAIT - Select to disable interrupt driven SSI support
|
||||
#
|
||||
CONFIG_SSI0_DISABLE=n
|
||||
CONFIG_SSI1_DISABLE=y
|
||||
CONFIG_SSI_POLLWAIT=n
|
||||
|
||||
#
|
||||
# LM3S6918 specific serial device driver settings
|
||||
@ -142,7 +145,7 @@ CONFIG_SPI2_DISABLE=y
|
||||
# CONFIG_LM3S_MULTICAST - Set to enable multicast frames
|
||||
# CONFIG_LM3S_PROMISCUOUS - Set to enable promiscuous mode
|
||||
# CONFIG_LM3S_BADCRC - Set to enable bad CRC rejection.
|
||||
#
|
||||
#
|
||||
CONFIG_LM3S_ETHERNET=n
|
||||
CONFIG_LM3S_ETHLEDS=n
|
||||
CONFIG_LM3S_BOARDMAC=y
|
||||
|
Loading…
x
Reference in New Issue
Block a user