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.
platform/mbed_preprocessor.h@140:97feb9bacc10, 2017-04-12 (annotated)
- Committer:
- <>
- Date:
- Wed Apr 12 16:07:08 2017 +0100
- Revision:
- 140:97feb9bacc10
- Parent:
- 130:d75b3fe1f5cb
- Child:
- 158:1c57384330a6
Release 140 of the mbed library
Ports for Upcoming Targets
3841: Add nRf52840 target https://github.com/ARMmbed/mbed-os/pull/3841
3992: Introducing UBLOX_C030 platform. https://github.com/ARMmbed/mbed-os/pull/3992
Fixes and Changes
3951: [NUCLEO_F303ZE] Correct ARDUINO pin https://github.com/ARMmbed/mbed-os/pull/3951
4021: Fixing a macro to detect when RTOS was in use for the NRF52840_DK https://github.com/ARMmbed/mbed-os/pull/4021
3979: KW24D: Add missing SPI defines and Arduino connector definitions https://github.com/ARMmbed/mbed-os/pull/3979
3990: UBLOX_C027: construct a ticker-based wait, rather than calling wait_ms(), in the https://github.com/ARMmbed/mbed-os/pull/3990
4003: Fixed OBOE in async serial tx for NRF52 target, fixes #4002 https://github.com/ARMmbed/mbed-os/pull/4003
4012: STM32: Correct I2C master error handling https://github.com/ARMmbed/mbed-os/pull/4012
4020: NUCLEO_L011K4 remove unsupported tool chain files https://github.com/ARMmbed/mbed-os/pull/4020
4065: K66F: Move bss section to m_data_2 Section https://github.com/ARMmbed/mbed-os/pull/4065
4014: Issue 3763: Reduce heap allocation in the GCC linker file https://github.com/ARMmbed/mbed-os/pull/4014
4030: [STM32L0] reduce IAR heap and stack size for small targets https://github.com/ARMmbed/mbed-os/pull/4030
4109: NUCLEO_L476RG : minor serial pin update https://github.com/ARMmbed/mbed-os/pull/4109
3982: Ticker - kl25z bugfix for handling events in the past https://github.com/ARMmbed/mbed-os/pull/3982
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 130:d75b3fe1f5cb | 1 | /** \addtogroup platform */ |
<> | 130:d75b3fe1f5cb | 2 | /** @{*/ |
<> | 130:d75b3fe1f5cb | 3 | /* mbed Microcontroller Library |
<> | 130:d75b3fe1f5cb | 4 | * Copyright (c) 2006-2013 ARM Limited |
<> | 130:d75b3fe1f5cb | 5 | * |
<> | 130:d75b3fe1f5cb | 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
<> | 130:d75b3fe1f5cb | 7 | * you may not use this file except in compliance with the License. |
<> | 130:d75b3fe1f5cb | 8 | * You may obtain a copy of the License at |
<> | 130:d75b3fe1f5cb | 9 | * |
<> | 130:d75b3fe1f5cb | 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
<> | 130:d75b3fe1f5cb | 11 | * |
<> | 130:d75b3fe1f5cb | 12 | * Unless required by applicable law or agreed to in writing, software |
<> | 130:d75b3fe1f5cb | 13 | * distributed under the License is distributed on an "AS IS" BASIS, |
<> | 130:d75b3fe1f5cb | 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
<> | 130:d75b3fe1f5cb | 15 | * See the License for the specific language governing permissions and |
<> | 130:d75b3fe1f5cb | 16 | * limitations under the License. |
<> | 130:d75b3fe1f5cb | 17 | */ |
<> | 130:d75b3fe1f5cb | 18 | #ifndef MBED_PREPROCESSOR_H |
<> | 130:d75b3fe1f5cb | 19 | #define MBED_PREPROCESSOR_H |
<> | 130:d75b3fe1f5cb | 20 | |
<> | 130:d75b3fe1f5cb | 21 | |
<> | 130:d75b3fe1f5cb | 22 | /** MBED_CONCAT |
<> | 130:d75b3fe1f5cb | 23 | * Concatenate tokens together |
<> | 130:d75b3fe1f5cb | 24 | * |
<> | 130:d75b3fe1f5cb | 25 | * @note |
<> | 130:d75b3fe1f5cb | 26 | * Expands tokens before concatenation |
<> | 130:d75b3fe1f5cb | 27 | * |
<> | 130:d75b3fe1f5cb | 28 | * @code |
<> | 130:d75b3fe1f5cb | 29 | * // Creates a unique label based on the line number |
<> | 130:d75b3fe1f5cb | 30 | * int MBED_CONCAT(UNIQUE_LABEL_, __LINE__) = 1; |
<> | 130:d75b3fe1f5cb | 31 | * @endcode |
<> | 130:d75b3fe1f5cb | 32 | */ |
<> | 130:d75b3fe1f5cb | 33 | #define MBED_CONCAT(a, b) MBED_CONCAT_(a, b) |
<> | 130:d75b3fe1f5cb | 34 | #define MBED_CONCAT_(a, b) a##b |
<> | 130:d75b3fe1f5cb | 35 | |
<> | 130:d75b3fe1f5cb | 36 | /** MBED_STRINGIFY |
<> | 130:d75b3fe1f5cb | 37 | * Converts tokens into strings |
<> | 130:d75b3fe1f5cb | 38 | * |
<> | 130:d75b3fe1f5cb | 39 | * @note |
<> | 130:d75b3fe1f5cb | 40 | * Expands tokens before stringification |
<> | 130:d75b3fe1f5cb | 41 | * |
<> | 130:d75b3fe1f5cb | 42 | * @code |
<> | 130:d75b3fe1f5cb | 43 | * // Creates a string based on the parameters |
<> | 130:d75b3fe1f5cb | 44 | * const char *c = MBED_STRINGIFY(This is a ridiculous way to create a string) |
<> | 130:d75b3fe1f5cb | 45 | * @endcode |
<> | 130:d75b3fe1f5cb | 46 | */ |
<> | 130:d75b3fe1f5cb | 47 | #define MBED_STRINGIFY(a) MBED_STRINGIFY_(a) |
<> | 130:d75b3fe1f5cb | 48 | #define MBED_STRINGIFY_(a) #a |
<> | 130:d75b3fe1f5cb | 49 | |
<> | 130:d75b3fe1f5cb | 50 | |
<> | 130:d75b3fe1f5cb | 51 | #endif |
<> | 130:d75b3fe1f5cb | 52 | |
<> | 130:d75b3fe1f5cb | 53 | /** @}*/ |