Merge pull request #10592 from iNavFlight/MrD_Update-parameter-description
[inav.git] / lib / main / AT32F43x / Drivers / AT32F43x_StdPeriph_Driver / inc / at32f435_437_def.h
blob39e1706423ee1193f9bdfac7bb428bfe15f1d67e
1 /**
2 **************************************************************************
3 * @file at32f435_437_def.h
4 * @version v2.1.0
5 * @date 2022-08-16
6 * @brief at32f435_437 macros header file
7 **************************************************************************
8 * Copyright notice & Disclaimer
10 * The software Board Support Package (BSP) that is made available to
11 * download from Artery official website is the copyrighted work of Artery.
12 * Artery authorizes customers to use, copy, and distribute the BSP
13 * software and its related documentation for the purpose of design and
14 * development in conjunction with Artery microcontrollers. Use of the
15 * software is governed by this copyright notice and the following disclaimer.
17 * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
18 * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS,
19 * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR
20 * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS,
21 * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
24 **************************************************************************
27 /* Define to prevent recursive inclusion -------------------------------------*/
28 #ifndef __AT32F435_437_DEF_H
29 #define __AT32F435_437_DEF_H
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
35 /* gnu compiler */
36 #if defined (__GNUC__)
37 #ifndef ALIGNED_HEAD
38 #define ALIGNED_HEAD
39 #endif
40 #ifndef ALIGNED_TAIL
41 #define ALIGNED_TAIL __attribute__ ((aligned (4)))
42 #endif
43 #endif
45 /* arm compiler */
46 #if defined (__CC_ARM)
47 #ifndef ALIGNED_HEAD
48 #define ALIGNED_HEAD __align(4)
49 #endif
50 #ifndef ALIGNED_TAIL
51 #define ALIGNED_TAIL
52 #endif
53 #endif
55 /* iar compiler */
56 #if defined (__ICCARM__)
57 #ifndef ALIGNED_HEAD
58 #define ALIGNED_HEAD
59 #endif
60 #ifndef ALIGNED_TAIL
61 #define ALIGNED_TAIL
62 #endif
63 #endif
65 #if !defined(UNUSED)
66 #define UNUSED(x) (void)x /* to avoid gcc/g++ warnings */
67 #endif
70 #ifdef __cplusplus
72 #endif
74 #endif