stm32f3: include CAN

This commit is contained in:
Jonathan Challinger
2016-10-11 15:57:30 -07:00
committed by Karl Palsson
parent d964dcfca4
commit 7f8b32efed
4 changed files with 7 additions and 3 deletions

View File

@@ -41,6 +41,8 @@ LGPL License Terms @ref lgpl_license
# include <libopencm3/stm32/f1/rcc.h>
#elif defined(STM32F2)
# include <libopencm3/stm32/f2/rcc.h>
#elif defined(STM32F3)
# include <libopencm3/stm32/f3/rcc.h>
#elif defined(STM32F4)
# include <libopencm3/stm32/f4/rcc.h>
#else
@@ -75,8 +77,10 @@ void can_reset(uint32_t canport)
rcc_peripheral_reset(&RCC_APB1RSTR, RCC_APB1RSTR_CAN1RST);
rcc_peripheral_clear_reset(&RCC_APB1RSTR, RCC_APB1RSTR_CAN1RST);
} else {
#if defined(BX_CAN2_BASE)
rcc_peripheral_reset(&RCC_APB1RSTR, RCC_APB1RSTR_CAN2RST);
rcc_peripheral_clear_reset(&RCC_APB1RSTR, RCC_APB1RSTR_CAN2RST);
#endif
}
}

View File

@@ -36,7 +36,7 @@ TGT_CFLAGS += $(DEBUG_FLAGS)
ARFLAGS = rcs
OBJS = rcc.o adc.o i2c.o usart.o dma.o flash.o desig.o
OBJS = rcc.o adc.o can.o i2c.o usart.o dma.o flash.o desig.o
OBJS += gpio_common_all.o gpio_common_f0234.o \
dac_common_all.o crc_common_all.o \