mirror of
https://github.com/apache/nuttx.git
synced 2026-09-09 18:36:37 +00:00
stm32f7 can: fix support for RTR
This commit is contained in:
parent
d655f47d13
commit
648ebc9ea9
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue