From 5a463f03e111506a28a8907e77cc4a13eaea1397 Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Thu, 22 Mar 2012 20:02:26 +1030 Subject: Cast PERIPH_BASE to unsigned otherwise certain operations result in build problems (overflow signed type). --- include/libopencm3/stm32/f1/memorymap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/libopencm3/stm32') diff --git a/include/libopencm3/stm32/f1/memorymap.h b/include/libopencm3/stm32/f1/memorymap.h index d2c3651..f8528d4 100644 --- a/include/libopencm3/stm32/f1/memorymap.h +++ b/include/libopencm3/stm32/f1/memorymap.h @@ -25,7 +25,7 @@ /* --- STM32 specific peripheral definitions ------------------------------- */ /* Memory map for all busses */ -#define PERIPH_BASE 0x40000000 +#define PERIPH_BASE ((u32)0x40000000) #define PERIPH_BASE_APB1 (PERIPH_BASE + 0x00000) #define PERIPH_BASE_APB2 (PERIPH_BASE + 0x10000) #define PERIPH_BASE_AHB (PERIPH_BASE + 0x18000) -- cgit v1.2.3