drivers: can: mcux: flexcan: can_set_mode supports can_mode_3_samples
In case CAN-FD mode is not enabled the mcux flexcan driver supports CAN_MODE_3_SAMPLES. This has been removed inadvertently while adding can-fd support. Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
This commit is contained in:
parent
1b3d1e01de
commit
8009ccce43
1 changed files with 1 additions and 1 deletions
|
@ -431,7 +431,7 @@ static int mcux_flexcan_stop(const struct device *dev)
|
|||
|
||||
static int mcux_flexcan_set_mode(const struct device *dev, can_mode_t mode)
|
||||
{
|
||||
can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY;
|
||||
can_mode_t supported = CAN_MODE_LOOPBACK | CAN_MODE_LISTENONLY | CAN_MODE_3_SAMPLES;
|
||||
const struct mcux_flexcan_config *config = dev->config;
|
||||
struct mcux_flexcan_data *data = dev->data;
|
||||
uint32_t ctrl1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue