mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 19:44:24 +08: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:
@@ -20,11 +20,11 @@ static struct rt_event static_event = {0};
|
||||
static rt_event_t dynamic_event = RT_NULL;
|
||||
static rt_uint32_t dynamic_event_recv_thread_finish = 0, dynamic_event_send_thread_finish = 0;
|
||||
|
||||
ALIGN(RT_ALIGN_SIZE)
|
||||
rt_align(RT_ALIGN_SIZE)
|
||||
static char thread3_stack[1024];
|
||||
static struct rt_thread thread3;
|
||||
|
||||
ALIGN(RT_ALIGN_SIZE)
|
||||
rt_align(RT_ALIGN_SIZE)
|
||||
static char thread4_stack[1024];
|
||||
static struct rt_thread thread4;
|
||||
#endif /* RT_USING_HEAP */
|
||||
@@ -32,11 +32,11 @@ static struct rt_thread thread4;
|
||||
static rt_uint32_t recv_event_times1 = 0, recv_event_times2 = 0;
|
||||
static rt_uint32_t static_event_recv_thread_finish = 0, static_event_send_thread_finish = 0;
|
||||
|
||||
ALIGN(RT_ALIGN_SIZE)
|
||||
rt_align(RT_ALIGN_SIZE)
|
||||
static char thread1_stack[1024];
|
||||
static struct rt_thread thread1;
|
||||
|
||||
ALIGN(RT_ALIGN_SIZE)
|
||||
rt_align(RT_ALIGN_SIZE)
|
||||
static char thread2_stack[1024];
|
||||
static struct rt_thread thread2;
|
||||
|
||||
|
||||
@@ -20,11 +20,11 @@ static rt_mailbox_t test_dynamic_mb;
|
||||
static uint8_t static_mb_recv_thread_finish, static_mb_send_thread_finish;
|
||||
static uint8_t dynamic_mb_recv_thread_finish, dynamic_mb_send_thread_finish;
|
||||
|
||||
ALIGN(RT_ALIGN_SIZE)
|
||||
rt_align(RT_ALIGN_SIZE)
|
||||
static char thread1_stack[1024];
|
||||
static struct rt_thread thread1;
|
||||
|
||||
ALIGN(RT_ALIGN_SIZE)
|
||||
rt_align(RT_ALIGN_SIZE)
|
||||
static char thread2_stack[1024];
|
||||
static struct rt_thread thread2;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#define THREAD_STACK_SIZE 512
|
||||
#define THREAD_TIMESLICE 10
|
||||
|
||||
ALIGN(RT_ALIGN_SIZE)
|
||||
rt_align(RT_ALIGN_SIZE)
|
||||
static char thread2_stack[1024];
|
||||
static struct rt_thread thread2;
|
||||
#ifdef RT_USING_HEAP
|
||||
|
||||
Reference in New Issue
Block a user