2021-11-15 02:04:03 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2021-11-14 Meco Man the first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __RT_LEGACY_H__
|
|
|
|
#define __RT_LEGACY_H__
|
|
|
|
|
|
|
|
#include <rtconfig.h>
|
2022-08-29 01:25:47 +08:00
|
|
|
#include <rtdef.h>
|
2021-11-15 02:04:03 +08:00
|
|
|
|
2022-12-12 02:12:03 +08:00
|
|
|
/* rtdef.h */
|
|
|
|
|
|
|
|
/* legacy version macros (<5.0.0) */
|
2022-08-29 01:25:47 +08:00
|
|
|
#define RT_VERSION RT_VERSION_MAJOR /**< major version number */
|
|
|
|
#define RT_SUBVERSION RT_VERSION_MINOR /**< minor version number */
|
|
|
|
#define RT_REVISION RT_VERSION_PATCH /**< revise version number */
|
2021-11-15 02:04:03 +08:00
|
|
|
|
2022-12-12 02:12:03 +08:00
|
|
|
/* legacy attributes define (<5.0.0) */
|
|
|
|
#define RT_SECTION rt_section
|
|
|
|
#define RT_WEAK rt_weak
|
|
|
|
#define RT_USED rt_used
|
|
|
|
#ifndef ALIGN
|
|
|
|
#define ALIGN rt_align
|
|
|
|
#endif
|
|
|
|
|
2021-11-15 02:04:03 +08:00
|
|
|
/* IPC */
|
|
|
|
#ifdef RT_USING_DEVICE_IPC
|
|
|
|
#include "ipc/workqueue_legacy.h"
|
|
|
|
#endif /* RT_USING_DEVICE_IPC */
|
|
|
|
|
|
|
|
/* FinSH */
|
|
|
|
|
|
|
|
#endif /* __RT_LEGACY_H__ */
|