Initial commit
mbed-dev-master/platform/mbed_version.h@0:bb348c97df44, 2020-09-16 (annotated)
- Committer:
- lypinator
- Date:
- Wed Sep 16 01:11:49 2020 +0000
- Revision:
- 0:bb348c97df44
Added PWM
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
lypinator | 0:bb348c97df44 | 1 | |
lypinator | 0:bb348c97df44 | 2 | /** \addtogroup platform */ |
lypinator | 0:bb348c97df44 | 3 | /** @{*/ |
lypinator | 0:bb348c97df44 | 4 | /** |
lypinator | 0:bb348c97df44 | 5 | * \defgroup platform_version Version macros |
lypinator | 0:bb348c97df44 | 6 | * @{ |
lypinator | 0:bb348c97df44 | 7 | */ |
lypinator | 0:bb348c97df44 | 8 | /* mbed Microcontroller Library |
lypinator | 0:bb348c97df44 | 9 | * Copyright (c) 2018 ARM Limited |
lypinator | 0:bb348c97df44 | 10 | * |
lypinator | 0:bb348c97df44 | 11 | * Licensed under the Apache License, Version 2.0 (the "License"); |
lypinator | 0:bb348c97df44 | 12 | * you may not use this file except in compliance with the License. |
lypinator | 0:bb348c97df44 | 13 | * You may obtain a copy of the License at |
lypinator | 0:bb348c97df44 | 14 | * |
lypinator | 0:bb348c97df44 | 15 | * http://www.apache.org/licenses/LICENSE-2.0 |
lypinator | 0:bb348c97df44 | 16 | * |
lypinator | 0:bb348c97df44 | 17 | * Unless required by applicable law or agreed to in writing, software |
lypinator | 0:bb348c97df44 | 18 | * distributed under the License is distributed on an "AS IS" BASIS, |
lypinator | 0:bb348c97df44 | 19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
lypinator | 0:bb348c97df44 | 20 | * See the License for the specific language governing permissions and |
lypinator | 0:bb348c97df44 | 21 | * limitations under the License. |
lypinator | 0:bb348c97df44 | 22 | */ |
lypinator | 0:bb348c97df44 | 23 | |
lypinator | 0:bb348c97df44 | 24 | #ifndef MBED_VERSION_H |
lypinator | 0:bb348c97df44 | 25 | #define MBED_VERSION_H |
lypinator | 0:bb348c97df44 | 26 | |
lypinator | 0:bb348c97df44 | 27 | #define MBED_LIBRARY_VERSION 163 |
lypinator | 0:bb348c97df44 | 28 | |
lypinator | 0:bb348c97df44 | 29 | /** MBED_MAJOR_VERSION |
lypinator | 0:bb348c97df44 | 30 | * Mbed 2 major version |
lypinator | 0:bb348c97df44 | 31 | */ |
lypinator | 0:bb348c97df44 | 32 | #define MBED_MAJOR_VERSION 2 |
lypinator | 0:bb348c97df44 | 33 | |
lypinator | 0:bb348c97df44 | 34 | /** MBED_MINOR_VERSION |
lypinator | 0:bb348c97df44 | 35 | * Mbed 2 minor version |
lypinator | 0:bb348c97df44 | 36 | */ |
lypinator | 0:bb348c97df44 | 37 | #define MBED_MINOR_VERSION 0 |
lypinator | 0:bb348c97df44 | 38 | |
lypinator | 0:bb348c97df44 | 39 | /** MBED_PATCH_VERSION |
lypinator | 0:bb348c97df44 | 40 | * Mbed 2 patch version |
lypinator | 0:bb348c97df44 | 41 | */ |
lypinator | 0:bb348c97df44 | 42 | #define MBED_PATCH_VERSION 163 |
lypinator | 0:bb348c97df44 | 43 | |
lypinator | 0:bb348c97df44 | 44 | #define MBED_ENCODE_VERSION(major, minor, patch) ((major)*10000 + (minor)*100 + (patch)) |
lypinator | 0:bb348c97df44 | 45 | |
lypinator | 0:bb348c97df44 | 46 | #define MBED_VERSION MBED_ENCODE_VERSION(MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION) |
lypinator | 0:bb348c97df44 | 47 | |
lypinator | 0:bb348c97df44 | 48 | #define MBED_VERSION_CHECK(major, minor, patch) do { \ |
lypinator | 0:bb348c97df44 | 49 | MBED_STATIC_ASSERT((MBED_VERSION >= MBED_ENCODE_VERSION((major),(minor),(patch))), "Incompatible mbed-os version detected!!"); \ |
lypinator | 0:bb348c97df44 | 50 | } while(0) |
lypinator | 0:bb348c97df44 | 51 | |
lypinator | 0:bb348c97df44 | 52 | #endif |
lypinator | 0:bb348c97df44 | 53 | |
lypinator | 0:bb348c97df44 | 54 | /** @}*/ |
lypinator | 0:bb348c97df44 | 55 | /** @}*/ |