Skip to content

Commit b71c621

Browse files
reverbrickdpgeorge
authored andcommitted
stm32/boards/OLIMEX_E407: Add Ethernet RMII support.
1 parent 97bbc0b commit b71c621

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

ports/stm32/boards/OLIMEX_E407/mpconfigboard.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,14 @@
7878
#define MICROPY_HW_USB_FS (1)
7979
#define MICROPY_HW_USB_VBUS_DETECT_PIN (pin_A9)
8080
#define MICROPY_HW_USB_OTG_ID_PIN (pin_A10)
81+
82+
// Ethernet via RMII
83+
#define MICROPY_HW_ETH_MDC (pin_C1)
84+
#define MICROPY_HW_ETH_MDIO (pin_A2)
85+
#define MICROPY_HW_ETH_RMII_REF_CLK (pin_A1)
86+
#define MICROPY_HW_ETH_RMII_CRS_DV (pin_A7)
87+
#define MICROPY_HW_ETH_RMII_RXD0 (pin_C4)
88+
#define MICROPY_HW_ETH_RMII_RXD1 (pin_C5)
89+
#define MICROPY_HW_ETH_RMII_TX_EN (pin_G11)
90+
#define MICROPY_HW_ETH_RMII_TXD0 (pin_G13)
91+
#define MICROPY_HW_ETH_RMII_TXD1 (pin_G14)

ports/stm32/boards/OLIMEX_E407/mpconfigboard.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ AF_FILE = boards/stm32f405_af.csv
44
LD_FILES = boards/stm32f405.ld boards/common_ifs.ld
55
TEXT0_ADDR = 0x08000000
66
TEXT1_ADDR = 0x08020000
7+
8+
# MicroPython settings
9+
MICROPY_PY_LWIP = 1
10+
MICROPY_PY_USSL = 1
11+
MICROPY_SSL_MBEDTLS = 1

ports/stm32/boards/OLIMEX_E407/pins.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,6 @@ PD15,PD15
8484
PA0,PA0
8585
USB_DM,PA11
8686
USB_DP,PA12
87+
PG11,PG11
88+
PG13,PG13
89+
PG14,PG14

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy