aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src
diff options
context:
space:
mode:
authorTorin Cooper-Bennun <[email protected]>2024-04-23 12:46:42 +0100
committerTorin Cooper-Bennun <[email protected]>2024-04-23 12:46:42 +0100
commite15fd5895fc375c85880cf7fb846b2652df50c01 (patch)
tree3b1d1e02f69ca4b88424efdccbf10496ebe90069 /embassy-stm32/src
parent521c132e348054e6326e9c9387516b0e98743092 (diff)
stm32: can: fd: Properties: simplify reg accesses
Diffstat (limited to 'embassy-stm32/src')
-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 faf8a1176..6144ba520 100644
--- a/embassy-stm32/src/can/fdcan.rs
+++ b/embassy-stm32/src/can/fdcan.rs
@@ -851,12 +851,12 @@ impl<T: Instance> Properties<T> {
851 851
852 /// Get the CAN RX error counter 852 /// Get the CAN RX error counter
853 pub fn rx_error_count(&self) -> u8 { 853 pub fn rx_error_count(&self) -> u8 {
854 T::registers().regs.ecr().read().rec() 854 T::regs().ecr().read().rec()
855 } 855 }
856 856
857 /// Get the CAN TX error counter 857 /// Get the CAN TX error counter
858 pub fn tx_error_count(&self) -> u8 { 858 pub fn tx_error_count(&self) -> u8 {
859 T::registers().regs.ecr().read().tec() 859 T::regs().ecr().read().tec()
860 } 860 }
861 861
862 /// Get the current bus error mode 862 /// Get the current bus error mode