summaryrefslogtreecommitdiff
path: root/bsp/ft2004/libraries/include/asmArm.h
blob: 7dd715369099f341559aabff5fb7acbd2ad8e881 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * @ : Copyright (c) 2021 Phytium Information Technology, Inc.
 *
 * SPDX-License-Identifier: Apache-2.0.
 *
 * @Date: 2021-01-20 10:07:04
 * @LastEditTime: 2021-05-24 14:36:34
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \project_freertos\devices\ft2004\gcc\asmArm.h
 */
#ifndef ASMARM_H
#define ASMARM_H

#define FUNC_LABEL(func) \
    func:

#if (defined __GNUC__)
#define FUNC_BEGIN(func) \
    .thumb;              \
    .thumb_func;         \
    .balign 4;           \
    FUNC_LABEL(func)
#else /* !__GNUC__ */
#define FUNC_BEGIN(func) \
    .thumb;              \
    .balign 4;           \
    FUNC_LABEL(func)
#endif /* __GNUC__ */

#define FUNC(sym) sym
#define FUNC_END(func) .size FUNC(func), .- FUNC(func)

#define Swap64(var64) var64
#define Swap32(var32) var32

#endif // !ASMARM_H