Posix Port: Comment and remove unused variables

This commit is contained in:
Alfred Gedeon 2020-12-10 22:55:41 -08:00
parent 47338393f1
commit 33d6aba545

View file

@ -199,7 +199,10 @@ sigset_t xSignals;
} }
/* Cancel the Idle task and free its resources */ /* Cancel the Idle task and free its resources */
#if ( INCLUDE_xTaskGetIdleTaskHandle == 1 )
vPortCancelThread( xTaskGetIdleTaskHandle() ); vPortCancelThread( xTaskGetIdleTaskHandle() );
#endif
#if ( configUSE_TIMERS == 1 ) #if ( configUSE_TIMERS == 1 )
/* Cancel the Timer task and free its resources */ /* Cancel the Timer task and free its resources */
vPortCancelThread( xTimerGetTimerDaemonTaskHandle() ); vPortCancelThread( xTimerGetTimerDaemonTaskHandle() );
@ -323,7 +326,9 @@ struct timespec t;
} }
static uint64_t prvStartTimeNs; static uint64_t prvStartTimeNs;
static uint64_t prvTickCount; /* commented as part of the code below in vPortSystemTickHandler,
* to adjust timing according to full demo requirements */
/* static uint64_t prvTickCount; */
/* /*
* Setup the systick timer to generate the tick interrupts at the required * Setup the systick timer to generate the tick interrupts at the required
@ -364,7 +369,7 @@ static void vPortSystemTickHandler( int sig )
{ {
Thread_t *pxThreadToSuspend; Thread_t *pxThreadToSuspend;
Thread_t *pxThreadToResume; Thread_t *pxThreadToResume;
uint64_t xExpectedTicks; /* uint64_t xExpectedTicks; */
uxCriticalNesting++; /* Signals are blocked in this signal handler. */ uxCriticalNesting++; /* Signals are blocked in this signal handler. */
@ -471,8 +476,6 @@ BaseType_t uxSavedCriticalNesting;
static void prvSuspendSelf( Thread_t *thread ) static void prvSuspendSelf( Thread_t *thread )
{ {
int iSig;
/* /*
* Suspend this thread by waiting for a pthread_cond_signal event. * Suspend this thread by waiting for a pthread_cond_signal event.
* *