mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
stm32f7 can: fix support for RTR
This commit is contained in:
committed by
David Sidrane
parent
d655f47d13
commit
648ebc9ea9
@@ -1290,9 +1290,10 @@ static int stm32can_send(FAR struct can_dev_s *dev,
|
||||
#else
|
||||
regval |= ( ( (uint32_t) msg->cm_hdr.ch_id << CAN_TIR_STID_SHIFT) & CAN_TIR_STID_MASK );
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CAN_USE_RTR
|
||||
regval |= (msg->cm_hdr.ch_rtr ? CAN_TIR_RTR : 0);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
stm32can_putreg(priv, STM32_CAN_TIR_OFFSET(txmb), regval);
|
||||
|
||||
Reference in New Issue
Block a user