Add CAN support for F2 and F4 series.

All stm32 series currently released share the same bxCAN hardware, so share can.c among all the families.
This commit is contained in:
Thomas Daede 2012-10-28 02:50:46 -05:00
parent e55a9e3875
commit 1bb0e9b970

View File

@ -18,7 +18,16 @@
*/
#include <libopencm3/stm32/can.h>
#include <libopencm3/stm32/f1/rcc.h>
#if defined(STM32F1)
# include <libopencm3/stm32/f1/rcc.h>
#elif defined(STM32F2)
# include <libopencm3/stm32/f2/rcc.h>
#elif defined(STM32F4)
# include <libopencm3/stm32/f4/rcc.h>
#else
# error "stm32 family not defined."
#endif
void can_reset(u32 canport)
{