summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/chip/stm32_eth.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-09-24 15:51:48 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-09-24 15:51:48 +0000
commit3a9970e4b125c4a629d957d35ca67f662c69ff00 (patch)
tree57575d4289b1d76f23fc786438be6d0332c4b656 /nuttx/arch/arm/src/stm32/chip/stm32_eth.h
parent885d507dd53d6f95c83397b7993431619cb08c5b (diff)
downloadpx4-nuttx-3a9970e4b125c4a629d957d35ca67f662c69ff00.tar.gz
px4-nuttx-3a9970e4b125c4a629d957d35ca67f662c69ff00.tar.bz2
px4-nuttx-3a9970e4b125c4a629d957d35ca67f662c69ff00.zip
Fixes STM32F107 DMA issue
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5182 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32/chip/stm32_eth.h')
-rw-r--r--nuttx/arch/arm/src/stm32/chip/stm32_eth.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/stm32/chip/stm32_eth.h b/nuttx/arch/arm/src/stm32/chip/stm32_eth.h
index 0b5ef18ca..a4a109d01 100644
--- a/nuttx/arch/arm/src/stm32/chip/stm32_eth.h
+++ b/nuttx/arch/arm/src/stm32/chip/stm32_eth.h
@@ -711,7 +711,9 @@
/* RDES0: Receive descriptor Word0 */
#define ETH_RDES0_PCE (1 << 0) /* Bit 0: Payload checksum error */
-#define ETH_RDES0_ESA (1 << 0) /* Bit 0: Extended status available */
+#if defined(CONFIG_STM32_STM32F20XX) || defined(CONFIG_STM32_STM32F40XX)
+# define ETH_RDES0_ESA (1 << 0) /* Bit 0: Extended status available */
+#endif
#define ETH_RDES0_CE (1 << 1) /* Bit 1: CRC error */
#define ETH_RDES0_DBE (1 << 2) /* Bit 2: Dribble bit error */
#define ETH_RDES0_RE (1 << 3) /* Bit 3: Receive error */
@@ -735,8 +737,9 @@
/* RDES1: Receive descriptor Word1 */
-#define ETH_RDES1_RBS1_SHIFT (0) /* Bits 0-12: Receive buffer 1 size */
+#define ETH_RDES1_RBS1_SHIFT (0) /* Bits 0-12: Receive buffer 1 size */
#define ETH_RDES1_RBS1_MASK (0x1fff << ETH_RDES1_RBS1_SHIFT)
+ /* Bit 13: Reserved */
#define ETH_RDES1_RCH (1 << 14) /* Bit 14: Second address chained */
#define ETH_RDES1_RER (1 << 15) /* Bit 15: Receive end of ring */
#define ETH_RDES1_RBS2_SHIFT (16) /* Bits 16-28: Receive buffer 2 size */