We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4f156de + 9cd4854 commit 102d2f8Copy full SHA for 102d2f8
targets/TARGET_STM/can_api.c
@@ -333,9 +333,9 @@ int can_frequency(can_t *obj, int f)
333
334
uint32_t nominalPrescaler = 1;
335
// !When the sample point should be lower than 50%, this must be changed to
336
- // !IS_FDCAN_DATA_TSEG2(ntq/nominalPrescaler), since
+ // !IS_FDCAN_NOMINAL_TSEG2(ntq/nominalPrescaler), since
337
// NTSEG2 and SJW max values are lower. For now the sample point is fix @75%
338
- while (!IS_FDCAN_DATA_TSEG1(ntq / nominalPrescaler)) {
+ while (!IS_FDCAN_NOMINAL_TSEG1(ntq / nominalPrescaler)) {
339
nominalPrescaler ++;
340
if (!IS_FDCAN_NOMINAL_PRESCALER(nominalPrescaler)) {
341
error("Could not determine good nominalPrescaler. Bad clock value\n");
0 commit comments