diff --git a/include/libopencm3/stm32/l4/memorymap.h b/include/libopencm3/stm32/l4/memorymap.h index d8e12e53..40567a34 100644 --- a/include/libopencm3/stm32/l4/memorymap.h +++ b/include/libopencm3/stm32/l4/memorymap.h @@ -57,7 +57,7 @@ #define I2C2_BASE (PERIPH_BASE_APB1 + 0x5800) #define I2C3_BASE (PERIPH_BASE_APB1 + 0x5c00) #define CRS_BASE (PERIPH_BASE_APB1 + 0x6000) -#define CAN1_BASE (PERIPH_BASE_APB1 + 0x6400) +#define BX_CAN1_BASE (PERIPH_BASE_APB1 + 0x6400) #define USB_DEV_FS_BASE (PERIPH_BASE_APB1 + 0x6800) #define USB_PMA_BASE (PERIPH_BASE_APB1 + 0x6c00) #define POWER_CONTROL_BASE (PERIPH_BASE_APB1 + 0x7000) diff --git a/lib/stm32/l4/Makefile b/lib/stm32/l4/Makefile index a2748535..e0bed7c5 100644 --- a/lib/stm32/l4/Makefile +++ b/lib/stm32/l4/Makefile @@ -38,7 +38,7 @@ TGT_CFLAGS += $(STANDARD_FLAGS) ARFLAGS = rcs # Specific objs -OBJS = adc.o flash.o pwr.o rcc.o +OBJS = adc.o flash.o pwr.o rcc.o can.o # common/shared objs OBJS += rcc_common_all.o