to do soon
This commit is contained in:
@@ -232,6 +232,15 @@ async fn main(spawner: Spawner) -> ! {
|
||||
Output::new_for_emio(gpio_pins.emio.take(7).unwrap(), PinState::Low),
|
||||
];
|
||||
loop {
|
||||
// TODO: We have to check our own link state boolean/atomic here instead of the stack
|
||||
// link. We have to periodically monitor the phy link state, and update the atomic from
|
||||
// that value.
|
||||
//
|
||||
// If the link goes from up to down, we update the atomic and have to periodically check
|
||||
// whether the link is up again.
|
||||
//
|
||||
// If it does from down to up, wait for auto-negotiation to complete, and update the
|
||||
// atomic from that value.
|
||||
if !stack.is_link_up() {
|
||||
loop {
|
||||
let config_up_fut = stack.wait_config_up();
|
||||
|
||||
Reference in New Issue
Block a user