Can someone point me to the Teensy 4.1 Ethernet driver?

madmyers

Active member
I'm looking into running Ethernet directly but I cannot find the right interfaces.

I've looked at FNET. I've looked at NativeEthernet. But I don't see anything like a Linux net_device.

I did find

Code:
fnet_return_t  fnet_eth_phy_write(fnet_netif_desc_t netif_desc, fnet_uint32_t reg_addr, fnet_uint16_t reg_data);

in FNET but never found an implementation.

Thanks
 
Shawn's QNEthernet library is probably the best today. Here's a direct link to the driver code:


This example I wrote when developing the Teensy 4.1 hardware (which is based on earlier experiments with Teensy 3.6) is the simplest, but it only does minimal ARP and ICMP ping to test the hardware can send and receive packets:

 
You could also use the EthernetFrame interface if you just want to work with raw frames. No need to dive into the driver code for this.
 
Back
Top