summaryrefslogtreecommitdiff
path: root/src/idle.c
diff options
context:
space:
mode:
authorMan, Jianting (Meco) <[email protected]>2022-12-11 13:12:03 -0500
committerGitHub <[email protected]>2022-12-11 13:12:03 -0500
commit99bdf978d7fe4ec18ed50a639e15b254825c871b (patch)
tree51ffb6f5fae10f2ce9a6baf4b861c025b8056fb6 /src/idle.c
parenta4b8762d8584b02a9b1f1c675a97ecaa105144be (diff)
[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
Diffstat (limited to 'src/idle.c')
-rw-r--r--src/idle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idle.c b/src/idle.c
index 30f22d8963..214a6b2ad2 100644
--- a/src/idle.c
+++ b/src/idle.c
@@ -48,7 +48,7 @@
static rt_list_t _rt_thread_defunct = RT_LIST_OBJECT_INIT(_rt_thread_defunct);
static struct rt_thread idle_thread[_CPUS_NR];
-ALIGN(RT_ALIGN_SIZE)
+rt_align(RT_ALIGN_SIZE)
static rt_uint8_t idle_thread_stack[_CPUS_NR][IDLE_THREAD_STACK_SIZE];
#ifdef RT_USING_SMP
@@ -56,7 +56,7 @@ static rt_uint8_t idle_thread_stack[_CPUS_NR][IDLE_THREAD_STACK_SIZE];
#define SYSTEM_THREAD_STACK_SIZE IDLE_THREAD_STACK_SIZE
#endif
static struct rt_thread rt_system_thread;
-ALIGN(RT_ALIGN_SIZE)
+rt_align(RT_ALIGN_SIZE)
static rt_uint8_t rt_system_stack[SYSTEM_THREAD_STACK_SIZE];
static struct rt_semaphore system_sem;
#endif