diff --git a/src/satman/main.rs b/src/satman/main.rs index b05715f3..940947e4 100644 --- a/src/satman/main.rs +++ b/src/satman/main.rs @@ -82,7 +82,7 @@ macro_rules! forward { fn process_aux_packet(_repeaters: &mut [repeater::Repeater], _routing_table: &mut drtio_routing::RoutingTable, _rank: &mut u8, - packet: drtioaux::Packet, timer: GlobalTimer, i2c: I2c) -> Result<(), drtioaux::Error> { + packet: drtioaux::Packet, timer: GlobalTimer, i2c: I2c) -> Result<(), drtioaux::Error> { // In the code below, *_chan_sel_write takes an u8 if there are fewer than 256 channels, // and u16 otherwise; hence the `as _` conversion. match packet { diff --git a/src/satman/repeater.rs b/src/satman/repeater.rs index 33e65e8f..6411d478 100644 --- a/src/satman/repeater.rs +++ b/src/satman/repeater.rs @@ -168,7 +168,7 @@ impl Repeater { } } - fn recv_aux_timeout(&self, timeout: u32, timer: GlobalTimer) -> Result> { + fn recv_aux_timeout(&self, timeout: u32, timer: GlobalTimer) -> Result { let max_time = timer.get_time() + Milliseconds(timeout); loop { if !rep_link_rx_up(self.repno) { @@ -185,7 +185,7 @@ impl Repeater { } } - pub fn aux_forward(&self, request: &drtioaux::Packet, timer: GlobalTimer) -> Result<(), drtioaux::Error> { + pub fn aux_forward(&self, request: &drtioaux::Packet, timer: GlobalTimer) -> Result<(), drtioaux::Error> { if self.state != RepeaterState::Up { return Err(drtioaux::Error::LinkDown); } @@ -195,7 +195,7 @@ impl Repeater { Ok(()) } - pub fn sync_tsc(&self, timer: GlobalTimer) -> Result<(), drtioaux::Error> { + pub fn sync_tsc(&self, timer: GlobalTimer) -> Result<(), drtioaux::Error> { if self.state != RepeaterState::Up { return Ok(()); } @@ -216,7 +216,7 @@ impl Repeater { } } - pub fn set_path(&self, destination: u8, hops: &[u8; drtio_routing::MAX_HOPS], timer: GlobalTimer) -> Result<(), drtioaux::Error> { + pub fn set_path(&self, destination: u8, hops: &[u8; drtio_routing::MAX_HOPS], timer: GlobalTimer) -> Result<(), drtioaux::Error> { if self.state != RepeaterState::Up { return Ok(()); } @@ -232,14 +232,14 @@ impl Repeater { Ok(()) } - pub fn load_routing_table(&self, routing_table: &drtio_routing::RoutingTable, timer: GlobalTimer) -> Result<(), drtioaux::Error> { + pub fn load_routing_table(&self, routing_table: &drtio_routing::RoutingTable, timer: GlobalTimer) -> Result<(), drtioaux::Error> { for i in 0..drtio_routing::DEST_COUNT { self.set_path(i as u8, &routing_table.0[i], timer)?; } Ok(()) } - pub fn set_rank(&self, rank: u8, timer: GlobalTimer) -> Result<(), drtioaux::Error> { + pub fn set_rank(&self, rank: u8, timer: GlobalTimer) -> Result<(), drtioaux::Error> { if self.state != RepeaterState::Up { return Ok(()); } @@ -253,7 +253,7 @@ impl Repeater { Ok(()) } - pub fn rtio_reset(&self, timer: GlobalTimer) -> Result<(), drtioaux::Error> { + pub fn rtio_reset(&self, timer: GlobalTimer) -> Result<(), drtioaux::Error> { let repno = self.repno as usize; unsafe { (csr::DRTIOREP[repno].reset_write)(1); } timer.delay_us(100);