Cast PERIPH_BASE to unsigned otherwise certain operations result in build problems (overflow signed type).
This commit is contained in:
parent
f76e99c98d
commit
5a463f03e1
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user