Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
tlsf_malloc_arch.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2016 Alexandre Bustico, Gautier Hattenberger
3
*
4
* This file is part of paparazzi.
5
*
6
* paparazzi is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2, or (at your option)
9
* any later version.
10
*
11
* paparazzi is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with paparazzi; see the file COPYING. If not, see
18
* <http://www.gnu.org/licenses/>.
19
*/
20
28
#ifndef TLSF_MALLOC_ARCH_H
29
#define TLSF_MALLOC_ARCH_H
30
#include <ch.h>
31
#include <hal.h>
32
33
#if defined STM32F4XX
34
#define NODMA_SECTION ".ram4"
35
#define DMA_SECTION ".ram0"
36
#elif defined STM32F7XX
37
#define NODMA_SECTION ".ram0"
38
#define DMA_SECTION ".ram3"
39
#else
40
#error "section defined only for STM32F4 and STM32F7"
41
#endif
42
43
#define HEAP_CCM ccmHeap
44
#define HEAP_CCM_SIZE 16384
45
#define HEAP_CCM_SECTION NODMA_SECTION
46
47
#define HEAP_DEFAULT HEAP_CCM
48
49
#endif
50
sw
airborne
arch
chibios
modules
tlsf
tlsf_malloc_arch.h
Generated on Wed Aug 28 2019 16:28:53 for Paparazzi UAS by
1.8.8