Skip to content

Commit 8367493

Browse files
committed
Enable backward compatibility for rt_align/ALIGN
1 parent 3b611a5 commit 8367493

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

test/test_queue_isr.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
static QueueHandle_t xQueue = NULL;
2828
static rt_timer_t timer1;
2929

30+
#ifdef rt_align
3031
rt_align(RT_ALIGN_SIZE)
32+
#else
33+
ALIGN(RT_ALIGN_SIZE)
34+
#endif
3135
static char thread1_stack[1024];
3236
static struct rt_thread thread1;
3337
static void rt_thread1_entry(void *parameter)

test/test_semaphore_isr.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
static SemaphoreHandle_t dynamic_sem = RT_NULL;
2727
static rt_timer_t timer1;
2828

29+
#ifdef rt_align
2930
rt_align(RT_ALIGN_SIZE)
31+
#else
32+
ALIGN(RT_ALIGN_SIZE)
33+
#endif
3034
static char thread1_stack[1024];
3135
static struct rt_thread thread1;
3236
static void rt_thread1_entry(void *parameter)

0 commit comments

Comments
 (0)