atsamx7x-rust icon indicating copy to clipboard operation
atsamx7x-rust copied to clipboard

GMAC API

Open tmplt opened this issue 1 year ago • 3 comments

Copied from an internal Gitlab instance. By @martinmortsell.

tmplt avatar Sep 17 '22 11:09 tmplt

I put some effort into adding configuration options to the new_gmac() method. Now mii/rmii, speed, duplex, and mac can be configured by the user.

The tx/rx buffers are still hardcoded in the HAL, I envision an api similar to the heapless::Vec where buffers are defined through const generics and maybe stored in the Gmac struct.

Interrupt support is still missing.

martinmortsell avatar Sep 23 '22 13:09 martinmortsell