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
@@ -24,24 +24,24 @@
|
||||
|
||||
/* --- LM3S specific peripheral definitions ----------------------------- */
|
||||
|
||||
#define GPIOA_APB_BASE (0x40004000)
|
||||
#define GPIOB_APB_BASE (0x40005000)
|
||||
#define GPIOC_APB_BASE (0x40006000)
|
||||
#define GPIOD_APB_BASE (0x40007000)
|
||||
#define GPIOE_APB_BASE (0x40024000)
|
||||
#define GPIOF_APB_BASE (0x40025000)
|
||||
#define GPIOG_APB_BASE (0x40026000)
|
||||
#define GPIOH_APB_BASE (0x40027000)
|
||||
#define GPIOA_APB_BASE (0x40004000U)
|
||||
#define GPIOB_APB_BASE (0x40005000U)
|
||||
#define GPIOC_APB_BASE (0x40006000U)
|
||||
#define GPIOD_APB_BASE (0x40007000U)
|
||||
#define GPIOE_APB_BASE (0x40024000U)
|
||||
#define GPIOF_APB_BASE (0x40025000U)
|
||||
#define GPIOG_APB_BASE (0x40026000U)
|
||||
#define GPIOH_APB_BASE (0x40027000U)
|
||||
|
||||
#define GPIOA_BASE (0x40058000)
|
||||
#define GPIOB_BASE (0x40059000)
|
||||
#define GPIOC_BASE (0x4005A000)
|
||||
#define GPIOD_BASE (0x4005B000)
|
||||
#define GPIOE_BASE (0x4005C000)
|
||||
#define GPIOF_BASE (0x4005D000)
|
||||
#define GPIOG_BASE (0x4005E000)
|
||||
#define GPIOH_BASE (0x4005F000)
|
||||
#define GPIOA_BASE (0x40058000U)
|
||||
#define GPIOB_BASE (0x40059000U)
|
||||
#define GPIOC_BASE (0x4005A000U)
|
||||
#define GPIOD_BASE (0x4005B000U)
|
||||
#define GPIOE_BASE (0x4005C000U)
|
||||
#define GPIOF_BASE (0x4005D000U)
|
||||
#define GPIOG_BASE (0x4005E000U)
|
||||
#define GPIOH_BASE (0x4005F000U)
|
||||
|
||||
#define SYSTEMCONTROL_BASE (0x400FE000)
|
||||
#define SYSTEMCONTROL_BASE (0x400FE000U)
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user