aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorin Cooper-Bennun <[email protected]>2024-02-28 10:12:22 +0000
committerCorey Schuhen <[email protected]>2024-03-02 10:08:20 +1000
commit9e403fa89aae1d13948fcc15d1cc1f3c709dca88 (patch)
tree705d0db453171d8125c294b792f5755f56e2dc26
parentbefbb2845aebde5aa879bbe6dd0bdb08c277e492 (diff)
stm32: can: fd: rename abort_pending_mailbox, rm pub qualifier
-rw-r--r--embassy-stm32/src/can/fd/peripheral.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-stm32/src/can/fd/peripheral.rs b/embassy-stm32/src/can/fd/peripheral.rs
index 2a183d2e8..3a95b2659 100644
--- a/embassy-stm32/src/can/fd/peripheral.rs
+++ b/embassy-stm32/src/can/fd/peripheral.rs
@@ -170,7 +170,7 @@ impl Registers {
170 } 170 }
171 171
172 #[inline] 172 #[inline]
173 pub fn abort_pending_mailbox_generic<F: embedded_can::Frame>(&self, bufidx: usize) -> Option<F> { 173 fn abort_pending_mailbox<F: embedded_can::Frame>(&self, bufidx: usize) -> Option<F> {
174 if self.abort(bufidx) { 174 if self.abort(bufidx) {
175 let mailbox = self.tx_buffer_element(bufidx); 175 let mailbox = self.tx_buffer_element(bufidx);
176 176
@@ -212,11 +212,11 @@ impl Registers {
212 // Discard the first slot with a lower priority message 212 // Discard the first slot with a lower priority message
213 let id = frame.header().id(); 213 let id = frame.header().id();
214 if self.is_available(0, id) { 214 if self.is_available(0, id) {
215 (0, self.abort_pending_mailbox_generic(0)) 215 (0, self.abort_pending_mailbox(0))
216 } else if self.is_available(1, id) { 216 } else if self.is_available(1, id) {
217 (1, self.abort_pending_mailbox_generic(1)) 217 (1, self.abort_pending_mailbox(1))
218 } else if self.is_available(2, id) { 218 } else if self.is_available(2, id) {
219 (2, self.abort_pending_mailbox_generic(2)) 219 (2, self.abort_pending_mailbox(2))
220 } else { 220 } else {
221 // For now we bail when there is no lower priority slot available 221 // For now we bail when there is no lower priority slot available
222 // Can this lead to priority inversion? 222 // Can this lead to priority inversion?