tangzz98 3 лет назад
Родитель
Сommit
5a4a346e68
4 измененных файлов с 4 добавлено и 4 удалено
  1. 1 1
      test/test_event_group_dynamic.c
  2. 1 1
      test/test_event_group_static.c
  3. 1 1
      test/test_queue_isr.c
  4. 1 1
      test/test_semaphore_isr.c

+ 1 - 1
test/test_event_group_dynamic.c

@@ -63,7 +63,7 @@ static void vTask2Code(void * pvParameters)
 int event_group_dynamic(void)
 int event_group_dynamic(void)
 {
 {
     xEventGroup = xEventGroupCreate();
     xEventGroup = xEventGroupCreate();
-    xEventGroupDelete(xEventGroup);
+    vEventGroupDelete(xEventGroup);
     xEventGroup = xEventGroupCreate();
     xEventGroup = xEventGroupCreate();
     if (xEventGroup == NULL)
     if (xEventGroup == NULL)
     {
     {

+ 1 - 1
test/test_event_group_static.c

@@ -63,7 +63,7 @@ static void vTask2Code(void * pvParameters)
 int event_group_static(void)
 int event_group_static(void)
 {
 {
     xEventGroup = xEventGroupCreateStatic( &xEventGroupBuffer );
     xEventGroup = xEventGroupCreateStatic( &xEventGroupBuffer );
-    xEventGroupDelete(xEventGroup);
+    vEventGroupDelete(xEventGroup);
     xEventGroup = xEventGroupCreateStatic( &xEventGroupBuffer );
     xEventGroup = xEventGroupCreateStatic( &xEventGroupBuffer );
     if (xEventGroup == NULL)
     if (xEventGroup == NULL)
     {
     {

+ 1 - 1
test/test_queue_isr.c

@@ -27,7 +27,7 @@
 static QueueHandle_t xQueue = NULL;
 static QueueHandle_t xQueue = NULL;
 static rt_timer_t timer1;
 static rt_timer_t timer1;
 
 
-ALIGN(RT_ALIGN_SIZE)
+rt_align(RT_ALIGN_SIZE)
 static char thread1_stack[1024];
 static char thread1_stack[1024];
 static struct rt_thread thread1;
 static struct rt_thread thread1;
 static void rt_thread1_entry(void *parameter)
 static void rt_thread1_entry(void *parameter)

+ 1 - 1
test/test_semaphore_isr.c

@@ -26,7 +26,7 @@
 static SemaphoreHandle_t dynamic_sem = RT_NULL;
 static SemaphoreHandle_t dynamic_sem = RT_NULL;
 static rt_timer_t timer1;
 static rt_timer_t timer1;
 
 
-ALIGN(RT_ALIGN_SIZE)
+rt_align(RT_ALIGN_SIZE)
 static char thread1_stack[1024];
 static char thread1_stack[1024];
 static struct rt_thread thread1;
 static struct rt_thread thread1;
 static void rt_thread1_entry(void *parameter)
 static void rt_thread1_entry(void *parameter)