Browse Source

stm32l4: Correct memorymap and add the existing CAN library

pull/1042/head
Marek Koza 6 years ago
parent
commit
e50ce6a876
  1. 2
      include/libopencm3/stm32/l4/memorymap.h
  2. 2
      lib/stm32/l4/Makefile

2
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)

2
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

Loading…
Cancel
Save