diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-06-25 09:13:30 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-06-25 09:13:30 -0600 |
commit | bbdf7a9ec4b7af902c0036125da19419ded33d08 (patch) | |
tree | 1c910a673550af41969e98a43a6c68cba6b94a49 /nuttx/arch/arm/src/stm32/stm32_ccm.c | |
parent | 860429a8eaaa2437d7d8e5f1cb6b2b684fbda295 (diff) | |
download | px4-nuttx-bbdf7a9ec4b7af902c0036125da19419ded33d08.tar.gz px4-nuttx-bbdf7a9ec4b7af902c0036125da19419ded33d08.tar.bz2 px4-nuttx-bbdf7a9ec4b7af902c0036125da19419ded33d08.zip |
Add support for a separate CCM memory allocator for members of the STM32 family that support CCM memory
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_ccm.c')
-rwxr-xr-x | nuttx/arch/arm/src/stm32/stm32_ccm.c | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_ccm.c b/nuttx/arch/arm/src/stm32/stm32_ccm.c new file mode 100755 index 000000000..fbb97c0e9 --- /dev/null +++ b/nuttx/arch/arm/src/stm32/stm32_ccm.c @@ -0,0 +1,65 @@ +/**************************************************************************** + * arch/arm/src/common/stm32_ccm.c + * + * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt <gnutt@nuttx.org> + * Based on a prototype by Petteri Amimonen + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * 3. Neither the name NuttX nor the names of its contributors may be + * used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN + * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * + ****************************************************************************/ + +/**************************************************************************** + * Included Files + ****************************************************************************/ + +#include <nuttx/config.h> + +#include "stm32_ccm.h" + +#ifdef HAVE_CCM_HEAP + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +/**************************************************************************** + * Private Types + ****************************************************************************/ + +/**************************************************************************** + * Public Data + ****************************************************************************/ + +struct mm_heap_s g_ccm_heap; + +/**************************************************************************** + * Public Function Prototypes + ****************************************************************************/ + +#endif /* HAVE_CCM_HEAP */
\ No newline at end of file |