aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorin Cooper-Bennun <[email protected]>2024-04-23 12:33:20 +0100
committerTorin Cooper-Bennun <[email protected]>2024-04-23 12:34:02 +0100
commit6ca7e0feab9eb16261adacc8c2327e4d018acb13 (patch)
treee89ffed81af04109306aebf417e2cf8071558ad7
parent846abfae2b8a24715542d57d4e6ea4386607d845 (diff)
stm32: can: fd: fix a couple doc comments
-rw-r--r--embassy-stm32/src/can/fdcan.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/can/fdcan.rs b/embassy-stm32/src/can/fdcan.rs
index 0916f6ac6..0df74a778 100644
--- a/embassy-stm32/src/can/fdcan.rs
+++ b/embassy-stm32/src/can/fdcan.rs
@@ -289,7 +289,7 @@ pub struct Can<'d, T: Instance> {
289} 289}
290 290
291impl<'d, T: Instance> Can<'d, T> { 291impl<'d, T: Instance> Can<'d, T> {
292 /// Get properties 292 /// Get driver properties
293 pub fn properties(&self) -> &Properties<T> { 293 pub fn properties(&self) -> &Properties<T> {
294 &self.properties 294 &self.properties
295 } 295 }
@@ -338,7 +338,7 @@ impl<'d, T: Instance> Can<'d, T> {
338 T::state().rx_mode.read_fd::<T>().await 338 T::state().rx_mode.read_fd::<T>().await
339 } 339 }
340 340
341 /// Split instance into separate Tx(write) and Rx(read) portions 341 /// Split instance into separate portions: Tx(write), Rx(read), common properties
342 pub fn split(self) -> (CanTx<'d, T>, CanRx<'d, T>, Properties<T>) { 342 pub fn split(self) -> (CanTx<'d, T>, CanRx<'d, T>, Properties<T>) {
343 ( 343 (
344 CanTx { 344 CanTx {