mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-17 18:27:47 -04:00
Fix build warning due to log configuration. (#715)
This commit is contained in:
parent
4a465406b4
commit
75639a3e86
4 changed files with 120 additions and 0 deletions
|
@ -32,6 +32,45 @@
|
||||||
#ifndef __CELLULAR_CONFIG_H__
|
#ifndef __CELLULAR_CONFIG_H__
|
||||||
#define __CELLULAR_CONFIG_H__
|
#define __CELLULAR_CONFIG_H__
|
||||||
|
|
||||||
|
/**************************************************/
|
||||||
|
/******* DO NOT CHANGE the following order ********/
|
||||||
|
/**************************************************/
|
||||||
|
|
||||||
|
/* Include logging header files and define logging macros in the following order:
|
||||||
|
* 1. Include the header file "logging_levels.h".
|
||||||
|
* 2. Define the LIBRARY_LOG_NAME and LIBRARY_LOG_LEVEL macros depending on
|
||||||
|
* the logging configuration for DEMO.
|
||||||
|
* 3. Include the header file "logging_stack.h", if logging is enabled for DEMO.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "logging_levels.h"
|
||||||
|
|
||||||
|
/* Logging configuration for the Demo. */
|
||||||
|
#ifndef LIBRARY_LOG_NAME
|
||||||
|
#define LIBRARY_LOG_NAME "CellularLib"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef LIBRARY_LOG_LEVEL
|
||||||
|
#define LIBRARY_LOG_LEVEL LOG_INFO
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Prototype for the function used to print to console on Windows simulator
|
||||||
|
* of FreeRTOS.
|
||||||
|
* The function prints to the console before the network is connected;
|
||||||
|
* then a UDP port after the network has connected. */
|
||||||
|
extern void vLoggingPrintf( const char * pcFormatString,
|
||||||
|
... );
|
||||||
|
|
||||||
|
/* Map the SdkLog macro to the logging function to enable logging
|
||||||
|
* on Windows simulator. */
|
||||||
|
#ifndef SdkLog
|
||||||
|
#define SdkLog( message ) vLoggingPrintf message
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "logging_stack.h"
|
||||||
|
|
||||||
|
/************ End of logging configuration ****************/
|
||||||
|
|
||||||
/* This is a project specific file and is used to override config values defined
|
/* This is a project specific file and is used to override config values defined
|
||||||
* in cellular_config_defaults.h. */
|
* in cellular_config_defaults.h. */
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,45 @@
|
||||||
#ifndef __CELLULAR_CONFIG_H__
|
#ifndef __CELLULAR_CONFIG_H__
|
||||||
#define __CELLULAR_CONFIG_H__
|
#define __CELLULAR_CONFIG_H__
|
||||||
|
|
||||||
|
/**************************************************/
|
||||||
|
/******* DO NOT CHANGE the following order ********/
|
||||||
|
/**************************************************/
|
||||||
|
|
||||||
|
/* Include logging header files and define logging macros in the following order:
|
||||||
|
* 1. Include the header file "logging_levels.h".
|
||||||
|
* 2. Define the LIBRARY_LOG_NAME and LIBRARY_LOG_LEVEL macros depending on
|
||||||
|
* the logging configuration for DEMO.
|
||||||
|
* 3. Include the header file "logging_stack.h", if logging is enabled for DEMO.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "logging_levels.h"
|
||||||
|
|
||||||
|
/* Logging configuration for the Demo. */
|
||||||
|
#ifndef LIBRARY_LOG_NAME
|
||||||
|
#define LIBRARY_LOG_NAME "CellularLib"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef LIBRARY_LOG_LEVEL
|
||||||
|
#define LIBRARY_LOG_LEVEL LOG_INFO
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Prototype for the function used to print to console on Windows simulator
|
||||||
|
* of FreeRTOS.
|
||||||
|
* The function prints to the console before the network is connected;
|
||||||
|
* then a UDP port after the network has connected. */
|
||||||
|
extern void vLoggingPrintf( const char * pcFormatString,
|
||||||
|
... );
|
||||||
|
|
||||||
|
/* Map the SdkLog macro to the logging function to enable logging
|
||||||
|
* on Windows simulator. */
|
||||||
|
#ifndef SdkLog
|
||||||
|
#define SdkLog( message ) vLoggingPrintf message
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "logging_stack.h"
|
||||||
|
|
||||||
|
/************ End of logging configuration ****************/
|
||||||
|
|
||||||
/* This is a project specific file and is used to override config values defined
|
/* This is a project specific file and is used to override config values defined
|
||||||
* in cellular_config_defaults.h. */
|
* in cellular_config_defaults.h. */
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,45 @@
|
||||||
#ifndef __CELLULAR_CONFIG_H__
|
#ifndef __CELLULAR_CONFIG_H__
|
||||||
#define __CELLULAR_CONFIG_H__
|
#define __CELLULAR_CONFIG_H__
|
||||||
|
|
||||||
|
/**************************************************/
|
||||||
|
/******* DO NOT CHANGE the following order ********/
|
||||||
|
/**************************************************/
|
||||||
|
|
||||||
|
/* Include logging header files and define logging macros in the following order:
|
||||||
|
* 1. Include the header file "logging_levels.h".
|
||||||
|
* 2. Define the LIBRARY_LOG_NAME and LIBRARY_LOG_LEVEL macros depending on
|
||||||
|
* the logging configuration for DEMO.
|
||||||
|
* 3. Include the header file "logging_stack.h", if logging is enabled for DEMO.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "logging_levels.h"
|
||||||
|
|
||||||
|
/* Logging configuration for the Demo. */
|
||||||
|
#ifndef LIBRARY_LOG_NAME
|
||||||
|
#define LIBRARY_LOG_NAME "CellularLib"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef LIBRARY_LOG_LEVEL
|
||||||
|
#define LIBRARY_LOG_LEVEL LOG_INFO
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Prototype for the function used to print to console on Windows simulator
|
||||||
|
* of FreeRTOS.
|
||||||
|
* The function prints to the console before the network is connected;
|
||||||
|
* then a UDP port after the network has connected. */
|
||||||
|
extern void vLoggingPrintf( const char * pcFormatString,
|
||||||
|
... );
|
||||||
|
|
||||||
|
/* Map the SdkLog macro to the logging function to enable logging
|
||||||
|
* on Windows simulator. */
|
||||||
|
#ifndef SdkLog
|
||||||
|
#define SdkLog( message ) vLoggingPrintf message
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "logging_stack.h"
|
||||||
|
|
||||||
|
/************ End of logging configuration ****************/
|
||||||
|
|
||||||
/* This is a project specific file and is used to override config values defined
|
/* This is a project specific file and is used to override config values defined
|
||||||
* in cellular_config_defaults.h. */
|
* in cellular_config_defaults.h. */
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,9 @@
|
||||||
#include "FreeRTOS.h"
|
#include "FreeRTOS.h"
|
||||||
#include "FreeRTOS_Sockets.h"
|
#include "FreeRTOS_Sockets.h"
|
||||||
|
|
||||||
|
/* Sockets wrapper includes. */
|
||||||
|
#include "sockets_wrapper.h"
|
||||||
|
|
||||||
/* mbed TLS includes. */
|
/* mbed TLS includes. */
|
||||||
#include "mbedtls_config.h"
|
#include "mbedtls_config.h"
|
||||||
#include "threading_alt.h"
|
#include "threading_alt.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue