summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/chip/stm32f40xxx_memorymap.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-09-04 03:06:47 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-09-04 03:06:47 +0000
commit2f2d965ddfd5726bff201a90f3bea3746f40eb29 (patch)
tree8c22d70dd78a38ea1c4a824238ff10cd2e93a36d /nuttx/arch/arm/src/stm32/chip/stm32f40xxx_memorymap.h
parent076b5df2df9fdf9d610b99c8e5a67bc586553047 (diff)
downloadpx4-nuttx-2f2d965ddfd5726bff201a90f3bea3746f40eb29.tar.gz
px4-nuttx-2f2d965ddfd5726bff201a90f3bea3746f40eb29.tar.bz2
px4-nuttx-2f2d965ddfd5726bff201a90f3bea3746f40eb29.zip
Oops... bits in region mask are inverted
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5083 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32/chip/stm32f40xxx_memorymap.h')
-rw-r--r--nuttx/arch/arm/src/stm32/chip/stm32f40xxx_memorymap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/stm32/chip/stm32f40xxx_memorymap.h b/nuttx/arch/arm/src/stm32/chip/stm32f40xxx_memorymap.h
index a7ee8e97c..6b9912121 100644
--- a/nuttx/arch/arm/src/stm32/chip/stm32f40xxx_memorymap.h
+++ b/nuttx/arch/arm/src/stm32/chip/stm32f40xxx_memorymap.h
@@ -55,7 +55,7 @@
/* 0xc0000000-0xdfffffff: 512Mb (not used) */
#define STM32_CORTEX_BASE 0xe0000000 /* 0xe0000000-0xffffffff: 512Mb Cortex-M4 block */
-#define STM32_REGION_MASK 0x0fffffff
+#define STM32_REGION_MASK 0xf0000000
#define STM32_IS_SRAM(a) ((((uint32_t)(a)) & STM32_REGION_MASK) == STM32_SRAM_BASE)
#define STM32_IS_EXTSRAM(a) ((((uint32_t)(a)) & STM32_REGION_MASK) == STM32_FSMC_BANK1)