1 /* 2 * FreeRTOS V202212.00 3 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. 4 * 5 * Permission is hereby granted, free of charge, to any person obtaining a copy of 6 * this software and associated documentation files (the "Software"), to deal in 7 * the Software without restriction, including without limitation the rights to 8 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 * the Software, and to permit persons to whom the Software is furnished to do so, 10 * subject to the following conditions: 11 * 12 * The above copyright notice and this permission notice shall be included in all 13 * copies or substantial portions of the Software. 14 * 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 * 22 * https://www.FreeRTOS.org 23 * https://github.com/FreeRTOS 24 * 25 */ 26 #ifndef CORE_SNTP_CONFIG_H 27 #define CORE_SNTP_CONFIG_H 28 29 /**************************************************/ 30 /******* DO NOT CHANGE the following order ********/ 31 /**************************************************/ 32 33 /* Include logging header files and define logging macros in the following order: 34 * 1. Include the header file "logging_levels.h". 35 * 2. Define the LIBRARY_LOG_NAME and LIBRARY_LOG_LEVEL macros depending on 36 * the logging configuration for SNTP. 37 * 3. Include the header file "logging_stack.h", if logging is enabled for SNTP. 38 */ 39 40 #include "logging_levels.h" 41 42 /* Logging configuration for the SNTP library. */ 43 #ifndef LIBRARY_LOG_NAME 44 #define LIBRARY_LOG_NAME "SNTP" 45 #endif 46 47 #ifndef LIBRARY_LOG_LEVEL 48 #define LIBRARY_LOG_LEVEL LOG_ERROR 49 #endif 50 51 /* Prototype for the function used to print to console on Windows simulator 52 * of FreeRTOS. 53 * The function prints to the console before the network is connected; 54 * then a UDP port after the network has connected. */ 55 extern void vLoggingPrintf( const char * pcFormatString, 56 ... ); 57 58 /* Map the SdkLog macro to the logging function to enable logging 59 * on Windows simulator. */ 60 #ifndef SdkLog 61 #define SdkLog( message ) vLoggingPrintf message 62 #endif 63 64 #include "logging_stack.h" 65 /************ End of logging configuration ****************/ 66 67 #endif /* ifndef CORE_SNTP_CONFIG_H */ 68