-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ethernet bits to Arty A7 board description. #153
Conversation
e7154b5
to
f9795cc
Compare
This depends on #148. |
ec65e86
to
64fb0b2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few magic constants that might be nice to have symbolic names for (e.g. buffer length and addresses) although mostly they are only used once.
* Current interrupt status. Bit 0 is transmit, bit 1 is receive. | ||
* Write one to each bit to clear. | ||
*/ | ||
Interruptstatus = 0x3c, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is repeated. Typo?
auto &macControl = mmio_register<RegisterOffset::MACControl>(); | ||
macControl = 1; | ||
thread_millisecond_wait(167); | ||
mmio_register<RegisterOffset::MDIOControl>() = 0x10; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is 0x10
here?
void mdio_wait_for_ready() | ||
{ | ||
auto &mdioControl = mmio_register<RegisterOffset::MDIOControl>(); | ||
int loops = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dead?
*/ | ||
{adaptor.mac_address_set(macAddress)}; | ||
/** | ||
* Get the MAC address of this adaptor to the default value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Get the MAC address of this adaptor to the default value. | |
* Set the MAC address of this adaptor to the default value. |
64fb0b2
to
6370b91
Compare
This includes a driver for Kunyan's ethernet adaptor.
6370b91
to
07bf9a8
Compare
This includes a driver for Kunyan's ethernet adaptor.