fix: update prescaler and other configs to change CAN speed to 250kbps
parent
668462eff5
commit
bd226465f7
|
|
@ -146,15 +146,33 @@ static DL_MCAN_BitTimingParams gMCAN0BitTimes_500 = {
|
|||
.dataSynchJumpWidth = 0,
|
||||
};
|
||||
|
||||
static DL_MCAN_BitTimingParams gMCAN0BitTimes_250 = {
|
||||
//static DL_MCAN_BitTimingParams gMCAN0BitTimes_250 = {
|
||||
// /* Arbitration Baud Rate Pre-scaler. */
|
||||
// .nomRatePrescalar = 0,
|
||||
// /* Arbitration Time segment before sample point. */
|
||||
// .nomTimeSeg1 = 138,
|
||||
// /* Arbitration Time segment after sample point. */
|
||||
// .nomTimeSeg2 = 19,
|
||||
// /* Arbitration (Re)Synchronization Jump Width Range. */
|
||||
// .nomSynchJumpWidth = 19,
|
||||
// /* Data Baud Rate Pre-scaler. */
|
||||
// .dataRatePrescalar = 0,
|
||||
// /* Data Time segment before sample point. */
|
||||
// .dataTimeSeg1 = 0,
|
||||
// /* Data Time segment after sample point. */
|
||||
// .dataTimeSeg2 = 0,
|
||||
// /* Data (Re)Synchronization Jump Width. */
|
||||
// .dataSynchJumpWidth = 0,
|
||||
//};
|
||||
static const DL_MCAN_BitTimingParams gMCAN0BitTimes_250 = {
|
||||
/* Arbitration Baud Rate Pre-scaler. */
|
||||
.nomRatePrescalar = 0,
|
||||
/* Arbitration Time segment before sample point. */
|
||||
.nomTimeSeg1 = 138,
|
||||
.nomTimeSeg1 = 82,
|
||||
/* Arbitration Time segment after sample point. */
|
||||
.nomTimeSeg2 = 19,
|
||||
.nomTimeSeg2 = 11,
|
||||
/* Arbitration (Re)Synchronization Jump Width Range. */
|
||||
.nomSynchJumpWidth = 19,
|
||||
.nomSynchJumpWidth = 11,
|
||||
/* Data Baud Rate Pre-scaler. */
|
||||
.dataRatePrescalar = 0,
|
||||
/* Data Time segment before sample point. */
|
||||
|
|
@ -165,7 +183,6 @@ static DL_MCAN_BitTimingParams gMCAN0BitTimes_250 = {
|
|||
.dataSynchJumpWidth = 0,
|
||||
};
|
||||
|
||||
|
||||
static const DL_MCAN_StdMsgIDFilterElement gMCAN0StdFiltelem1 = {
|
||||
.sfec = 001,
|
||||
.sft = 0x00,
|
||||
|
|
|
|||
Loading…
Reference in New Issue