diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-02-28 18:14:55 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-02-28 18:14:55 +0000 |
commit | 56bcc7b1052bada87acce14495c4ba406c46b03e (patch) | |
tree | 299af02425127a965549141a2b9155d43e99e52a /nuttx/arch | |
parent | 2ac7d84029da73e223b00d6e10efd5cb8927d55e (diff) | |
download | px4-firmware-56bcc7b1052bada87acce14495c4ba406c46b03e.tar.gz px4-firmware-56bcc7b1052bada87acce14495c4ba406c46b03e.tar.bz2 px4-firmware-56bcc7b1052bada87acce14495c4ba406c46b03e.zip |
Extend CDC/ACM driver so that can be connected/disconnected under software control; Add new NSH commands sercon and serdis that will connect and disconnect the CDC/ACM serial device
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4436 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/arch')
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32_allocateheap.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_allocateheap.c b/nuttx/arch/arm/src/stm32/stm32_allocateheap.c index be7862e11..755659549 100644 --- a/nuttx/arch/arm/src/stm32/stm32_allocateheap.c +++ b/nuttx/arch/arm/src/stm32/stm32_allocateheap.c @@ -103,12 +103,12 @@ # warning "FSMC SRAM not included in the heap" # undef CONFIG_STM32_FSMC_SRAM # elif CONFIG_MM_REGIONS > 2 -# error "CONFIG_MM_REGIONS > 2 but I don't know what any of the region(s) are" +# error "CONFIG_MM_REGIONS > 2 but I don't know what some of the region(s) are" # undef CONFIG_MM_REGIONS # define CONFIG_MM_REGIONS 2 # endif # elif CONFIG_MM_REGIONS > 1 -# error "CONFIG_MM_REGIONS > 1 but I don't know what any of the region(s) are" +# error "CONFIG_MM_REGIONS > 1 but I don't know what the other region(s) are" # endif /* The STM32 F1 has not TCM SRAM */ @@ -192,7 +192,7 @@ /* Configuration 3: CONFIG_MM_REGIONS should have been 2 */ -# error "CONFIG_MM_REGIONS > 2 but I don't know what any of the region(s) are" +# error "CONFIG_MM_REGIONS > 2 but I don't know what some of the region(s) are" # undef CONFIG_MM_REGIONS # define CONFIG_MM_REGIONS 2 # else @@ -205,7 +205,7 @@ # warning "TCM SRAM is included in the heap AND DMA is enabled" # endif # if CONFIG_MM_REGIONS != 3 -# error "CONFIG_MM_REGIONS > 3 but I don't know what any of the region(s) are" +# error "CONFIG_MM_REGIONS > 3 but I don't know what some of the region(s) are" # undef CONFIG_MM_REGIONS # define CONFIG_MM_REGIONS 3 # endif @@ -227,7 +227,7 @@ * should be disabled and CONFIG_MM_REGIONS should be 2. */ -# ifdef (CONFIG_STM32_DMA) +# ifdef CONFIG_STM32_DMA # warning "TCM SRAM is included in the heap AND DMA is enabled" # endif # if CONFIG_MM_REGIONS < 2 @@ -235,7 +235,7 @@ # undef CONFIG_STM32_TCMEXCLUDE # define CONFIG_STM32_TCMEXCLUDE 1 # elif CONFIG_MM_REGIONS > 2 -# error "CONFIG_MM_REGIONS > 2 but I don't know what any of the region(s) are" +# error "CONFIG_MM_REGIONS > 2 but I don't know what some of the region(s) are" # undef CONFIG_MM_REGIONS # define CONFIG_MM_REGIONS 2 # endif @@ -246,7 +246,7 @@ /* If FSMC SRAM is going to be used as heap, then verify that the starting * address and size of the external SRAM region has been provided in the - * configuration. + * configuration (as CONFIG_HEAP2_BASE and CONFIG_HEAP2_END). */ #ifdef CONFIG_STM32_FSMC_SRAM @@ -304,10 +304,10 @@ void up_addregion(void) mm_addregion((FAR void*)SRAM2_START, SRAM2_END-SRAM2_START); #endif - /* Add the user specified heap region. */ + /* Add the external FSMC SRAM heap region. */ #ifdef CONFIG_STM32_FSMC_SRAM mm_addregion((FAR void*)CONFIG_HEAP2_BASE, CONFIG_HEAP2_END - CONFIG_HEAP2_BASE); -# endif +#endif } #endif |