Skip to content

Fix issue #13023, CAN constructor ignores passed speed. #13114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 27, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions targets/TARGET_STM/can_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ void can_init_freq(can_t *obj, PinName rd, PinName td, int hz)

const can_pinmap_t static_pinmap = {peripheral, rd, function_rd, td, function_td};

CAN_INIT_FREQ_DIRECT(obj, &static_pinmap, 100000);
CAN_INIT_FREQ_DIRECT(obj, &static_pinmap, hz);
}


Expand Down Expand Up @@ -692,7 +692,7 @@ void can_init_freq(can_t *obj, PinName rd, PinName td, int hz)

const can_pinmap_t static_pinmap = {peripheral, rd, function_rd, td, function_td};

CAN_INIT_FREQ_DIRECT(obj, &static_pinmap, 100000);
CAN_INIT_FREQ_DIRECT(obj, &static_pinmap, hz);
}

void can_irq_init(can_t *obj, can_irq_handler handler, uint32_t id)
Expand Down