1 /*
2  * Copyright (c) 2006-2021, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2021-11-14     Meco Man     the first version
9  */
10 
11 #ifndef __RT_LEGACY_H__
12 #define __RT_LEGACY_H__
13 
14 #include <rtconfig.h>
15 #include <rtdef.h>
16 
17 /* rtdef.h */
18 
19 /* legacy version macros (<5.0.0) */
20 #define RT_VERSION              RT_VERSION_MAJOR        /**< major version number */
21 #define RT_SUBVERSION           RT_VERSION_MINOR        /**< minor version number */
22 #define RT_REVISION             RT_VERSION_PATCH        /**< revise version number */
23 
24 /* legacy attributes define (<5.0.0) */
25 #define RT_SECTION rt_section
26 #define RT_WEAK    rt_weak
27 #define RT_USED    rt_used
28 #ifndef ALIGN
29 #define ALIGN      rt_align
30 #endif
31 
32 /* IPC */
33 #ifdef RT_USING_DEVICE_IPC
34 #include "ipc/workqueue_legacy.h"
35 #endif /* RT_USING_DEVICE_IPC */
36 
37 /* FinSH */
38 
39 #endif /* __RT_LEGACY_H__ */
40