Use type suffix to avoid warnings
When compiling with all warnings enabled, some defines can lead to warning due to missing unsigned type suffix: warning: integer overflow in expression [-Woverflow] This fix should not affected behavior at all, since calculation with such overflows lead to the same actual address when writing to that location. However, it makes the warning disappear and also defines the right data type for a memory location.
This commit is contained in:
committed by
Frantisek Burian
parent
0af6d06eda
commit
7681597e42
@@ -25,9 +25,9 @@
|
||||
/* --- LPC17XX specific peripheral definitions ----------------------------- */
|
||||
|
||||
/* Memory map for all busses */
|
||||
#define PERIPH_BASE_APB0 0x40000000
|
||||
#define PERIPH_BASE_APB1 0x40080000
|
||||
#define PERIPH_BASE_AHB 0x20000000
|
||||
#define PERIPH_BASE_APB0 (0x40000000U)
|
||||
#define PERIPH_BASE_APB1 (0x40080000U)
|
||||
#define PERIPH_BASE_AHB (0x20000000U)
|
||||
|
||||
/* Register boundary addresses */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user