diff --git a/targets/TARGET_STM/can_api.c b/targets/TARGET_STM/can_api.c index 4271ee3f092..4f94ef07dca 100644 --- a/targets/TARGET_STM/can_api.c +++ b/targets/TARGET_STM/can_api.c @@ -826,29 +826,29 @@ void can_free(can_t *obj) // This table has the sampling points as close to 75% as possible (most commonly used). // The first value is TSEG1, the second TSEG2. static const int timing_pts[23][2] = { - {0x0, 0x0}, // 2, 50% - {0x1, 0x0}, // 3, 67% - {0x2, 0x0}, // 4, 75% - {0x3, 0x0}, // 5, 80% - {0x3, 0x1}, // 6, 67% - {0x4, 0x1}, // 7, 71% - {0x5, 0x1}, // 8, 75% - {0x6, 0x1}, // 9, 78% - {0x6, 0x2}, // 10, 70% - {0x7, 0x2}, // 11, 73% - {0x8, 0x2}, // 12, 75% - {0x9, 0x2}, // 13, 77% - {0x9, 0x3}, // 14, 71% - {0xA, 0x3}, // 15, 73% - {0xB, 0x3}, // 16, 75% - {0xC, 0x3}, // 17, 76% - {0xD, 0x3}, // 18, 78% - {0xD, 0x4}, // 19, 74% - {0xE, 0x4}, // 20, 75% - {0xF, 0x4}, // 21, 76% - {0xF, 0x5}, // 22, 73% - {0xF, 0x6}, // 23, 70% - {0xF, 0x7}, // 24, 67% + {0x0, 0x0}, // 2, 67% + {0x1, 0x0}, // 3, 75% + {0x2, 0x0}, // 4, 80% + {0x2, 0x1}, // 5, 67% + {0x3, 0x1}, // 6, 71% + {0x4, 0x1}, // 7, 75% + {0x4, 0x2}, // 8, 67% + {0x5, 0x2}, // 9, 70% + {0x6, 0x2}, // 10, 73% + {0x7, 0x2}, // 11, 75% + {0x7, 0x3}, // 12, 69% + {0x8, 0x3}, // 13, 71% + {0x9, 0x3}, // 14, 73% + {0xA, 0x3}, // 15, 75% + {0xA, 0x4}, // 16, 71% + {0xB, 0x4}, // 17, 72% + {0xC, 0x4}, // 18, 74% + {0xD, 0x4}, // 19, 75% + {0xD, 0x5}, // 20, 71% + {0xE, 0x5}, // 21, 73% + {0xF, 0x5}, // 22, 74% + {0xF, 0x6}, // 23, 71% + {0xF, 0x7}, // 24, 68% }; static unsigned int can_speed(unsigned int pclk, unsigned int cclk, unsigned char psjw)