mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-14 00:37:44 -04:00
POSIX Demo: clang warnings cleanup (#1359)
Cleanup for clang compiler warnings: - add "#include" to proper header files - add "static" modifier to some vars - if tracing is disabled, do not compile helper functions - remove unused macro "mainFLASH_TASK_PRIORITY" Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
This commit is contained in:
parent
9b5e277a6f
commit
722d17b13a
3 changed files with 9 additions and 3 deletions
|
@ -34,8 +34,10 @@
|
||||||
#include <FreeRTOS.h>
|
#include <FreeRTOS.h>
|
||||||
#include <semphr.h>
|
#include <semphr.h>
|
||||||
|
|
||||||
SemaphoreHandle_t xStdioMutex;
|
#include "console.h"
|
||||||
StaticSemaphore_t xStdioMutexBuffer;
|
|
||||||
|
static SemaphoreHandle_t xStdioMutex;
|
||||||
|
static StaticSemaphore_t xStdioMutexBuffer;
|
||||||
|
|
||||||
void console_init( void )
|
void console_init( void )
|
||||||
{
|
{
|
||||||
|
|
|
@ -67,6 +67,7 @@
|
||||||
|
|
||||||
/* Local includes. */
|
/* Local includes. */
|
||||||
#include "console.h"
|
#include "console.h"
|
||||||
|
#include "timers.h"
|
||||||
|
|
||||||
#if ( projENABLE_TRACING == 1 )
|
#if ( projENABLE_TRACING == 1 )
|
||||||
#include <trcRecorder.h>
|
#include <trcRecorder.h>
|
||||||
|
@ -460,6 +461,8 @@ void handle_sigint( int signal )
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
#if ( projENABLE_TRACING == 1 )
|
||||||
|
|
||||||
static uint32_t ulEntryTime = 0;
|
static uint32_t ulEntryTime = 0;
|
||||||
|
|
||||||
void vTraceTimerReset( void )
|
void vTraceTimerReset( void )
|
||||||
|
@ -481,4 +484,6 @@ uint32_t uiTraceTimerGetValue( void )
|
||||||
return( xTaskGetTickCount() - ulEntryTime );
|
return( xTaskGetTickCount() - ulEntryTime );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* if ( projENABLE_TRACING == 1 ) */
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
|
@ -114,7 +114,6 @@
|
||||||
#define mainSEM_TEST_PRIORITY ( tskIDLE_PRIORITY + 1 )
|
#define mainSEM_TEST_PRIORITY ( tskIDLE_PRIORITY + 1 )
|
||||||
#define mainBLOCK_Q_PRIORITY ( tskIDLE_PRIORITY + 2 )
|
#define mainBLOCK_Q_PRIORITY ( tskIDLE_PRIORITY + 2 )
|
||||||
#define mainCREATOR_TASK_PRIORITY ( tskIDLE_PRIORITY + 3 )
|
#define mainCREATOR_TASK_PRIORITY ( tskIDLE_PRIORITY + 3 )
|
||||||
#define mainFLASH_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 )
|
|
||||||
#define mainINTEGER_TASK_PRIORITY ( tskIDLE_PRIORITY )
|
#define mainINTEGER_TASK_PRIORITY ( tskIDLE_PRIORITY )
|
||||||
#define mainGEN_QUEUE_TASK_PRIORITY ( tskIDLE_PRIORITY )
|
#define mainGEN_QUEUE_TASK_PRIORITY ( tskIDLE_PRIORITY )
|
||||||
#define mainFLOP_TASK_PRIORITY ( tskIDLE_PRIORITY )
|
#define mainFLOP_TASK_PRIORITY ( tskIDLE_PRIORITY )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue