stm32l4: Correct memorymap and add the existing CAN library

This commit is contained in:
Marek Koza 2019-04-30 20:47:14 +02:00
parent fc8a6aa7a2
commit e50ce6a876
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@
#define I2C2_BASE (PERIPH_BASE_APB1 + 0x5800) #define I2C2_BASE (PERIPH_BASE_APB1 + 0x5800)
#define I2C3_BASE (PERIPH_BASE_APB1 + 0x5c00) #define I2C3_BASE (PERIPH_BASE_APB1 + 0x5c00)
#define CRS_BASE (PERIPH_BASE_APB1 + 0x6000) #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_DEV_FS_BASE (PERIPH_BASE_APB1 + 0x6800)
#define USB_PMA_BASE (PERIPH_BASE_APB1 + 0x6c00) #define USB_PMA_BASE (PERIPH_BASE_APB1 + 0x6c00)
#define POWER_CONTROL_BASE (PERIPH_BASE_APB1 + 0x7000) #define POWER_CONTROL_BASE (PERIPH_BASE_APB1 + 0x7000)

View File

@ -38,7 +38,7 @@ TGT_CFLAGS += $(STANDARD_FLAGS)
ARFLAGS = rcs ARFLAGS = rcs
# Specific objs # 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 # common/shared objs
OBJS += rcc_common_all.o OBJS += rcc_common_all.o