1
0
Fork 0

eth tx: set net_ctrl.start_tx on sending

This commit is contained in:
Astro 2019-06-25 01:32:43 +02:00
parent 374686fd3e
commit e6827a81f3
1 changed files with 6 additions and 3 deletions

View File

@ -97,10 +97,13 @@ pub struct PktRef<'a> {
impl<'a> Drop for PktRef<'a> {
fn drop(&mut self) {
self.entry.word1.modify(|_, w| w.used(false));
if ! self.regs.tx_status.read().tx_go() {
println!("tx start_tx");
self.regs.net_ctrl.modify(|_, w|
w.tx_en(true)
w.start_tx(true)
);
}
}
}
impl<'a> Deref for PktRef<'a> {