|
|
2 месяцев назад | |
|---|---|---|
| .. | ||
| .settings | 3 месяцев назад | |
| board | 2 месяцев назад | |
| figures | 3 месяцев назад | |
| packages | 2 месяцев назад | |
| rzn | 3 месяцев назад | |
| rzn_cfg | 3 месяцев назад | |
| rzn_gen | 2 месяцев назад | |
| script | 3 месяцев назад | |
| src | 3 месяцев назад | |
| .api_xml | 3 месяцев назад | |
| .config | 3 месяцев назад | |
| .cproject | 3 месяцев назад | |
| .gitignore | 3 месяцев назад | |
| .project | 3 месяцев назад | |
| .secure_azone | 3 месяцев назад | |
| .secure_rzone | 3 месяцев назад | |
| .secure_xml | 3 месяцев назад | |
| Kconfig | 3 месяцев назад | |
| README.md | 3 месяцев назад | |
| README_zh.md | 3 месяцев назад | |
| SConscript | 3 месяцев назад | |
| SConstruct | 3 месяцев назад | |
| buildinfo.ipcf | 3 месяцев назад | |
| buildinfo.json | 3 месяцев назад | |
| configuration.xml | 2 месяцев назад | |
| envsetup.sh | 3 месяцев назад | |
| memory_regions.ld | 3 месяцев назад | |
| mklinks.bat | 3 месяцев назад | |
| mklinks.sh | 3 месяцев назад | |
| ozone_scons.jdebug | 3 месяцев назад | |
| project.ewd | 3 месяцев назад | |
| project.ewp | 2 месяцев назад | |
| project.ewt | 2 месяцев назад | |
| project.eww | 3 месяцев назад | |
| rtconfig.h | 3 месяцев назад | |
| rtconfig.py | 3 месяцев назад | |
| rzn_cfg.txt | 2 месяцев назад | |
| template.ewd | 3 месяцев назад | |
| template.ewp | 3 месяцев назад | |
| template.eww | 3 месяцев назад | |
English | 中文
This project provides cherryecat demo.
To use Ethernet, connect the development board to any one of the three network ports using an Ethernet cable, and the other end should be connected to a network switch that has internet access.
Open the project configuration file configuration.xml and add the r_gamc stack:
Next, click on g_ether0 Ethernet, and configure the interrupt callback function to user_ether0_callback:
Now configure the PHY settings. Select g_ether_phy0, set the common configuration to "User Own Target", change the PHY LSI address to 1 (refer to the schematic for the exact address), and set the PHY initialization callback function to ether_phy_targets_initialize_rtl8211_rgmii(). Also, set the MDIO to GMAC.
Next, configure g_ether_selector0, set the Ethernet mode to "Switch Mode", set the PHY link to "Default Active-Low", and choose "RGMII" for the PHY interface mode.
Configure the Ethernet pin parameters and select the operating mode to RGMII:
Finally, configure ETHER_GMAC:
Return to the Studio project, and configure RT-Thread Settings. Click on "Hardware", find the chip device driver, and enable Ethernet: