Update RISC-V project to used official port stubs in place of third party port.

This commit is contained in:
Richard Barry 2018-07-07 21:54:41 +00:00
parent 3bfc32d444
commit f6cbf20019
9 changed files with 52 additions and 35 deletions

View file

@ -50,13 +50,15 @@ static void prvTaskExitError( void );
void prvTaskExitError( void )
{
volatile uint32_t ulx = 0;
/* A function that implements a task must not exit or attempt to return to
its caller as there is nothing to return to. If a task wants to exit it
should instead call vTaskDelete( NULL ).
Artificially force an assert() to be triggered if configASSERT() is
defined, then stop here so application writers can catch the error. */
configASSERT( uxCriticalNesting == ~0UL );
configASSERT( ulx == ~0UL );
portDISABLE_INTERRUPTS();
for( ;; );
}

View file

@ -81,7 +81,7 @@ not need to be guarded with a critical section. */
extern int vPortSetInterruptMask( void );
extern void vPortClearInterruptMask( int );
#define portSET_INTERRUPT_MASK_FROM_ISR()
#define portSET_INTERRUPT_MASK_FROM_ISR() 0
#define portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedStatusValue )
#define portDISABLE_INTERRUPTS()
#define portENABLE_INTERRUPTS()