From 52a6bed24e312a595f5569bab19db67f68cc055a Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 14 Dec 2022 14:15:14 -0500 Subject: canbus: Rename canbus_send() to canhw_send() Rename canbus_send() to canhw_send() and rename canbus_set_filter() to canhw_set_filter(). This makes it more clear where the code should reside. Signed-off-by: Kevin O'Connor --- src/stm32/fdcan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/stm32/fdcan.c') diff --git a/src/stm32/fdcan.c b/src/stm32/fdcan.c index 9017ef85..3b01b482 100644 --- a/src/stm32/fdcan.c +++ b/src/stm32/fdcan.c @@ -101,7 +101,7 @@ struct fdcan_ram_layout { // Transmit a packet int -canbus_send(struct canbus_msg *msg) +canhw_send(struct canbus_msg *msg) { uint32_t txfqs = SOC_CAN->TXFQS; if (txfqs & FDCAN_TXFQS_TFQF) @@ -136,7 +136,7 @@ can_filter(uint32_t index, uint32_t id) // Setup the receive packet filter void -canbus_set_filter(uint32_t id) +canhw_set_filter(uint32_t id) { if (!CONFIG_CANBUS_FILTER) return; @@ -299,7 +299,7 @@ can_init(void) SOC_CAN->CCCR &= ~FDCAN_CCCR_INIT; /*##-2- Configure the CAN Filter #######################################*/ - canbus_set_filter(0); + canhw_set_filter(0); /*##-3- Configure Interrupts #################################*/ armcm_enable_irq(CAN_IRQHandler, CAN_IT0_IRQn, 1); -- cgit v1.2.3-70-g09d2