Bläddra i källkod

Fix test compile errors

tangzz98 3 år sedan
förälder
incheckning
5a4a346e68

+ 1 - 1
test/test_event_group_dynamic.c

@@ -63,7 +63,7 @@ static void vTask2Code(void * pvParameters)
 int event_group_dynamic(void)
 {
     xEventGroup = xEventGroupCreate();
-    xEventGroupDelete(xEventGroup);
+    vEventGroupDelete(xEventGroup);
     xEventGroup = xEventGroupCreate();
     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)
 {
     xEventGroup = xEventGroupCreateStatic( &xEventGroupBuffer );
-    xEventGroupDelete(xEventGroup);
+    vEventGroupDelete(xEventGroup);
     xEventGroup = xEventGroupCreateStatic( &xEventGroupBuffer );
     if (xEventGroup == NULL)
     {

+ 1 - 1
test/test_queue_isr.c

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