aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32')
-rw-r--r--src/stm32/can.c6
-rw-r--r--src/stm32/fdcan.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/stm32/can.c b/src/stm32/can.c
index 665338ad..9167d0d8 100644
--- a/src/stm32/can.c
+++ b/src/stm32/can.c
@@ -92,7 +92,7 @@
// Transmit a packet
int
-canbus_send(struct canbus_msg *msg)
+canhw_send(struct canbus_msg *msg)
{
uint32_t tsr = SOC_CAN->TSR;
if (!(tsr & (CAN_TSR_TME0|CAN_TSR_TME1|CAN_TSR_TME2))) {
@@ -129,7 +129,7 @@ canbus_send(struct canbus_msg *msg)
// Setup the receive packet filter
void
-canbus_set_filter(uint32_t id)
+canhw_set_filter(uint32_t id)
{
/* Select the start slave bank */
SOC_CAN->FMR |= CAN_FMR_FINIT;
@@ -268,7 +268,7 @@ can_init(void)
;
/*##-2- Configure the CAN Filter #######################################*/
- canbus_set_filter(0);
+ canhw_set_filter(0);
/*##-3- Configure Interrupts #################################*/
armcm_enable_irq(CAN_IRQHandler, CAN_RX0_IRQn, 0);
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);