diff options
author | Stefan Agner <stefan@agner.ch> | 2014-01-20 03:51:14 +0400 |
---|---|---|
committer | Frantisek Burian <BuFran@seznam.cz> | 2014-02-06 03:59:39 +0400 |
commit | 7681597e423970b9d7f260bfb02765ca9132840c (patch) | |
tree | bf516f0f46da1c0eda145faa4050853fe7c2bb4e /include/libopencm3/stm32/fsmc.h | |
parent | 0af6d06edad772d2f3720607a2e69b0c32b4e654 (diff) |
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.
Diffstat (limited to 'include/libopencm3/stm32/fsmc.h')
-rw-r--r-- | include/libopencm3/stm32/fsmc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/libopencm3/stm32/fsmc.h b/include/libopencm3/stm32/fsmc.h index 05773580..c577f334 100644 --- a/include/libopencm3/stm32/fsmc.h +++ b/include/libopencm3/stm32/fsmc.h @@ -29,10 +29,10 @@ /* --- Convenience macros -------------------------------------------------- */ -#define FSMC_BANK1_BASE 0x60000000 /* NOR / PSRAM */ -#define FSMC_BANK2_BASE 0x70000000 /* NAND flash */ -#define FSMC_BANK3_BASE 0x80000000 /* NAND flash */ -#define FSMC_BANK4_BASE 0x90000000 /* PC card */ +#define FSMC_BANK1_BASE 0x60000000U /* NOR / PSRAM */ +#define FSMC_BANK2_BASE 0x70000000U /* NAND flash */ +#define FSMC_BANK3_BASE 0x80000000U /* NAND flash */ +#define FSMC_BANK4_BASE 0x90000000U /* PC card */ /* --- FSMC registers ------------------------------------------------------ */ |