mbed library sources. Supersedes mbed-src. Add PORTG support for STM32L476JG (SensorTile kit)
Fork of mbed-dev by
platform/mbed_preprocessor.h@151:5eaa88a5bcc7, 2016-11-24 (annotated)
- Committer:
- <>
- Date:
- Thu Nov 24 17:03:03 2016 +0000
- Revision:
- 151:5eaa88a5bcc7
This updates the lib to the mbed lib v130
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 151:5eaa88a5bcc7 | 1 | /** \addtogroup platform */ |
<> | 151:5eaa88a5bcc7 | 2 | /** @{*/ |
<> | 151:5eaa88a5bcc7 | 3 | /* mbed Microcontroller Library |
<> | 151:5eaa88a5bcc7 | 4 | * Copyright (c) 2006-2013 ARM Limited |
<> | 151:5eaa88a5bcc7 | 5 | * |
<> | 151:5eaa88a5bcc7 | 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
<> | 151:5eaa88a5bcc7 | 7 | * you may not use this file except in compliance with the License. |
<> | 151:5eaa88a5bcc7 | 8 | * You may obtain a copy of the License at |
<> | 151:5eaa88a5bcc7 | 9 | * |
<> | 151:5eaa88a5bcc7 | 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
<> | 151:5eaa88a5bcc7 | 11 | * |
<> | 151:5eaa88a5bcc7 | 12 | * Unless required by applicable law or agreed to in writing, software |
<> | 151:5eaa88a5bcc7 | 13 | * distributed under the License is distributed on an "AS IS" BASIS, |
<> | 151:5eaa88a5bcc7 | 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
<> | 151:5eaa88a5bcc7 | 15 | * See the License for the specific language governing permissions and |
<> | 151:5eaa88a5bcc7 | 16 | * limitations under the License. |
<> | 151:5eaa88a5bcc7 | 17 | */ |
<> | 151:5eaa88a5bcc7 | 18 | #ifndef MBED_PREPROCESSOR_H |
<> | 151:5eaa88a5bcc7 | 19 | #define MBED_PREPROCESSOR_H |
<> | 151:5eaa88a5bcc7 | 20 | |
<> | 151:5eaa88a5bcc7 | 21 | |
<> | 151:5eaa88a5bcc7 | 22 | /** MBED_CONCAT |
<> | 151:5eaa88a5bcc7 | 23 | * Concatenate tokens together |
<> | 151:5eaa88a5bcc7 | 24 | * |
<> | 151:5eaa88a5bcc7 | 25 | * @note |
<> | 151:5eaa88a5bcc7 | 26 | * Expands tokens before concatenation |
<> | 151:5eaa88a5bcc7 | 27 | * |
<> | 151:5eaa88a5bcc7 | 28 | * @code |
<> | 151:5eaa88a5bcc7 | 29 | * // Creates a unique label based on the line number |
<> | 151:5eaa88a5bcc7 | 30 | * int MBED_CONCAT(UNIQUE_LABEL_, __LINE__) = 1; |
<> | 151:5eaa88a5bcc7 | 31 | * @endcode |
<> | 151:5eaa88a5bcc7 | 32 | */ |
<> | 151:5eaa88a5bcc7 | 33 | #define MBED_CONCAT(a, b) MBED_CONCAT_(a, b) |
<> | 151:5eaa88a5bcc7 | 34 | #define MBED_CONCAT_(a, b) a##b |
<> | 151:5eaa88a5bcc7 | 35 | |
<> | 151:5eaa88a5bcc7 | 36 | /** MBED_STRINGIFY |
<> | 151:5eaa88a5bcc7 | 37 | * Converts tokens into strings |
<> | 151:5eaa88a5bcc7 | 38 | * |
<> | 151:5eaa88a5bcc7 | 39 | * @note |
<> | 151:5eaa88a5bcc7 | 40 | * Expands tokens before stringification |
<> | 151:5eaa88a5bcc7 | 41 | * |
<> | 151:5eaa88a5bcc7 | 42 | * @code |
<> | 151:5eaa88a5bcc7 | 43 | * // Creates a string based on the parameters |
<> | 151:5eaa88a5bcc7 | 44 | * const char *c = MBED_STRINGIFY(This is a ridiculous way to create a string) |
<> | 151:5eaa88a5bcc7 | 45 | * @endcode |
<> | 151:5eaa88a5bcc7 | 46 | */ |
<> | 151:5eaa88a5bcc7 | 47 | #define MBED_STRINGIFY(a) MBED_STRINGIFY_(a) |
<> | 151:5eaa88a5bcc7 | 48 | #define MBED_STRINGIFY_(a) #a |
<> | 151:5eaa88a5bcc7 | 49 | |
<> | 151:5eaa88a5bcc7 | 50 | |
<> | 151:5eaa88a5bcc7 | 51 | #endif |
<> | 151:5eaa88a5bcc7 | 52 | |
<> | 151:5eaa88a5bcc7 | 53 | /** @}*/ |