drivers: can: stm32: remove useless mcr setting
Disabling the time-triggered communication mode (TTCM) is done twice in the setting of the master control register (MCR). So, let's remove the second. Signed-off-by: Dario Binacchi <dariobin@libero.it>
This commit is contained in:
parent
3aa48613b1
commit
b1097df26e
1 changed files with 2 additions and 2 deletions
|
@ -473,8 +473,8 @@ static int can_stm32_init(const struct device *dev)
|
|||
|
||||
/* Set TX priority to chronological order */
|
||||
can->MCR |= CAN_MCR_TXFP;
|
||||
can->MCR &= ~CAN_MCR_TTCM & ~CAN_MCR_TTCM & ~CAN_MCR_ABOM &
|
||||
~CAN_MCR_AWUM & ~CAN_MCR_NART & ~CAN_MCR_RFLM;
|
||||
can->MCR &= ~CAN_MCR_TTCM & ~CAN_MCR_ABOM & ~CAN_MCR_AWUM &
|
||||
~CAN_MCR_NART & ~CAN_MCR_RFLM;
|
||||
#ifdef CONFIG_CAN_RX_TIMESTAMP
|
||||
can->MCR |= CAN_MCR_TTCM;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue