Skip to content

Commit d6f2a06

Browse files
sakumisuRbb666
authored andcommitted
feat(cherryecat): add stm32h7 macro
Signed-off-by: sakumisu <1203593632@qq.com>
1 parent 585086e commit d6f2a06

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

system/CherryECAT/Kconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,31 @@ if PKG_USING_CHERRYECAT
1414
bool "hpmicro"
1515
config PKG_CHERRYECAT_NETDEV_RENESAS
1616
bool "renesas"
17+
config PKG_CHERRYECAT_NETDEV_STM32H7
18+
bool "stm32h7, hal >=1.11.0"
1719
endchoice
1820

21+
if PKG_CHERRYECAT_NETDEV_HPMICRO
22+
choice
23+
prompt "hpmicro eth driver type"
24+
default PKG_CHERRYECAT_HPMICRO_RGMII
25+
config PKG_CHERRYECAT_HPMICRO_RGMII
26+
bool "RGMII"
27+
config PKG_CHERRYECAT_HPMICRO_RMII
28+
bool "RMII"
29+
endchoice
30+
31+
endif
32+
33+
if PKG_CHERRYECAT_NETDEV_STM32H7
34+
config CONFIG_EC_PHY_RESET_PORT
35+
int "stm32 eth phy reset port, from 0 to x, 0 means GPIOA"
36+
default 0
37+
config CONFIG_EC_PHY_RESET_PIN
38+
int "stm32 eth phy reset pin, from 0 to 15"
39+
default 8
40+
endif
41+
1942
config PKG_CHERRYECAT_PATH
2043
string
2144
default "/packages/system/CherryECAT"

0 commit comments

Comments
 (0)