aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel O'Connor2012-03-22 20:02:26 +1030
committerPiotr Esden-Tempski2012-03-22 15:41:43 -0700
commit5a463f03e111506a28a8907e77cc4a13eaea1397 (patch)
tree8f6b6823eeec568803192ee5a8eb2a630b5952f0
parentf76e99c98d5ed2e9bb3d4f4aa77abb4332980979 (diff)
Cast PERIPH_BASE to unsigned otherwise certain operations result in build problems (overflow signed type).
-rw-r--r--include/libopencm3/stm32/f1/memorymap.h2
1 files changed, 1 insertions, 1 deletions
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)