Posix Port: Comment and remove unused variables (#230)
* Posix Port: Comment and remove unused variables * Fix header, replace tabs with spaces
This commit is contained in:
parent
47338393f1
commit
a48f137896
16
portable/ThirdParty/GCC/Posix/port.c
vendored
16
portable/ThirdParty/GCC/Posix/port.c
vendored
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* FreeRTOS Kernel V10.4.2
|
||||
* Copyright (C) 2020 Cambridge Consultants Ltd.
|
||||
* 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
|
||||
@ -22,7 +22,6 @@
|
||||
* https://www.FreeRTOS.org
|
||||
* https://github.com/FreeRTOS
|
||||
*
|
||||
* 1 tab == 4 spaces!
|
||||
*/
|
||||
|
||||
/*-----------------------------------------------------------
|
||||
@ -199,7 +198,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 +325,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 +368,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 +475,6 @@ BaseType_t uxSavedCriticalNesting;
|
||||
|
||||
static void prvSuspendSelf( Thread_t *thread )
|
||||
{
|
||||
int iSig;
|
||||
|
||||
/*
|
||||
* Suspend this thread by waiting for a pthread_cond_signal event.
|
||||
*
|
||||
@ -523,7 +525,7 @@ int iRet;
|
||||
* will be unblocked.
|
||||
*/
|
||||
(void)pthread_sigmask( SIG_SETMASK, &xAllSignals,
|
||||
&xSchedulerOriginalSignalMask );
|
||||
*&xSchedulerOriginalSignalMask );
|
||||
|
||||
/* SIG_RESUME is only used with sigwait() so doesn't need a
|
||||
handler. */
|
||||
|
Reference in New Issue
Block a user