aboutsummaryrefslogtreecommitdiffstats
path: root/src/atsamd/fdcan.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/atsamd/fdcan.c')
-rw-r--r--src/atsamd/fdcan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/atsamd/fdcan.c b/src/atsamd/fdcan.c
index 7c3e6b65..5ad62c0f 100644
--- a/src/atsamd/fdcan.c
+++ b/src/atsamd/fdcan.c
@@ -119,7 +119,8 @@ canhw_send(struct canbus_msg *msg)
txfifo->dlc_section = (msg->dlc & 0x0f) << 16;
txfifo->data[0] = msg->data32[0];
txfifo->data[1] = msg->data32[1];
- barrier();
+ __DMB();
+ CANx->TXBAR.reg;
CANx->TXBAR.reg = ((uint32_t)1 << w_index);
return CANMSG_DATA_LEN(msg);
}