From d9d6ff1d1bce8b1dde0acc74fcc82078159e16a2 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 2 Jun 2015 08:44:57 -0600 Subject: [PATCH] Fix some memory sizing errors in refreshed defconfig files --- arch/arm/src/lpc17xx/lpc17_emacram.h | 5 +++-- arch/arm/src/lpc17xx/lpc17_ethernet.c | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/src/lpc17xx/lpc17_emacram.h b/arch/arm/src/lpc17xx/lpc17_emacram.h index 7d98106b128..5e8df85b318 100644 --- a/arch/arm/src/lpc17xx/lpc17_emacram.h +++ b/arch/arm/src/lpc17xx/lpc17_emacram.h @@ -132,8 +132,9 @@ * * 16384 <= ntx * (pktsize + 8 + 4) + nrx * (pktsize + 8 + 8) * - * If ntx == nrx and pktsize == 590, then you could have ntx = nrx = 13. In this - * case, you would need only 15,704 bytes of EMAC RAM (but be careful with alignment!). + * If ntx == nrx and pktsize == 590+2, then you could have ntx = nrx = 13. In this + * case, you would need only 15,756 bytes of EMAC RAM (but be careful with alignment! + * 15,756 is not well aligned.). */ #define LPC17_TXDESCTAB_SIZE (CONFIG_NET_NTXDESC*LPC17_TXDESC_SIZE) diff --git a/arch/arm/src/lpc17xx/lpc17_ethernet.c b/arch/arm/src/lpc17xx/lpc17_ethernet.c index b2fa43a4d61..6f684d38447 100644 --- a/arch/arm/src/lpc17xx/lpc17_ethernet.c +++ b/arch/arm/src/lpc17xx/lpc17_ethernet.c @@ -1983,7 +1983,6 @@ static inline void lpc17_txavail_process(FAR struct lpc17_driver_s *priv) } net_unlock(state); - return OK; } /****************************************************************************