The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
AnnaBridge
Date:
Wed Feb 20 20:53:29 2019 +0000
Revision:
172:65be27845400
Parent:
171:3a7713b1edbc
mbed library release version 165

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 171:3a7713b1edbc 1 #ifndef _STRINGZ_H_
AnnaBridge 171:3a7713b1edbc 2 #define _STRINGZ_H_
AnnaBridge 171:3a7713b1edbc 3
AnnaBridge 171:3a7713b1edbc 4 /**
AnnaBridge 171:3a7713b1edbc 5 * \defgroup group_sam0_utils_stringz Preprocessor - Stringize
AnnaBridge 171:3a7713b1edbc 6 *
AnnaBridge 171:3a7713b1edbc 7 * \ingroup group_sam0_utils
AnnaBridge 171:3a7713b1edbc 8 *
AnnaBridge 171:3a7713b1edbc 9 * @{
AnnaBridge 171:3a7713b1edbc 10 */
AnnaBridge 171:3a7713b1edbc 11
AnnaBridge 171:3a7713b1edbc 12 /** \brief Stringize.
AnnaBridge 171:3a7713b1edbc 13 *
AnnaBridge 171:3a7713b1edbc 14 * Stringize a preprocessing token, this token being allowed to be \#defined.
AnnaBridge 171:3a7713b1edbc 15 *
AnnaBridge 171:3a7713b1edbc 16 * May be used only within macros with the token passed as an argument if the
AnnaBridge 171:3a7713b1edbc 17 * token is \#defined.
AnnaBridge 171:3a7713b1edbc 18 *
AnnaBridge 171:3a7713b1edbc 19 * For example, writing STRINGZ(PIN) within a macro \#defined by PIN_NAME(PIN)
AnnaBridge 171:3a7713b1edbc 20 * and invoked as PIN_NAME(PIN0) with PIN0 \#defined as A0 is equivalent to
AnnaBridge 171:3a7713b1edbc 21 * writing "A0".
AnnaBridge 171:3a7713b1edbc 22 */
AnnaBridge 171:3a7713b1edbc 23 #define STRINGZ(x) #x
AnnaBridge 171:3a7713b1edbc 24
AnnaBridge 171:3a7713b1edbc 25 /** \brief Absolute stringize.
AnnaBridge 171:3a7713b1edbc 26 *
AnnaBridge 171:3a7713b1edbc 27 * Stringize a preprocessing token, this token being allowed to be \#defined.
AnnaBridge 171:3a7713b1edbc 28 *
AnnaBridge 171:3a7713b1edbc 29 * No restriction of use if the token is \#defined.
AnnaBridge 171:3a7713b1edbc 30 *
AnnaBridge 171:3a7713b1edbc 31 * For example, writing ASTRINGZ(PIN0) anywhere with PIN0 \#defined as A0 is
AnnaBridge 171:3a7713b1edbc 32 * equivalent to writing "A0".
AnnaBridge 171:3a7713b1edbc 33 */
AnnaBridge 171:3a7713b1edbc 34 #define ASTRINGZ(x) STRINGZ(x)
AnnaBridge 171:3a7713b1edbc 35
AnnaBridge 171:3a7713b1edbc 36 /** @} */
AnnaBridge 171:3a7713b1edbc 37
AnnaBridge 171:3a7713b1edbc 38 #endif // _STRINGZ_H_