Skip to content

Commit 4a4cb7f

Browse files
committed
[B96B_F446VE] Add more details about the timing_pts table
1 parent 3df28ea commit 4a4cb7f

File tree

1 file changed

+4
-2
lines changed
  • libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32F4

1 file changed

+4
-2
lines changed

libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32F4/can_api.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ void can_free(can_t *obj)
105105
}
106106
}
107107

108-
// This table has the sampling points as close to 75% as possible. The first
109-
// value is TSEG1, the second TSEG2.
108+
// The following table is used to program bit_timing. It is an adjustment of the sample
109+
// point by synchronizing on the start-bit edge and resynchronizing on the following edges.
110+
// This table has the sampling points as close to 75% as possible (most commonly used).
111+
// The first value is TSEG1, the second TSEG2.
110112
static const int timing_pts[23][2] = {
111113
{0x0, 0x0}, // 2, 50%
112114
{0x1, 0x0}, // 3, 67%

0 commit comments

Comments
 (0)