mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-26 23:36:32 -04:00
Use CI-CD-Github-Actions for spelling and formatting, add in the bot formatting action, update the CI-CD workflow files. Fix incorrect spelling and formatting on files. (#1083)
* Use new version of CI-CD Actions, checkout@v3 instead of checkout@v2 on all jobs * Use cSpell spell check, and use ubuntu-20.04 for formatting check * Add in bot formatting action * Update freertos_demo.yml and freertos_plus_demo.yml files to increase github log readability * Add in a Qemu demo onto the workflows.
This commit is contained in:
parent
537007d96c
commit
3a2f6646f0
1036 changed files with 134568 additions and 127281 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* FreeRTOS V202212.00
|
||||
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
* this software and associated documentation files (the "Software"), to deal in
|
||||
|
|
@ -125,7 +125,7 @@ static StackType_t uxIdleTaskStack[ configMINIMAL_STACK_SIZE ];
|
|||
static TCB_t * ptcb;
|
||||
static StackType_t stack[ ( ( size_t ) 300 ) * sizeof( StackType_t ) ];
|
||||
static TCB_t tcb[ TCB_ARRAY ];
|
||||
static bool getIddleTaskMemoryValid = false;
|
||||
static bool getIdleTaskMemoryValid = false;
|
||||
static uint32_t critical_section_counter = 0;
|
||||
static bool is_first_task = true;
|
||||
static uint32_t created_tasks = 0;
|
||||
|
|
@ -133,7 +133,7 @@ static uint32_t create_task_priority = 3;
|
|||
static port_yield_operation py_operation;
|
||||
|
||||
static bool vTaskDeletePre_called = false;
|
||||
static bool getIddleTaskMemory_called = false;
|
||||
static bool getIdleTaskMemory_called = false;
|
||||
static bool vApplicationTickHook_called = false;
|
||||
static bool port_yield_called = false;
|
||||
static bool port_enable_interrupts_called = false;
|
||||
|
|
@ -187,7 +187,7 @@ void vApplicationGetIdleTaskMemory( StaticTask_t ** ppxIdleTaskTCBBuffer,
|
|||
{
|
||||
HOOK_DIAG();
|
||||
|
||||
if( getIddleTaskMemoryValid == true )
|
||||
if( getIdleTaskMemoryValid == true )
|
||||
{
|
||||
/* Pass out a pointer to the StaticTask_t structure in which the Idle task's
|
||||
* state will be stored. */
|
||||
|
|
@ -208,7 +208,7 @@ void vApplicationGetIdleTaskMemory( StaticTask_t ** ppxIdleTaskTCBBuffer,
|
|||
*pulIdleTaskStackSize = 0;
|
||||
}
|
||||
|
||||
getIddleTaskMemory_called = true;
|
||||
getIdleTaskMemory_called = true;
|
||||
}
|
||||
|
||||
void vConfigureTimerForRunTimeStats( void )
|
||||
|
|
@ -423,7 +423,7 @@ static void start_scheduler()
|
|||
|
||||
xTimerCreateTimerTask_ExpectAndReturn( pdPASS );
|
||||
xPortStartScheduler_ExpectAndReturn( pdTRUE );
|
||||
getIddleTaskMemoryValid = true;
|
||||
getIdleTaskMemoryValid = true;
|
||||
vTaskStartScheduler();
|
||||
ASSERT_GET_IDLE_TASK_MEMORY_CALLED();
|
||||
TEST_ASSERT_TRUE( xSchedulerRunning );
|
||||
|
|
@ -824,7 +824,7 @@ void test_xTaskCreate_fail_tcb_malloc( void )
|
|||
}
|
||||
|
||||
/* -------------------------- INCLUDE_vTaskDelete --------------------------- */
|
||||
void test_vTaskDelete_sucess_current_task( void )
|
||||
void test_vTaskDelete_success_current_task( void )
|
||||
{
|
||||
ptcb = ( TCB_t * ) create_task();
|
||||
|
||||
|
|
@ -842,7 +842,7 @@ void test_vTaskDelete_sucess_current_task( void )
|
|||
TEST_ASSERT_EQUAL( 1, uxDeletedTasksWaitingCleanUp );
|
||||
}
|
||||
|
||||
void test_vTaskDelete_sucess_current_task_ready_empty( void )
|
||||
void test_vTaskDelete_success_current_task_ready_empty( void )
|
||||
{
|
||||
/* Setup */
|
||||
ptcb = ( TCB_t * ) create_task();
|
||||
|
|
@ -861,7 +861,7 @@ void test_vTaskDelete_sucess_current_task_ready_empty( void )
|
|||
TEST_ASSERT_EQUAL( 1, uxDeletedTasksWaitingCleanUp );
|
||||
}
|
||||
|
||||
void test_vTaskDelete_sucess_current_task_ready_empty_null_task( void )
|
||||
void test_vTaskDelete_success_current_task_ready_empty_null_task( void )
|
||||
{
|
||||
ptcb = ( TCB_t * ) create_task();
|
||||
|
||||
|
|
@ -880,7 +880,7 @@ void test_vTaskDelete_sucess_current_task_ready_empty_null_task( void )
|
|||
TEST_ASSERT_EQUAL( 1, uxDeletedTasksWaitingCleanUp );
|
||||
}
|
||||
|
||||
void test_vTaskDelete_sucess_current_task_yield( void )
|
||||
void test_vTaskDelete_success_current_task_yield( void )
|
||||
{
|
||||
xSchedulerRunning = pdTRUE;
|
||||
ptcb = ( TCB_t * ) create_task();
|
||||
|
|
@ -900,7 +900,7 @@ void test_vTaskDelete_sucess_current_task_yield( void )
|
|||
TEST_ASSERT_EQUAL( 1, uxDeletedTasksWaitingCleanUp );
|
||||
}
|
||||
|
||||
void test_vTaskDelete_sucess_not_current_task( void )
|
||||
void test_vTaskDelete_success_not_current_task( void )
|
||||
{
|
||||
ptcb = ( TCB_t * ) create_task();
|
||||
TEST_ASSERT_EQUAL( 1, uxCurrentNumberOfTasks );
|
||||
|
|
@ -921,7 +921,7 @@ void test_vTaskDelete_sucess_not_current_task( void )
|
|||
TEST_ASSERT_EQUAL( 0, uxDeletedTasksWaitingCleanUp );
|
||||
}
|
||||
|
||||
void test_vTaskDelete_sucess_not_current_task_no_yield( void )
|
||||
void test_vTaskDelete_success_not_current_task_no_yield( void )
|
||||
{
|
||||
xSchedulerRunning = pdTRUE;
|
||||
ptcb = ( TCB_t * ) create_task();
|
||||
|
|
@ -975,7 +975,7 @@ void test_vTaskStartScheduler_success( void )
|
|||
|
||||
xTimerCreateTimerTask_ExpectAndReturn( pdPASS );
|
||||
xPortStartScheduler_ExpectAndReturn( pdTRUE );
|
||||
getIddleTaskMemoryValid = true;
|
||||
getIdleTaskMemoryValid = true;
|
||||
vTaskStartScheduler();
|
||||
|
||||
ASSERT_GET_IDLE_TASK_MEMORY_CALLED();
|
||||
|
|
@ -986,7 +986,7 @@ void test_vTaskStartScheduler_success( void )
|
|||
|
||||
void test_vTaskStartScheduler_idle_fail( void )
|
||||
{
|
||||
getIddleTaskMemoryValid = false;
|
||||
getIdleTaskMemoryValid = false;
|
||||
vTaskStartScheduler();
|
||||
|
||||
ASSERT_GET_IDLE_TASK_MEMORY_CALLED();
|
||||
|
|
@ -1396,7 +1396,7 @@ void test_vTaskPrioritySet_success_same_prio( void )
|
|||
}
|
||||
|
||||
|
||||
/* ensures if the set priority is less thatn the current priority and it is the
|
||||
/* ensures if the set priority is less than the current priority and it is the
|
||||
* current tcb the task is yielded
|
||||
*/
|
||||
void test_vTaskPrioritySet_success_lt_curr_prio_curr_task( void )
|
||||
|
|
@ -1426,7 +1426,7 @@ void test_vTaskPrioritySet_success_lt_curr_prio_curr_task( void )
|
|||
ASSERT_PORT_YIELD_WITHIN_API_CALLED();
|
||||
}
|
||||
|
||||
/* ensures if the set priority is less thatn the current priority and it is not
|
||||
/* ensures if the set priority is less than the current priority and it is not
|
||||
* the current tcb the task is not yielded
|
||||
*/
|
||||
void test_vTaskPrioritySet_success_lt_curr_prio_not_curr_task( void )
|
||||
|
|
@ -2189,7 +2189,7 @@ void test_vTaskSuspend_success( void )
|
|||
ASSERT_PORT_YIELD_WITHIN_API_NOT_CALLED();
|
||||
}
|
||||
|
||||
void test_vTaskSuspend_success_shced_running( void )
|
||||
void test_vTaskSuspend_success_sched_running( void )
|
||||
{
|
||||
TaskHandle_t task_handle;
|
||||
|
||||
|
|
@ -2214,7 +2214,7 @@ void test_vTaskSuspend_success_shced_running( void )
|
|||
ASSERT_PORT_YIELD_WITHIN_API_CALLED();
|
||||
}
|
||||
|
||||
void test_vTaskSuspend_success_shced_running_not_curr( void )
|
||||
void test_vTaskSuspend_success_sched_running_not_curr( void )
|
||||
{
|
||||
TaskHandle_t task_handle, task_handle2;
|
||||
|
||||
|
|
@ -2764,7 +2764,7 @@ void test_xtaskGetHandle_fail_no_task_found( void )
|
|||
}
|
||||
|
||||
|
||||
void test_xtaskGetHandle_fail_no_taks_running( void )
|
||||
void test_xtaskGetHandle_fail_no_tasks_running( void )
|
||||
{
|
||||
TaskHandle_t task_handle2;
|
||||
|
||||
|
|
@ -2786,7 +2786,7 @@ void test_xtaskGetHandle_fail_no_taks_running( void )
|
|||
}
|
||||
|
||||
/* testing always available functions */
|
||||
void test_xTaskGetTickCount_sucess( void )
|
||||
void test_xTaskGetTickCount_success( void )
|
||||
{
|
||||
TickType_t ret_get_tick_count;
|
||||
|
||||
|
|
@ -3796,8 +3796,8 @@ void test_vTaskMissedYield( void )
|
|||
TEST_ASSERT_TRUE( xYieldPending );
|
||||
}
|
||||
|
||||
/* TODO: find a way to fix the iddle task UnitTest as it is an infitine loop */
|
||||
void ignore_test_prvIddleTask_yield( void )
|
||||
/* TODO: find a way to fix the idle task UnitTest as it is an infinite loop */
|
||||
void ignore_test_prvIdleTask_yield( void )
|
||||
{
|
||||
int i = 8;
|
||||
void * args = &i;
|
||||
|
|
@ -3918,7 +3918,7 @@ void test_vTaskStepTick()
|
|||
|
||||
/* testing configNUM_THREAD_LOCAL_STORAGE_POINTERS */
|
||||
|
||||
/* this test ensures that the value set is also retreived */
|
||||
/* this test ensures that the value set is also retrieved */
|
||||
void test_vTask_Set_Get_ThreadLocalStoragePointer_success( void )
|
||||
{
|
||||
TaskHandle_t task_handle;
|
||||
|
|
@ -4463,7 +4463,7 @@ static void notif_received()
|
|||
ptcb->ucNotifyState[ 0 ] = 2; /* taskNOTIFICATION_RECEIVED */
|
||||
}
|
||||
|
||||
void test_ulTaskGenericNotifyTake_sucess( void )
|
||||
void test_ulTaskGenericNotifyTake_success( void )
|
||||
{
|
||||
TaskHandle_t task_handle;
|
||||
UBaseType_t uxIndexToWait = 0;
|
||||
|
|
@ -4483,7 +4483,7 @@ void test_ulTaskGenericNotifyTake_sucess( void )
|
|||
ASSERT_PORT_YIELD_WITHIN_API_NOT_CALLED();
|
||||
}
|
||||
|
||||
void test_ulTaskGenericNotifyTake_sucess2( void )
|
||||
void test_ulTaskGenericNotifyTake_success2( void )
|
||||
{
|
||||
TaskHandle_t task_handle;
|
||||
UBaseType_t uxIndexToWait = 0;
|
||||
|
|
@ -4503,7 +4503,7 @@ void test_ulTaskGenericNotifyTake_sucess2( void )
|
|||
ASSERT_PORT_YIELD_WITHIN_API_NOT_CALLED();
|
||||
}
|
||||
|
||||
void test_ulTaskGenericNotifyTake_sucess_clear_count( void )
|
||||
void test_ulTaskGenericNotifyTake_success_clear_count( void )
|
||||
{
|
||||
TaskHandle_t task_handle;
|
||||
UBaseType_t uxIndexToWait = 0;
|
||||
|
|
@ -4523,7 +4523,7 @@ void test_ulTaskGenericNotifyTake_sucess_clear_count( void )
|
|||
ASSERT_PORT_YIELD_WITHIN_API_NOT_CALLED();
|
||||
}
|
||||
|
||||
void test_ulTaskGenericNotifyTake_sucess_yield( void )
|
||||
void test_ulTaskGenericNotifyTake_success_yield( void )
|
||||
{
|
||||
TaskHandle_t task_handle;
|
||||
UBaseType_t uxIndexToWait = 0;
|
||||
|
|
@ -5114,7 +5114,7 @@ void test_xTaskGenericNotify_success_default_ISR_task_woken_null( void )
|
|||
}
|
||||
|
||||
|
||||
void test_xTaskGenericNotifyWait_success_notif_recieved( void )
|
||||
void test_xTaskGenericNotifyWait_success_notif_received( void )
|
||||
{
|
||||
UBaseType_t uxIndexToWait = 0;
|
||||
uint32_t ulBitsToClearOnEntry = 0;
|
||||
|
|
@ -5140,7 +5140,7 @@ void test_xTaskGenericNotifyWait_success_notif_recieved( void )
|
|||
ASSERT_PORT_YIELD_WITHIN_API_NOT_CALLED();
|
||||
}
|
||||
|
||||
void test_xTaskGenericNotifyWait_success_notif_not_recieved( void )
|
||||
void test_xTaskGenericNotifyWait_success_notif_not_received( void )
|
||||
{
|
||||
UBaseType_t uxIndexToWait = 0;
|
||||
uint32_t ulBitsToClearOnEntry = 0;
|
||||
|
|
@ -5173,7 +5173,7 @@ void test_xTaskGenericNotifyWait_success_notif_not_recieved( void )
|
|||
ASSERT_PORT_YIELD_WITHIN_API_CALLED();
|
||||
}
|
||||
|
||||
void test_xTaskGenericNotifyWait_success_notif_not_recieved_no_wait( void )
|
||||
void test_xTaskGenericNotifyWait_success_notif_not_received_no_wait( void )
|
||||
{
|
||||
UBaseType_t uxIndexToWait = 0;
|
||||
uint32_t ulBitsToClearOnEntry = 0;
|
||||
|
|
@ -5202,7 +5202,7 @@ void test_xTaskGenericNotifyWait_success_notif_not_recieved_no_wait( void )
|
|||
ASSERT_PORT_YIELD_WITHIN_API_NOT_CALLED();
|
||||
}
|
||||
|
||||
void test_xTaskGenericNotifyWait_success_notif_not_recieved_pull_null( void )
|
||||
void test_xTaskGenericNotifyWait_success_notif_not_received_pull_null( void )
|
||||
{
|
||||
UBaseType_t uxIndexToWait = 0;
|
||||
uint32_t ulBitsToClearOnEntry = 0;
|
||||
|
|
@ -5229,7 +5229,7 @@ void test_xTaskGenericNotifyWait_success_notif_not_recieved_pull_null( void )
|
|||
ASSERT_PORT_YIELD_WITHIN_API_NOT_CALLED();
|
||||
}
|
||||
|
||||
void test_xTaskGenericNotifyWait_success_notif_recieved_while_waiting( void )
|
||||
void test_xTaskGenericNotifyWait_success_notif_received_while_waiting( void )
|
||||
{
|
||||
UBaseType_t uxIndexToWait = 0;
|
||||
uint32_t ulBitsToClearOnEntry = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue