Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: STM32L452_Nucleo_ticker
Fork of mbed-dev by
Diff: targets/TARGET_STM/can_api.c
- Revision:
- 170:19eb464bc2be
- Parent:
- 167:e84263d55307
- Child:
- 172:7d866c31b3c5
--- a/targets/TARGET_STM/can_api.c Wed Jul 19 17:31:21 2017 +0100
+++ b/targets/TARGET_STM/can_api.c Thu Aug 03 13:13:39 2017 +0100
@@ -85,8 +85,8 @@
error("Cannot initialize CAN");
}
- // Set initial CAN frequency to 100 kb/s
- if (can_frequency(obj, 100000) != 1) {
+ // Set initial CAN frequency to specified frequency
+ if (can_frequency(obj, hz) != 1) {
error("Can frequency could not be set\n");
}
