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
@@ -31,13 +31,13 @@
|
||||
* there are discrepancies. */
|
||||
#include <libopencm3/cm3/memorymap.h>
|
||||
|
||||
#define CODE_BASE 0x00000000
|
||||
#define CODE_BASE (0x00000000U)
|
||||
|
||||
#define SRAM_BASE 0x20000000
|
||||
#define SRAM_BASE_BITBAND 0x22000000
|
||||
#define SRAM_BASE (0x20000000U)
|
||||
#define SRAM_BASE_BITBAND (0x22000000U)
|
||||
|
||||
#define PERIPH_BASE 0x40000000
|
||||
#define PERIPH_BASE_BITBAND 0x42000000
|
||||
#define PERIPH_BASE (0x40000000U)
|
||||
#define PERIPH_BASE_BITBAND (0x42000000U)
|
||||
|
||||
/* Details of the "Code" section */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user