diff --git a/libraries/AP_HAL_ChibiOS/hwdef/CubeRedPrimary/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/CubeRedPrimary/defaults.parm index 1e5d44378d..6a120ccd61 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/CubeRedPrimary/defaults.parm +++ b/libraries/AP_HAL_ChibiOS/hwdef/CubeRedPrimary/defaults.parm @@ -7,3 +7,10 @@ SERIAL5_BAUD 57 SERIAL5_PROTOCOL 1 EK2_PRIMARY 1 EK3_PRIMARY 1 + +# Networking +# Refer to https://maclookup.app/vendors/cubepilot-pty-ltd +# A8-B0-28-??-??-?? where the ?? is the lower 3 bytes from the STM32 UUID +NET_MACADDR0 168 # 0xA8 +NET_MACADDR1 176 # 0xB0 +NET_MACADDR2 40 # 0x28 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/kha_eth/defaults.parm b/libraries/AP_HAL_ChibiOS/hwdef/kha_eth/defaults.parm new file mode 100644 index 0000000000..bfcb47fd22 --- /dev/null +++ b/libraries/AP_HAL_ChibiOS/hwdef/kha_eth/defaults.parm @@ -0,0 +1,13 @@ +SERIAL1_OPTIONS 8 + +NET_ENABLE 1 +NET_DHCP 0 +NET_IPADDR0 172 +NET_IPADDR1 20 +NET_IPADDR2 13 +NET_IPADDR3 14 +NET_NETMASK 24 +NET_GWADDR0 172 +NET_GWADDR1 20 +NET_GWADDR2 13 +NET_GWADDR3 1 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/kha_eth/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/kha_eth/hwdef.dat index 1c85f10b61..65d6a0e17e 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/kha_eth/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/kha_eth/hwdef.dat @@ -104,14 +104,6 @@ define BOARD_PHY_RMII ################### -# Refer to https://maclookup.app/vendors/cubepilot-pty-ltd -# A8-B0-28-??-??-?? where the ?? is the lower 3 bytes from the STM32 UUID -define AP_NETWORKING_DEFAULT_MAC_ADDR0 0xA8 -define AP_NETWORKING_DEFAULT_MAC_ADDR1 0xB0 -define AP_NETWORKING_DEFAULT_MAC_ADDR2 0x28 - -################### - #Communications and debug # use DNA define HAL_CAN_DEFAULT_NODE_ID 0