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
This commit is contained in:
parent
fc42b8f9b1
commit
2eaa5c0ab8
@ -47,7 +47,7 @@
|
||||
#define STM32_SRAMBB_BASE 0x22000000
|
||||
#define STM32_PERIPH_BASE 0x40000000
|
||||
|
||||
#define STM32_REGION_MASK 0x0fffffff
|
||||
#define STM32_REGION_MASK 0xf0000000
|
||||
#define STM32_IS_SRAM(a) ((((uint32_t)(a)) & STM32_REGION_MASK) == STM32_SRAM_BASE)
|
||||
|
||||
/* Register Base Address ************************************************************/
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user