CI-CD Updates (#768)

* Use new version of CI-CD Actions
* Use cSpell spell check, and use ubuntu-20.04 for formatting check
* Format and spell check all files in the portable directory
* Remove the https:// from #errors and #warnings as uncrustify attempts to change it to /*
* Use checkout@v3 instead of checkout@v2 on all jobs
---------
This commit is contained in:
Soren Ptak 2023-09-05 17:24:04 -04:00 committed by GitHub
parent d6bccb1f4c
commit 5fb9b50da8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
485 changed files with 108790 additions and 107581 deletions

View file

@ -33,7 +33,7 @@
/*-----------------------------------------------------------*/
/* We require the address of the pxCurrentTCB variable, but don't want to know
any details of its type. */
* any details of its type. */
typedef void TCB_t;
extern volatile TCB_t * volatile pxCurrentTCB;
@ -106,10 +106,12 @@ static void prvSetupTimerInterrupt( void );
*
* See the header file portable.h.
*/
StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters )
StackType_t * pxPortInitialiseStack( StackType_t * pxTopOfStack,
TaskFunction_t pxCode,
void * pvParameters )
{
/* Place a few bytes of known values on the bottom of the stack.
This is just useful for debugging. */
* This is just useful for debugging. */
*pxTopOfStack = 0x11111111;
pxTopOfStack--;
@ -119,9 +121,9 @@ StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t px
pxTopOfStack--;
/* This is a redundant push to the stack, it may be required if
in some implementations of the compiler the parameter to the task
is passed on to the stack rather than in R4 register. */
*pxTopOfStack = (StackType_t)(pvParameters);
* in some implementations of the compiler the parameter to the task
* is passed on to the stack rather than in R4 register. */
*pxTopOfStack = ( StackType_t ) ( pvParameters );
pxTopOfStack--;
*pxTopOfStack = ( StackType_t ) 0x00000000; /* RP */
@ -134,36 +136,36 @@ StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t px
pxTopOfStack--;
/* In the current implementation of the compiler the first
parameter to the task (or function) is passed via R4 parameter
to the task, hence the pvParameters pointer is copied into the R4
register. See compiler manual section 4.6.2 for more information. */
*pxTopOfStack = ( StackType_t ) (pvParameters); /* R4 */
* parameter to the task (or function) is passed via R4 parameter
* to the task, hence the pvParameters pointer is copied into the R4
* register. See compiler manual section 4.6.2 for more information. */
*pxTopOfStack = ( StackType_t ) ( pvParameters ); /* R4 */
pxTopOfStack--;
*pxTopOfStack = ( StackType_t ) 0x00003333; /* R3 */
*pxTopOfStack = ( StackType_t ) 0x00003333; /* R3 */
pxTopOfStack--;
*pxTopOfStack = ( StackType_t ) 0x00002222; /* R2 */
*pxTopOfStack = ( StackType_t ) 0x00002222; /* R2 */
pxTopOfStack--;
*pxTopOfStack = ( StackType_t ) 0x00001111; /* R1 */
*pxTopOfStack = ( StackType_t ) 0x00001111; /* R1 */
pxTopOfStack--;
*pxTopOfStack = ( StackType_t ) 0x00000001; /* R0 */
*pxTopOfStack = ( StackType_t ) 0x00000001; /* R0 */
pxTopOfStack--;
*pxTopOfStack = ( StackType_t ) 0x0000EEEE; /* R14 */
*pxTopOfStack = ( StackType_t ) 0x0000EEEE; /* R14 */
pxTopOfStack--;
*pxTopOfStack = ( StackType_t ) 0x0000DDDD; /* R13 */
*pxTopOfStack = ( StackType_t ) 0x0000DDDD; /* R13 */
pxTopOfStack--;
*pxTopOfStack = ( StackType_t ) 0x0000CCCC; /* R12 */
*pxTopOfStack = ( StackType_t ) 0x0000CCCC; /* R12 */
pxTopOfStack--;
*pxTopOfStack = ( StackType_t ) 0x0000BBBB; /* R11 */
*pxTopOfStack = ( StackType_t ) 0x0000BBBB; /* R11 */
pxTopOfStack--;
*pxTopOfStack = ( StackType_t ) 0x0000AAAA; /* R10 */
*pxTopOfStack = ( StackType_t ) 0x0000AAAA; /* R10 */
pxTopOfStack--;
*pxTopOfStack = ( StackType_t ) 0x00009999; /* R9 */
*pxTopOfStack = ( StackType_t ) 0x00009999; /* R9 */
pxTopOfStack--;
*pxTopOfStack = ( StackType_t ) 0x00008888; /* R8 */
*pxTopOfStack = ( StackType_t ) 0x00008888; /* R8 */
pxTopOfStack--;
*pxTopOfStack = ( StackType_t ) 0x11110000; /* MDH */
*pxTopOfStack = ( StackType_t ) 0x11110000; /* MDH */
pxTopOfStack--;
*pxTopOfStack = ( StackType_t ) 0x22220000; /* MDL */
*pxTopOfStack = ( StackType_t ) 0x22220000; /* MDL */
pxTopOfStack--;
/* The start of the task code. */
@ -188,8 +190,8 @@ BaseType_t xPortStartScheduler( void )
#pragma endasm
/* Simulate a function call end as generated by the compiler. We will now
jump to the start of the task the context of which we have just restored. */
__asm(" reti ");
* jump to the start of the task the context of which we have just restored. */
__asm( " reti " );
/* Should not get here. */
return pdFAIL;
@ -199,39 +201,39 @@ BaseType_t xPortStartScheduler( void )
void vPortEndScheduler( void )
{
/* Not implemented - unlikely to ever be required as there is nothing to
return to. */
* return to. */
}
/*-----------------------------------------------------------*/
static void prvSetupTimerInterrupt( void )
{
/* The peripheral clock divided by 32 is used by the timer. */
const uint16_t usReloadValue = ( uint16_t ) ( ( ( configPER_CLOCK_HZ / configTICK_RATE_HZ ) / 32UL ) - 1UL );
const uint16_t usReloadValue = ( uint16_t ) ( ( ( configPER_CLOCK_HZ / configTICK_RATE_HZ ) / 32UL ) - 1UL );
/* Setup RLT0 to generate a tick interrupt. */
TMCSR0_CNTE = 0; /* Count Disable */
TMCSR0_CSL = 0x2; /* CLKP/32 */
TMCSR0_MOD = 0; /* Software trigger */
TMCSR0_RELD = 1; /* Reload */
TMCSR0_CNTE = 0; /* Count Disable */
TMCSR0_CSL = 0x2; /* CLKP/32 */
TMCSR0_MOD = 0; /* Software trigger */
TMCSR0_RELD = 1; /* Reload */
TMCSR0_UF = 0; /* Clear underflow flag */
TMCSR0_UF = 0; /* Clear underflow flag */
TMRLR0 = usReloadValue;
TMCSR0_INTE = 1; /* Interrupt Enable */
TMCSR0_CNTE = 1; /* Count Enable */
TMCSR0_TRG = 1; /* Trigger */
TMCSR0_INTE = 1; /* Interrupt Enable */
TMCSR0_CNTE = 1; /* Count Enable */
TMCSR0_TRG = 1; /* Trigger */
PORTEN = 0x3; /* Port Enable */
PORTEN = 0x3; /* Port Enable */
}
/*-----------------------------------------------------------*/
#if configUSE_PREEMPTION == 1
/*
* Tick ISR for preemptive scheduler. The tick count is incremented
* after the context is saved. Then the context is switched if required,
* and last the context of the task which is to be resumed is restored.
*/
/*
* Tick ISR for preemptive scheduler. The tick count is incremented
* after the context is saved. Then the context is switched if required,
* and last the context of the task which is to be resumed is restored.
*/
#pragma asm
@ -257,13 +259,13 @@ const uint16_t usReloadValue = ( uint16_t ) ( ( ( configPER_CLOCK_HZ / configTIC
#pragma endasm
#else
#else /* if configUSE_PREEMPTION == 1 */
/*
* Tick ISR for the cooperative scheduler. All this does is increment the
* tick count. We don't need to switch context, this can only be done by
* manual calls to taskYIELD();
*/
/*
* Tick ISR for the cooperative scheduler. All this does is increment the
* tick count. We don't need to switch context, this can only be done by
* manual calls to taskYIELD();
*/
__interrupt void ReloadTimer0_IRQHandler( void )
{
/* Clear RLT0 interrupt flag */
@ -271,7 +273,7 @@ const uint16_t usReloadValue = ( uint16_t ) ( ( ( configPER_CLOCK_HZ / configTIC
xTaskIncrementTick();
}
#endif
#endif /* if configUSE_PREEMPTION == 1 */
/*
* Manual context switch. We can use a __nosavereg attribute as the context