Paparazzi UAS
v5.12_stable-4-g9b43e9b
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
ram_arch.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2016 Gautier Hattenberger and Alexandre Bustico
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
38
#ifndef RAM_ARCH_H
39
#define RAM_ARCH_H
40
41
#if defined STM32F1
42
#define STD_SECTION ".ram0"
43
#define FAST_SECTION ".ram0"
44
#define DMA_SECTION ".ram0"
45
#elif defined STM32F4
46
#define STD_SECTION ".ram0"
47
#define FAST_SECTION ".ram4"
48
#define DMA_SECTION ".ram0"
49
#elif defined STM32F7
50
#define STD_SECTION ".ram0"
51
#define FAST_SECTION ".ram0"
52
#define DMA_SECTION ".ram3"
53
#else
54
#error "section defined only for STM32F1, STM32F4 and STM32F7"
55
#endif
56
57
#define IN_STD_SECTION_NOINIT(var) var __attribute__ ((section(STD_SECTION), aligned(8)))
58
#define IN_STD_SECTION_CLEAR(var) var __attribute__ ((section(STD_SECTION "_clear"), aligned(8)))
59
#define IN_STD_SECTION(var) var __attribute__ ((section(STD_SECTION "_init"), aligned(8)))
60
61
#define IN_FAST_SECTION_NOINIT(var) var __attribute__ ((section(FAST_SECTION), aligned(8)))
62
#define IN_FAST_SECTION_CLEAR(var) var __attribute__ ((section(FAST_SECTION "_clear"), aligned(8)))
63
#define IN_FAST_SECTION(var) var __attribute__ ((section(FAST_SECTION "_init"), aligned(8)))
64
65
#define IN_DMA_SECTION_NOINIT(var) var __attribute__ ((section(DMA_SECTION), aligned(8)))
66
#define IN_DMA_SECTION_CLEAR(var) var __attribute__ ((section(DMA_SECTION "_clear"), aligned(8)))
67
#define IN_DMA_SECTION(var) var __attribute__ ((section(DMA_SECTION "_init"), aligned(8)))
68
69
#endif
70
sw
airborne
arch
chibios
mcu_periph
ram_arch.h
Generated on Sat Feb 9 2019 06:43:43 for Paparazzi UAS by
1.8.8