atsamd: Fixes for samc21 and compiler optimizations (#6198)
Signed-off-by: Luke Vuksta <wulfstawulfsta@gmail.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user