summaryrefslogtreecommitdiffstats
path: root/app/steth.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/steth.h')
-rw-r--r--app/steth.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/app/steth.h b/app/steth.h
new file mode 100644
index 0000000..d2a1352
--- /dev/null
+++ b/app/steth.h
@@ -0,0 +1,46 @@
+
+#define PHY PHY0
+
+#define RXER GPIO10
+#define RXER_PORT GPIOB
+
+#define TXEN GPIO11
+#define TXEN_PORT GPIOB
+
+#define TXD0 GPIO12
+#define TXD0_PORT GPIOB
+
+#define TXD1 GPIO13
+#define TXD1_PORT GPIOB
+
+#define RXD0 GPIO4
+#define RXD0_PORT GPIOC
+
+#define RXD1 GPIO5
+#define RXD1_PORT GPIOC
+
+#define CRS_DV GPIO7
+#define CRS_DV_PORT GPIOA
+
+#define MDIO GPIO2
+#define MDIO_PORT GPIOA
+
+#define MDC GPIO1
+#define MDC_PORT GPIOC
+
+#define REF_CLK GPIO1
+#define REF_CLK_PORT GPIOA
+
+#define NRST GPIO2
+#define NRST_PORT GPIOE
+
+
+#define DESC_SZ ETH_DES_EXT_SIZE
+#define FRAME_SZ 1516
+
+#define TX_BUFS 4
+#define RX_BUFS 4
+
+#define ETH_BUF_LEN ((TX_BUFS+ RX_BUFS) * (DESC_SZ+FRAME_SZ))
+
+