mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Committer:
AnnaBridge
Date:
Thu Nov 23 11:57:25 2017 +0000
Revision:
178:79309dc6340a
Parent:
151:5eaa88a5bcc7
Child:
181:57724642e740
mbed-dev library. Release version 156

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 151:5eaa88a5bcc7 1 /** \addtogroup platform */
<> 151:5eaa88a5bcc7 2 /** @{*/
AnnaBridge 178:79309dc6340a 3 /**
AnnaBridge 178:79309dc6340a 4 * \defgroup platform_preprocessor preprocessor macros
AnnaBridge 178:79309dc6340a 5 * @{
AnnaBridge 178:79309dc6340a 6 */
AnnaBridge 178:79309dc6340a 7
<> 151:5eaa88a5bcc7 8 /* mbed Microcontroller Library
<> 151:5eaa88a5bcc7 9 * Copyright (c) 2006-2013 ARM Limited
<> 151:5eaa88a5bcc7 10 *
<> 151:5eaa88a5bcc7 11 * Licensed under the Apache License, Version 2.0 (the "License");
<> 151:5eaa88a5bcc7 12 * you may not use this file except in compliance with the License.
<> 151:5eaa88a5bcc7 13 * You may obtain a copy of the License at
<> 151:5eaa88a5bcc7 14 *
<> 151:5eaa88a5bcc7 15 * http://www.apache.org/licenses/LICENSE-2.0
<> 151:5eaa88a5bcc7 16 *
<> 151:5eaa88a5bcc7 17 * Unless required by applicable law or agreed to in writing, software
<> 151:5eaa88a5bcc7 18 * distributed under the License is distributed on an "AS IS" BASIS,
<> 151:5eaa88a5bcc7 19 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<> 151:5eaa88a5bcc7 20 * See the License for the specific language governing permissions and
<> 151:5eaa88a5bcc7 21 * limitations under the License.
<> 151:5eaa88a5bcc7 22 */
<> 151:5eaa88a5bcc7 23 #ifndef MBED_PREPROCESSOR_H
<> 151:5eaa88a5bcc7 24 #define MBED_PREPROCESSOR_H
<> 151:5eaa88a5bcc7 25
<> 151:5eaa88a5bcc7 26
<> 151:5eaa88a5bcc7 27 /** MBED_CONCAT
<> 151:5eaa88a5bcc7 28 * Concatenate tokens together
<> 151:5eaa88a5bcc7 29 *
<> 151:5eaa88a5bcc7 30 * @note
<> 151:5eaa88a5bcc7 31 * Expands tokens before concatenation
<> 151:5eaa88a5bcc7 32 *
<> 151:5eaa88a5bcc7 33 * @code
<> 151:5eaa88a5bcc7 34 * // Creates a unique label based on the line number
<> 151:5eaa88a5bcc7 35 * int MBED_CONCAT(UNIQUE_LABEL_, __LINE__) = 1;
<> 151:5eaa88a5bcc7 36 * @endcode
<> 151:5eaa88a5bcc7 37 */
<> 151:5eaa88a5bcc7 38 #define MBED_CONCAT(a, b) MBED_CONCAT_(a, b)
<> 151:5eaa88a5bcc7 39 #define MBED_CONCAT_(a, b) a##b
<> 151:5eaa88a5bcc7 40
<> 151:5eaa88a5bcc7 41 /** MBED_STRINGIFY
<> 151:5eaa88a5bcc7 42 * Converts tokens into strings
<> 151:5eaa88a5bcc7 43 *
<> 151:5eaa88a5bcc7 44 * @note
<> 151:5eaa88a5bcc7 45 * Expands tokens before stringification
<> 151:5eaa88a5bcc7 46 *
<> 151:5eaa88a5bcc7 47 * @code
<> 151:5eaa88a5bcc7 48 * // Creates a string based on the parameters
<> 151:5eaa88a5bcc7 49 * const char *c = MBED_STRINGIFY(This is a ridiculous way to create a string)
<> 151:5eaa88a5bcc7 50 * @endcode
<> 151:5eaa88a5bcc7 51 */
<> 151:5eaa88a5bcc7 52 #define MBED_STRINGIFY(a) MBED_STRINGIFY_(a)
<> 151:5eaa88a5bcc7 53 #define MBED_STRINGIFY_(a) #a
<> 151:5eaa88a5bcc7 54
<> 151:5eaa88a5bcc7 55
<> 151:5eaa88a5bcc7 56 #endif
<> 151:5eaa88a5bcc7 57
<> 151:5eaa88a5bcc7 58 /** @}*/
AnnaBridge 178:79309dc6340a 59 /** @}*/