From d696e2c264bbfdb24a76a945c2c4c58e1fbd1ee7 Mon Sep 17 00:00:00 2001 From: Guillaume Revaillot Date: Wed, 25 Sep 2019 15:08:58 +0200 Subject: [PATCH] stm32g0: add device electronic signature offsets and build desig. --- include/libopencm3/stm32/g0/memorymap.h | 7 +++++++ lib/stm32/g0/Makefile | 1 + 2 files changed, 8 insertions(+) diff --git a/include/libopencm3/stm32/g0/memorymap.h b/include/libopencm3/stm32/g0/memorymap.h index d6069ccc..ebe342b7 100644 --- a/include/libopencm3/stm32/g0/memorymap.h +++ b/include/libopencm3/stm32/g0/memorymap.h @@ -80,6 +80,13 @@ #define GPIO_PORT_E_BASE (IOPORT_BASE + 0x01000) #define GPIO_PORT_F_BASE (IOPORT_BASE + 0x01400) +/* Device Electronic Signature */ +#define DESIG_FLASH_SIZE_BASE (0x1FFF75E0) +#define DESIG_UNIQUE_ID_BASE (0x1FFF7590) +#define DESIG_UNIQUE_ID0 MMIO32(DESIG_UNIQUE_ID_BASE) +#define DESIG_UNIQUE_ID1 MMIO32(DESIG_UNIQUE_ID_BASE + 4) +#define DESIG_UNIQUE_ID2 MMIO32(DESIG_UNIQUE_ID_BASE + 8) + /* ST provided factory calibration values @ 3.0V */ #define ST_VREFINT_CAL MMIO16((INFO_BASE + 0xAA)) #define ST_TSENSE_CAL1_30C MMIO16((INFO_BASE + 0xA8)) diff --git a/lib/stm32/g0/Makefile b/lib/stm32/g0/Makefile index 8bd5efc3..b302aeea 100644 --- a/lib/stm32/g0/Makefile +++ b/lib/stm32/g0/Makefile @@ -35,6 +35,7 @@ TGT_CFLAGS += $(STANDARD_FLAGS) ARFLAGS = rcs OBJS += adc.o adc_common_v2.o OBJS += crc_common_all.o +OBJS += desig_common_all.o desig_common_v1.o OBJS += dma_common_l1f013.o OBJS += dmamux.o OBJS += exti_common_all.o exti_common_v2.o