File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
features/netsocket/emac-drivers/TARGET_STM Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " stm32-emac" ,
3
3
"config" : {
4
4
"eth-rxbufnb" : 4 ,
5
- "eth-txbufnb" : 4
5
+ "eth-txbufnb" : 4 ,
6
+ "eth-phyaddr" : {
7
+ "help" : " Configures actual PHY address according to pullup/down status of PHYAD pin(s)" ,
8
+ "value" : 0
9
+ }
6
10
},
7
11
"target_overrides" : {
8
12
"NUCLEO_F207ZG" : {
9
13
"eth-rxbufnb" : 2 ,
10
14
"eth-txbufnb" : 4
15
+ },
16
+ "ARCH_MAX" : {
17
+ "eth-phyaddr" : 1
11
18
}
12
19
}
13
20
}
Original file line number Diff line number Diff line change 43
43
#define THREAD_PRIORITY (osPriorityHigh)
44
44
45
45
#define PHY_TASK_PERIOD_MS 200
46
- #define ETH_ARCH_PHY_ADDRESS ( 0x00 )
46
+ #define ETH_PHY_ADDRESS MBED_CONF_STM32_EMAC_ETH_PHYADDR
47
47
48
48
#define STM_HWADDR_SIZE (6 )
49
49
#define STM_ETH_MTU_SIZE 1500
@@ -282,7 +282,7 @@ bool STM32_EMAC::low_level_init_successful()
282
282
EthHandle.Init .AutoNegotiation = ETH_AUTONEGOTIATION_ENABLE;
283
283
EthHandle.Init .Speed = ETH_SPEED_100M;
284
284
EthHandle.Init .DuplexMode = ETH_MODE_FULLDUPLEX;
285
- EthHandle.Init .PhyAddress = ETH_ARCH_PHY_ADDRESS ;
285
+ EthHandle.Init .PhyAddress = ETH_PHY_ADDRESS ;
286
286
#if (MBED_MAC_ADDRESS_SUM != MBED_MAC_ADDR_INTERFACE)
287
287
MACAddr[0 ] = MBED_MAC_ADDR_0;
288
288
MACAddr[1 ] = MBED_MAC_ADDR_1;
You can’t perform that action at this time.
0 commit comments