Merge pull request #283 from Lauszus/master

Clarify that the mcp251x uses half of the external OSC clock as the base clock
pull/285/head
Marc Kleine-Budde 2021-03-23 08:11:47 +01:00 committed by GitHub
commit d2f5b3dbe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -362,8 +362,10 @@ static struct calc_bittiming_const can_calc_consts[] = {
.brp_inc = 1, .brp_inc = 1,
}, },
.ref_clk = { .ref_clk = {
{ .clk = 8000000, }, /* The mcp251x uses half of the external OSC clock as the base clock */
{ .clk = 10000000, }, { .clk = 8000000 / 2, .name = "8 MHz OSC" },
{ .clk = 16000000 / 2, .name = "16 MHz OSC" },
{ .clk = 20000000 / 2, .name = "20 MHz OSC" },
}, },
.printf_btr = printf_btr_mcp251x, .printf_btr = printf_btr_mcp251x,
}, { }, {