Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers fnet_serial_config.h Source File

fnet_serial_config.h

00001 /**************************************************************************
00002 *
00003 * Copyright 2011-2016 by Andrey Butok. FNET Community.
00004 * Copyright 2008-2010 by Andrey Butok. Freescale Semiconductor, Inc.
00005 *
00006 ***************************************************************************
00007 *
00008 *  Licensed under the Apache License, Version 2.0 (the "License"); you may
00009 *  not use this file except in compliance with the License.
00010 *  You may obtain a copy of the License at
00011 *
00012 *  http://www.apache.org/licenses/LICENSE-2.0
00013 *
00014 *  Unless required by applicable law or agreed to in writing, software
00015 *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00016 *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00017 *  See the License for the specific language governing permissions and
00018 *  limitations under the License.
00019 *
00020 **********************************************************************/
00021 /*!
00022 * @brief FNET Serial lib. configuration file.
00023 *
00024 ***************************************************************************/
00025 
00026 /**************************************************************************
00027  * !!!DO NOT MODIFY THIS FILE!!!
00028  **************************************************************************/
00029 
00030 #ifndef _FNET_SERIAL_CONFIG_H_
00031 
00032 #define _FNET_SERIAL_CONFIG_H_
00033 
00034 /*! @addtogroup fnet_serial_config */
00035 /*! @{ */
00036 
00037 /**************************************************************************/ /*!
00038  * @def     FNET_CFG_SERIAL_PRINTF_N_TO_RN
00039  * @brief   Automatic replacing of all line feeds ("\n") inside the format
00040  *          string to CR LF ("\r\n") by fnet_(s)printf() functions:
00041  *               - @b @c 1 = is enabled (Deafault value, to save some ROM).
00042  *               - @c 0 = is disabled.@n
00043  *           @n
00044  * To save some bytes from all the hard coded strings the fnet_(s)printf() functions will
00045  * expand all line feeds ("\n") inside the format string to CR LF ("\r\n").
00046  * So do not use "\r\n" in  the format string - it will be expanded to
00047  * "\r\r\n". It is save to add it via a parameter though, e.g.
00048  * fnet_printf("%s", "\r\n");
00049  * @showinitializer
00050  ******************************************************************************/
00051 #ifndef FNET_CFG_SERIAL_PRINTF_N_TO_RN
00052     #define FNET_CFG_SERIAL_PRINTF_N_TO_RN     (1)
00053 #endif
00054 
00055 /*! @} */
00056 
00057 #endif