Browse Source

Constand value for resetting CAN_TDTxR was too big. Fixed.

pull/2/merge
Piotr Esden-Tempski 13 years ago
parent
commit
26de4cb9d6
  1. 2
      lib/stm32/f1/can.c

2
lib/stm32/f1/can.c

@ -228,7 +228,7 @@ int can_transmit(u32 canport, u32 id, bool ext, bool rtr, u8 length, u8 *data)
CAN_TIxR(canport, mailbox) |= CAN_TIxR_RTR; /* Set */
/* Set the DLC. */
CAN_TDTxR(canport, mailbox) &= 0xFFFFFFFF0;
CAN_TDTxR(canport, mailbox) &= 0xFFFFFFF0;
CAN_TDTxR(canport, mailbox) |= length & CAN_TDTxR_DLC_MASK;
/* Set the data. */

Loading…
Cancel
Save