mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
arch/arm/src/stm32/stm32_allocateheap.c: Change 'if CONFIG_STM32_HAVE_CCM' to 'ifdef CONFIG_STM32_HAVE_CCM' to avoid a warning when CONFIG_STM32_HAVE_CCM is not defined.
This commit is contained in:
@@ -260,7 +260,7 @@
|
|||||||
/* Only one memory region. Force Configuration 1 */
|
/* Only one memory region. Force Configuration 1 */
|
||||||
|
|
||||||
# ifndef CONFIG_STM32_CCMEXCLUDE
|
# ifndef CONFIG_STM32_CCMEXCLUDE
|
||||||
# if CONFIG_STM32_HAVE_CCM
|
# ifdef CONFIG_STM32_HAVE_CCM
|
||||||
# warning "CCM SRAM excluded from the heap"
|
# warning "CCM SRAM excluded from the heap"
|
||||||
# endif
|
# endif
|
||||||
# define CONFIG_STM32_CCMEXCLUDE 1
|
# define CONFIG_STM32_CCMEXCLUDE 1
|
||||||
@@ -476,7 +476,7 @@
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
# if CONFIG_MM_REGIONS < 2
|
# if CONFIG_MM_REGIONS < 2
|
||||||
# if CONFIG_STM32_HAVE_CCM
|
# ifdef CONFIG_STM32_HAVE_CCM
|
||||||
# error "CCM SRAM excluded from the heap because CONFIG_MM_REGIONS < 2"
|
# error "CCM SRAM excluded from the heap because CONFIG_MM_REGIONS < 2"
|
||||||
# endif
|
# endif
|
||||||
# undef CONFIG_STM32_CCMEXCLUDE
|
# undef CONFIG_STM32_CCMEXCLUDE
|
||||||
|
|||||||
Reference in New Issue
Block a user