Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
mcu_arch.h
Go to the documentation of this file.
1 /*
2  * Paparazzi stm32 arch dependant microcontroller initialisation function
3  *
4  * Copyright (C) 2010 The Paparazzi team
5  *
6  * This file is part of Paparazzi.
7  *
8  * Paparazzi is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2, or (at your option)
11  * any later version.
12  *
13  * Paparazzi is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with Paparazzi; see the file COPYING. If not, write to
20  * the Free Software Foundation, 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  *
23  */
24 
25 #ifndef STM32_MCU_ARCH_H
26 #define STM32_MCU_ARCH_H
27 
28 extern void mcu_arch_init(void);
29 
30 
31 /* should probably not be here
32  * a couple of macros to use the rev instruction
33  */
34 #define MyByteSwap16(in, out) { \
35  asm volatile ( \
36  "rev16 %0, %1\n\t" \
37  : "=r" (out) \
38  : "r"(in) \
39  ); \
40  }
41 
42 #define mcu_int_enable() {}
43 #define mcu_int_disable() {}
44 
45 #endif /* STM32_MCU_ARCH_H */
void mcu_arch_init(void)
Definition: mcu_arch.c:36