stm32/boards/OLIMEX_E407: Add Ethernet RMII support.

This commit is contained in:
Daniel Gorny 2021-09-07 13:29:40 +02:00 committed by Damien George
parent 97bbc0bb91
commit b71c621f46
3 changed files with 19 additions and 0 deletions

View File

@ -78,3 +78,14 @@
#define MICROPY_HW_USB_FS (1)
#define MICROPY_HW_USB_VBUS_DETECT_PIN (pin_A9)
#define MICROPY_HW_USB_OTG_ID_PIN (pin_A10)
// Ethernet via RMII
#define MICROPY_HW_ETH_MDC (pin_C1)
#define MICROPY_HW_ETH_MDIO (pin_A2)
#define MICROPY_HW_ETH_RMII_REF_CLK (pin_A1)
#define MICROPY_HW_ETH_RMII_CRS_DV (pin_A7)
#define MICROPY_HW_ETH_RMII_RXD0 (pin_C4)
#define MICROPY_HW_ETH_RMII_RXD1 (pin_C5)
#define MICROPY_HW_ETH_RMII_TX_EN (pin_G11)
#define MICROPY_HW_ETH_RMII_TXD0 (pin_G13)
#define MICROPY_HW_ETH_RMII_TXD1 (pin_G14)

View File

@ -4,3 +4,8 @@ AF_FILE = boards/stm32f405_af.csv
LD_FILES = boards/stm32f405.ld boards/common_ifs.ld
TEXT0_ADDR = 0x08000000
TEXT1_ADDR = 0x08020000
# MicroPython settings
MICROPY_PY_LWIP = 1
MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1

View File

@ -84,3 +84,6 @@ PD15,PD15
PA0,PA0
USB_DM,PA11
USB_DP,PA12
PG11,PG11
PG13,PG13
PG14,PG14

1 PC0 PC0
84 PA0 PA0
85 USB_DM PA11
86 USB_DP PA12
87 PG11 PG11
88 PG13 PG13
89 PG14 PG14