Cast PERIPH_BASE to unsigned otherwise certain operations result in build problems (overflow signed type).

This commit is contained in:
Daniel O'Connor 2012-03-22 20:02:26 +10:30 committed by Piotr Esden-Tempski
parent f76e99c98d
commit 5a463f03e1

View File

@ -25,7 +25,7 @@
/* --- STM32 specific peripheral definitions ------------------------------- */ /* --- STM32 specific peripheral definitions ------------------------------- */
/* Memory map for all busses */ /* Memory map for all busses */
#define PERIPH_BASE 0x40000000 #define PERIPH_BASE ((u32)0x40000000)
#define PERIPH_BASE_APB1 (PERIPH_BASE + 0x00000) #define PERIPH_BASE_APB1 (PERIPH_BASE + 0x00000)
#define PERIPH_BASE_APB2 (PERIPH_BASE + 0x10000) #define PERIPH_BASE_APB2 (PERIPH_BASE + 0x10000)
#define PERIPH_BASE_AHB (PERIPH_BASE + 0x18000) #define PERIPH_BASE_AHB (PERIPH_BASE + 0x18000)