Hello,
In the m4 CAN example for imx8qm, the baudrate is hardcoded 1000, I need to change it to 500.
Can you tell me where I can check the clock source for the CAN? so that I can change the baudrate.
/* The CAN clock prescaler = CAN source clock/(baud rate * quantum), and the prescaler must be an integer.
The quantum default value is set to 10=(3+2+1)+4, because for most platforms the CAN clock frequency is
a multiple of 10. e.g. 120M CAN source clock/(1M baud rate * 10) is an integer. If the CAN clock frequency
is not a multiple of 10, users need to set SET_CAN_QUANTUM and define the PSEG1/PSEG2/PROPSEG (classical CAN)
and FPSEG1/FPSEG2/FPROPSEG (CANFD) vaule. Or can set USE_IMPROVED_TIMING_CONFIG macro to use driver api to
calculates the improved timing values. */
#define SET_CAN_QUANTUM 1
#define PSEG1 6
#define PSEG2 4
#define PROPSEG 6
#define FPSEG1 6
#define FPSEG2 4
#define FPROPSEG 7