summaryrefslogtreecommitdiff
path: root/nuttx/configs/pic32-starterkit
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-01-08 18:41:49 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-01-08 18:41:49 +0000
commite88d9704318ee729ecabdcae34e671e27889f885 (patch)
treef7da0a1d3a39ad804e5ab7b9b8b09e85f06c19fa /nuttx/configs/pic32-starterkit
parenta3a2805a21f8d872a40a21a6a966b8f047bd6915 (diff)
downloadpx4-nuttx-e88d9704318ee729ecabdcae34e671e27889f885.tar.gz
px4-nuttx-e88d9704318ee729ecabdcae34e671e27889f885.tar.bz2
px4-nuttx-e88d9704318ee729ecabdcae34e671e27889f885.zip
More progress on the PIC32MX Ethernet driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4282 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/pic32-starterkit')
-rw-r--r--nuttx/configs/pic32-starterkit/README.txt30
-rw-r--r--nuttx/configs/pic32-starterkit/ostest/defconfig45
2 files changed, 75 insertions, 0 deletions
diff --git a/nuttx/configs/pic32-starterkit/README.txt b/nuttx/configs/pic32-starterkit/README.txt
index 4bf847c89..3b4db968a 100644
--- a/nuttx/configs/pic32-starterkit/README.txt
+++ b/nuttx/configs/pic32-starterkit/README.txt
@@ -854,6 +854,36 @@ PIC32MX Configuration Options
CONFIG_UARTn_PARTIY - 0=no parity, 1=odd parity, 2=even parity
CONFIG_UARTn_2STOP - Two stop bits
+PIC32MX specific PHY/Ethernet device driver settings
+
+ CONFIG_PHY_KS8721 - Selects the Micrel KS8721 PHY
+ CONFIG_PHY_DP83848C - Selects the National Semiconduction DP83848C PHY
+ CONFIG_PHY_LAN8720 - Selects the SMSC LAN8720 PHY
+ CONFIG_PHY_AUTONEG - Enable auto-negotion
+ CONFIG_PHY_SPEED100 - Select 100Mbit vs. 10Mbit speed.
+ CONFIG_PHY_FDUPLEX - Select full (vs. half) duplex
+ CONFIG_NET_EMACRAM_SIZE - Size of EMAC RAM. Default: 16Kb
+ CONFIG_NET_NTXDESC - Configured number of Tx descriptors. Default: 18
+ CONFIG_NET_NRXDESC - Configured number of Rx descriptors. Default: 18
+ CONFIG_NET_PRIORITY - Ethernet interrupt priority. The is default is
+ the higest priority.
+ CONFIG_NET_WOL - Enable Wake-up on Lan (not fully implemented).
+ CONFIG_NET_DUMPPACKET - Dump all received and transmitted packets.
+ Also needs CONFIG_DEBUG.
+ CONFIG_NET_REGDEBUG - Enabled low level register debug. Also needs
+ CONFIG_DEBUG.
+ CONFIG_NET_HASH - Enable receipt of near-perfect match frames.
+ CONFIG_NET_MULTICAST - Enable receipt of multicast (and unicast) frames.
+ Automatically set if CONFIG_NET_IGMP is selected.
+
+ Related DEVCFG3 Configuration Settings:
+ CONFIG_PIC32MX_FETHIO: Ethernet I/O Pin Selection bit:
+ 1 = Default Ethernet I/O Pins
+ 0 = Alternate Ethernet I/O Pins
+ CONFIG_PIC32MX_FMIIEN: Ethernet MII Enable bit
+ 1 = MII enabled
+ 0 = RMII enabled
+
PIC32MXx USB Device Configuration
PIC32MXx USB Host Configuration (the PIC32MX does not support USB Host)
diff --git a/nuttx/configs/pic32-starterkit/ostest/defconfig b/nuttx/configs/pic32-starterkit/ostest/defconfig
index feffbc9a4..792c87d96 100644
--- a/nuttx/configs/pic32-starterkit/ostest/defconfig
+++ b/nuttx/configs/pic32-starterkit/ostest/defconfig
@@ -160,6 +160,9 @@ CONFIG_PIC32MX_DMA=n
CONFIG_PIC32MX_CHE=n
CONFIG_PIC32MX_USBDEV=n
CONFIG_PIC32MX_USBHOST=n
+CONFIG_PIC32MX_CAN1=n
+CONFIG_PIC32MX_CAN2=n
+CONFIG_PIC32MX_ETHERNET=n
CONFIG_PIC32MX_IOPORTA=y
CONFIG_PIC32MX_IOPORTB=y
CONFIG_PIC32MX_IOPORTC=y
@@ -256,6 +259,48 @@ CONFIG_UART5_2STOP=0
CONFIG_UART6_2STOP=0
#
+# PIC32MX specific PHY/Ethernet device driver settings
+#
+# CONFIG_PHY_KS8721 - Selects the Micrel KS8721 PHY
+# CONFIG_PHY_DP83848C - Selects the National Semiconduction DP83848C PHY
+# CONFIG_PHY_LAN8720 - Selects the SMSC LAN8720 PHY
+# CONFIG_PHY_AUTONEG - Enable auto-negotion
+# CONFIG_PHY_SPEED100 - Select 100Mbit vs. 10Mbit speed.
+# CONFIG_PHY_FDUPLEX - Select full (vs. half) duplex
+# CONFIG_NET_EMACRAM_SIZE - Size of EMAC RAM. Default: 16Kb
+# CONFIG_NET_NTXDESC - Configured number of Tx descriptors. Default: 18
+# CONFIG_NET_NRXDESC - Configured number of Rx descriptors. Default: 18
+# CONFIG_NET_PRIORITY - Ethernet interrupt priority. The is default is
+# the higest priority.
+# CONFIG_NET_WOL - Enable Wake-up on Lan (not fully implemented).
+# CONFIG_NET_DUMPPACKET - Dump all received and transmitted packets.
+# Also needs CONFIG_DEBUG.
+# CONFIG_NET_REGDEBUG - Enabled low level register debug. Also needs
+# CONFIG_DEBUG.
+# CONFIG_NET_HASH - Enable receipt of near-perfect match frames.
+# CONFIG_NET_MULTICAST - Enable receipt of multicast (and unicast) frames.
+# Automatically set if CONFIG_NET_IGMP is selected.
+#
+# Related DEVCFG3 Configuration Settings:
+# CONFIG_PIC32MX_FETHIO: Ethernet I/O Pin Selection bit:
+# 1 = Default Ethernet I/O Pins
+# 0 = Alternate Ethernet I/O Pins
+# CONFIG_PIC32MX_FMIIEN: Ethernet MII Enable bit
+# 1 = MII enabled
+# 0 = RMII enabled
+#
+CONFIG_PHY_KS8721=n
+CONFIG_PHY_DP83848C=y
+CONFIG_PHY_LAN8720=n
+CONFIG_PHY_AUTONEG=y
+CONFIG_PHY_SPEED100=n
+CONFIG_PHY_FDUPLEX=y
+CONFIG_NET_EMACRAM_SIZE=8192
+CONFIG_NET_NTXDESC=7
+CONFIG_NET_NRXDESC=7
+CONFIG_NET_REGDEBUG=n
+
+#
# General build options
#
# CONFIG_RRLOAD_BINARY - make the rrload binary format used with