Skip to content

Commit 7b15146

Browse files
authored
Fix warnings and update ReadMe (FreeRTOS#1067)
Fix warnings and update ReadMe Also, make the demo output comprehensible. Signed-off-by: Gaurav Aggarwal <[email protected]>
1 parent eefb87a commit 7b15146

File tree

11 files changed

+276
-304
lines changed

11 files changed

+276
-304
lines changed

FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_IPv6_Demo/IPv6_Multi_WinSim_demo/FreeRTOSConfig.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,4 +225,8 @@
225225
#define strncasecmp _strnicmp
226226
#define strcmpi _strcmpi
227227

228+
extern void vLoggingPrintf( const char * pcFormatString,
229+
... );
230+
#define configPRINTF( X ) vLoggingPrintf X
231+
228232
#endif /* FREERTOS_CONFIG_H */

FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_IPv6_Demo/IPv6_Multi_WinSim_demo/FreeRTOSIPConfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ extern void vLoggingPrintf( const char * pcFormatString,
4444
/* Set to 1 to print out debug messages. If ipconfigHAS_DEBUG_PRINTF is set to
4545
* 1 then FreeRTOS_debug_printf should be defined to the function used to print
4646
* out the debugging messages. */
47-
#define ipconfigHAS_DEBUG_PRINTF 1
47+
#define ipconfigHAS_DEBUG_PRINTF 0
4848
#if ( ipconfigHAS_DEBUG_PRINTF == 1 )
4949
#define FreeRTOS_debug_printf( X ) vLoggingPrintf X
5050
#endif
@@ -53,7 +53,7 @@ extern void vLoggingPrintf( const char * pcFormatString,
5353
* FreeRTOS_netstat() command, and ping replies. If ipconfigHAS_PRINTF is set to 1
5454
* then FreeRTOS_printf should be set to the function used to print out the
5555
* messages. */
56-
#define ipconfigHAS_PRINTF 1
56+
#define ipconfigHAS_PRINTF 0
5757
#if ( ipconfigHAS_PRINTF == 1 )
5858
#define FreeRTOS_printf( X ) vLoggingPrintf X
5959
#endif

FreeRTOS-Plus/Demo/FreeRTOS_Plus_TCP_IPv6_Demo/IPv6_Multi_WinSim_demo/Logging_WinSim.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ void vLoggingInit( BaseType_t xLogToStdout,
159159
/* Can only be called before the scheduler has started. */
160160
configASSERT( xTaskGetSchedulerState() == taskSCHEDULER_NOT_STARTED );
161161

162-
#if ( ( ipconfigHAS_DEBUG_PRINTF == 1 ) || ( ipconfigHAS_PRINTF == 1 ) )
162+
#if ( ( ipconfigHAS_DEBUG_PRINTF == 1 ) || ( ipconfigHAS_PRINTF == 1 ) || defined( configPRINTF ) )
163163
{
164164
HANDLE Win32Thread;
165165

@@ -215,7 +215,7 @@ void vLoggingInit( BaseType_t xLogToStdout,
215215
SetThreadPriority( Win32Thread, THREAD_PRIORITY_IDLE );
216216
}
217217
}
218-
#else /* if ( ( ipconfigHAS_DEBUG_PRINTF == 1 ) || ( ipconfigHAS_PRINTF == 1 ) ) */
218+
#else /* if ( ( ipconfigHAS_DEBUG_PRINTF == 1 ) || ( ipconfigHAS_PRINTF == 1 ) || defined( configPRINTF ) ) */
219219
{
220220
/* FreeRTOSIPConfig is set such that no print messages will be output.
221221
* Avoid compiler warnings about unused parameters. */
@@ -225,7 +225,7 @@ void vLoggingInit( BaseType_t xLogToStdout,
225225
( void ) usRemotePort;
226226
( void ) ulRemoteIPAddress;
227227
}
228-
#endif /* ( ipconfigHAS_DEBUG_PRINTF == 1 ) || ( ipconfigHAS_PRINTF == 1 ) */
228+
#endif /* ( ipconfigHAS_DEBUG_PRINTF == 1 ) || ( ipconfigHAS_PRINTF == 1 ) || defined( configPRINTF ) */
229229
}
230230
/*-----------------------------------------------------------*/
231231

0 commit comments

Comments
 (0)