Skip to content

Commit 17ff61e

Browse files
committed
stm32/fdcan: Disable TDC
1 parent 63dad4a commit 17ff61e

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/platform/stm32/stm32_fdcan.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,12 +410,11 @@ stm32_fdcan_init(fdcan_t *fc, const char *name,
410410
return err;
411411

412412
// TDCO: SSP offset in CAN clock cycles = sample point position
413-
const int tdco = (1 + data.t1) * data.prescaler;
414-
415-
reg_wr(fc->reg_base + FDCAN_TDCR, tdco << 8);
413+
// const int tdco = (1 + data.t1) * data.prescaler;
414+
// reg_wr(fc->reg_base + FDCAN_TDCR, tdco << 8);
416415

417416
reg_wr(fc->reg_base + FDCAN_DBTP,
418-
(1 << 23) | // TDC: Transceiver Delay Compensation
417+
// (1 << 23) | // TDC: Transceiver Delay Compensation
419418
((data.prescaler - 1) << 16) |
420419
((data.t1 - 1) << 8) |
421420
((data.t2 - 1) << 4) |

0 commit comments

Comments
 (0)