mbed-os/libraries/mbed
Bartosz Szczepanski 1d1f7ab133 [STM32F4] Clock and interrupt fixes (#1735)
* [STM32F4] Get PCLK1 clock and set initial CAN frequency

CAN bus opperates on APB1 peripheral clock due to that we need to get PCLK1 freq
in *can_frequency()* function to properly calculate CAN speed and reconfigure
BS1, BS2, SJW bits.

Also to fully communicate with other ST platform we set the initical CAN
frequency to 100kb/s to be able to work with the slowest platform which supports
CAN, which is NUCLEO_F303K8 (APB1 is 32MHz).

Change-Id: I10af3aa8d715dd61c9d1b216ef813193449fecbd

* [STM32F4] Fix for CAN2 interrupt index

CAN2 interrupt index was wrong leading to not properly registering interrupt.
Having this fix allow us to pass MBED_30 test.

Change-Id: I33f9ca7c81286f7746a8f8352619e213bdf9756a
2016-05-16 11:55:59 +01:00
..
api mbed lib revision - 120 2016-05-10 10:21:13 -05:00
common CircularBuffer::push() is critical section 2016-04-25 17:36:53 +09:00
hal i2c - fix return value description i2c_byte_write() (#1694) 2016-04-28 19:06:38 -05:00
targets [STM32F4] Clock and interrupt fixes (#1735) 2016-05-16 11:55:59 +01:00
.yotta_ignore ignore target files not supported by the yotta module, to minimise published module size 2015-09-09 09:30:31 +01:00
CMakeLists.txt ensure startup code is included when building for armcc 2015-06-26 18:42:12 +01:00
module.json use mbed-classic as the module name; use YOTTA_GLOBAL_INCLUDE_DIRS 2015-06-23 16:29:04 +01:00