HAL
HAL layer above libopencm3 library.
 All Files Functions Macros Groups Pages
common.h
Go to the documentation of this file.
1 /*
2  * This file is part of the HAL project, inline library above libopencm3.
3  *
4  * This library is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library. If not, see <http://www.gnu.org/licenses/>.
16  */
17 #ifndef HAL_COMMON_H_INCLUDED
18 #define HAL_COMMON_H_INCLUDED
19 
20 #include <libopencm3/cm3/common.h>
21 
22 /*****************************************************************************/
23 /* API definitions */
24 /*****************************************************************************/
25 
26 #define INLINE static inline __attribute__((always_inline))
27 
28 /*****************************************************************************/
29 /* API Functions */
30 /*****************************************************************************/
31 
32 BEGIN_DECLS
33 
34 END_DECLS
35 
36 /*****************************************************************************/
37 /* Architecture dependent inclusion */
38 /*****************************************************************************/
39 
40 #endif /* HAL_COMMON_H_INCLUDED */