mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-31 13:00:49 +00:00
Add MG_TCPIP_PHY_CONF
This commit is contained in:
1 parent
44b3d60692
commit
ffeff3ab69
3 files changed
+18
-8
No files matched your search
@@ -28,6 +28,10 @@ struct mg_tcpip_driver_stm32h_data {
|
||||
uint8_t phy_conf; // PHY config
|
||||
};
|
||||
|
||||
#ifndef MG_TCPIP_PHY_CONF
|
||||
#define MG_TCPIP_PHY_CONF MG_PHY_CLOCKS_MAC
|
||||
#endif
|
||||
|
||||
#ifndef MG_TCPIP_PHY_ADDR
|
||||
#define MG_TCPIP_PHY_ADDR 0
|
||||
#endif
|
||||
@@ -42,6 +46,7 @@ struct mg_tcpip_driver_stm32h_data {
|
||||
static struct mg_tcpip_if mif_; \
|
||||
driver_data_.mdc_cr = MG_DRIVER_MDC_CR; \
|
||||
driver_data_.phy_addr = MG_TCPIP_PHY_ADDR; \
|
||||
driver_data_.phy_conf = MG_TCPIP_PHY_CONF; \
|
||||
mif_.ip = MG_TCPIP_IP; \
|
||||
mif_.mask = MG_TCPIP_MASK; \
|
||||
mif_.gw = MG_TCPIP_GW; \
|
||||
|
||||
Reference in new issue
Block a user