You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
2.9 KiB
C
73 lines
2.9 KiB
C
18 years ago
|
/* This header file is part of the ATMEL FREERTOS-0.9.0 Release */
|
||
|
|
||
|
/*This file is prepared for Doxygen automatic documentation generation.*/
|
||
|
/*! \file *********************************************************************
|
||
|
*
|
||
|
* \brief Preprocessor stringizing utils.
|
||
|
*
|
||
|
* - Compiler: IAR EWAVR32 and GNU GCC for AVR32
|
||
|
* - Supported devices: All AVR32 devices can be used.
|
||
|
*
|
||
|
* \author Atmel Corporation: http://www.atmel.com \n
|
||
|
* Support email: avr32@atmel.com
|
||
|
*
|
||
|
******************************************************************************/
|
||
|
|
||
|
/* Copyright (c) 2007, Atmel Corporation All rights reserved.
|
||
|
*
|
||
|
* Redistribution and use in source and binary forms, with or without
|
||
|
* modification, are permitted provided that the following conditions are met:
|
||
|
*
|
||
|
* 1. Redistributions of source code must retain the above copyright notice,
|
||
|
* this list of conditions and the following disclaimer.
|
||
|
*
|
||
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||
|
* this list of conditions and the following disclaimer in the documentation
|
||
|
* and/or other materials provided with the distribution.
|
||
|
*
|
||
|
* 3. The name of ATMEL may not be used to endorse or promote products derived
|
||
|
* from this software without specific prior written permission.
|
||
|
*
|
||
|
* THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||
|
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||
|
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND
|
||
|
* SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,
|
||
|
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||
|
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||
|
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||
|
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
|
*/
|
||
|
|
||
|
|
||
|
#ifndef _STRINGZ_H_
|
||
|
#define _STRINGZ_H_
|
||
|
|
||
|
|
||
|
/*! \brief Stringize.
|
||
|
*
|
||
|
* Stringize a preprocessing token, this token being allowed to be #defined.
|
||
|
*
|
||
|
* May be used only within macros with the token passed as an argument if the token is #defined.
|
||
|
*
|
||
|
* For example, writing STRINGZ(PIN) within a macro #defined by PIN_NAME(PIN)
|
||
|
* and invoked as PIN_NAME(PIN0) with PIN0 #defined as A0 is equivalent to
|
||
|
* writing "A0".
|
||
|
*/
|
||
|
#define STRINGZ(x) #x
|
||
|
|
||
|
/*! \brief Absolute stringize.
|
||
|
*
|
||
|
* Stringize a preprocessing token, this token being allowed to be #defined.
|
||
|
*
|
||
|
* No restriction of use if the token is #defined.
|
||
|
*
|
||
|
* For example, writing ASTRINGZ(PIN0) anywhere with PIN0 #defined as A0 is
|
||
|
* equivalent to writing "A0".
|
||
|
*/
|
||
|
#define ASTRINGZ(x) STRINGZ(x)
|
||
|
|
||
|
|
||
|
#endif // _STRINGZ_H_
|