summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/sama5/sam_emac.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-09-26 15:55:21 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-09-26 15:55:21 -0600
commitcda383a549d16f8b441a423578d69a9dfdf1e579 (patch)
treec7a24a48c5452278c76907c329047344adfefdfd /nuttx/arch/arm/src/sama5/sam_emac.c
parent5a50891de49e3ff53a607c481e0a05a19029d8f0 (diff)
downloadnuttx-cda383a549d16f8b441a423578d69a9dfdf1e579.tar.gz
nuttx-cda383a549d16f8b441a423578d69a9dfdf1e579.tar.bz2
nuttx-cda383a549d16f8b441a423578d69a9dfdf1e579.zip
Beginng of support for GMII/RGMII PHYs
Diffstat (limited to 'nuttx/arch/arm/src/sama5/sam_emac.c')
-rw-r--r--nuttx/arch/arm/src/sama5/sam_emac.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/sama5/sam_emac.c b/nuttx/arch/arm/src/sama5/sam_emac.c
index be0df5d2e..1c5198020 100644
--- a/nuttx/arch/arm/src/sama5/sam_emac.c
+++ b/nuttx/arch/arm/src/sama5/sam_emac.c
@@ -94,7 +94,7 @@
/* Number of buffer for TX */
#ifndef CONFIG_SAMA5_EMAC_NTXBUFFERS
-# define CONFIG_SAMA5_EMAC_NTXBUFFERS 32
+# define CONFIG_SAMA5_EMAC_NTXBUFFERS 8
#endif
#undef CONFIG_SAMA5_EMAC_NBC
@@ -294,11 +294,13 @@ static struct sam_emac_s g_emac;
/* Preallocated data */
/* TX descriptors list */
-static struct emac_txdesc_s g_txdesc[TX_BUFFERS] __attribute__((aligned(8)));
+static struct emac_txdesc_s g_txdesc[CONFIG_SAMA5_EMAC_NTXBUFFERS]
+ __attribute__((aligned(8)));
/* RX descriptors list */
-static struct emac_rxdesc_s g_rxdesc[RX_BUFFERS]__attribute__((aligned(8)));
+static struct emac_rxdesc_s g_rxdesc[CONFIG_SAMA5_EMAC_NRXBUFFERS]
+ __attribute__((aligned(8)));
/* Transmit Buffers
*