GMAC Driver
RT-Thread supports the IwIP TCP/IP protocol stack and allows network programming on it. In AMP SDK, GMAC1 is moved to the RTOS side by default while GMAC drivers are ported to RT-Thread. Therefore, the programming of network applications can be done on RT-Thread of JH-7110, and it can also be used as a real-time network card to run a small EtherCAT master station.
As shown in the figure below, when RT-Thread starts, it initializes GMAC and registers
the GMAC driver with the IwIP TCP/IP protocol stack. DHCP function is enabled by
default, and the IP address is successfully obtained from the DHCP network. GMAC can
work normally.
At the same time, it can access to the external network and check the network port
status, as shown in the following figure: