From 33d6aba5450cd8ba3d589d7ecbd72ea817f9a148 Mon Sep 17 00:00:00 2001 From: Alfred Gedeon Date: Thu, 10 Dec 2020 22:55:41 -0800 Subject: [PATCH] Posix Port: Comment and remove unused variables --- portable/ThirdParty/GCC/Posix/port.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/portable/ThirdParty/GCC/Posix/port.c b/portable/ThirdParty/GCC/Posix/port.c index ea94e89cf..fd9bad0d7 100644 --- a/portable/ThirdParty/GCC/Posix/port.c +++ b/portable/ThirdParty/GCC/Posix/port.c @@ -199,7 +199,10 @@ sigset_t xSignals; } /* Cancel the Idle task and free its resources */ +#if ( INCLUDE_xTaskGetIdleTaskHandle == 1 ) vPortCancelThread( xTaskGetIdleTaskHandle() ); +#endif + #if ( configUSE_TIMERS == 1 ) /* Cancel the Timer task and free its resources */ vPortCancelThread( xTimerGetTimerDaemonTaskHandle() ); @@ -323,7 +326,9 @@ struct timespec t; } 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 @@ -364,7 +369,7 @@ static void vPortSystemTickHandler( int sig ) { Thread_t *pxThreadToSuspend; Thread_t *pxThreadToResume; -uint64_t xExpectedTicks; +/* uint64_t xExpectedTicks; */ uxCriticalNesting++; /* Signals are blocked in this signal handler. */ @@ -471,8 +476,6 @@ BaseType_t uxSavedCriticalNesting; static void prvSuspendSelf( Thread_t *thread ) { -int iSig; - /* * Suspend this thread by waiting for a pthread_cond_signal event. *