forked from M-Labs/zynq-rs
eth tx: set net_ctrl.start_tx on sending
This commit is contained in:
parent
374686fd3e
commit
e6827a81f3
|
@ -97,9 +97,12 @@ pub struct PktRef<'a> {
|
||||||
impl<'a> Drop for PktRef<'a> {
|
impl<'a> Drop for PktRef<'a> {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
self.entry.word1.modify(|_, w| w.used(false));
|
self.entry.word1.modify(|_, w| w.used(false));
|
||||||
self.regs.net_ctrl.modify(|_, w|
|
if ! self.regs.tx_status.read().tx_go() {
|
||||||
w.tx_en(true)
|
println!("tx start_tx");
|
||||||
);
|
self.regs.net_ctrl.modify(|_, w|
|
||||||
|
w.start_tx(true)
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue