mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-28 10:00:24 +00:00
[rtdef] use lower-case to define attributes (#6728)
* [rtdef] rename RT_WEAK attribute as rt_weak * [rtdef] rename RT_USED attribute as rt_used * [rtdef] rename RT_SECTION attribute as rt_section * [rtdef] rename ALIGN attribute as rt_align * [legacy] add RT_USED ALIGN RT_SECTION RT_WEAK as legacy support
This commit is contained in:
committed by
GitHub
parent
a4b8762d85
commit
99bdf978d7
@@ -14,11 +14,21 @@
|
||||
#include <rtconfig.h>
|
||||
#include <rtdef.h>
|
||||
|
||||
/* legacy version macros */
|
||||
/* rtdef.h */
|
||||
|
||||
/* legacy version macros (<5.0.0) */
|
||||
#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 */
|
||||
|
||||
/* 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
|
||||
|
||||
/* IPC */
|
||||
#ifdef RT_USING_DEVICE_IPC
|
||||
#include "ipc/workqueue_legacy.h"
|
||||
|
||||
Reference in New Issue
Block a user