Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
mbed_version.h
00001 00002 /** \addtogroup platform */ 00003 /** @{*/ 00004 /** 00005 * \defgroup platform_version Version macros 00006 * @{ 00007 */ 00008 /* mbed Microcontroller Library 00009 * Copyright (c) 2018 ARM Limited 00010 * 00011 * Licensed under the Apache License, Version 2.0 (the "License"); 00012 * you may not use this file except in compliance with the License. 00013 * You may obtain a copy of the License at 00014 * 00015 * http://www.apache.org/licenses/LICENSE-2.0 00016 * 00017 * Unless required by applicable law or agreed to in writing, software 00018 * distributed under the License is distributed on an "AS IS" BASIS, 00019 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00020 * See the License for the specific language governing permissions and 00021 * limitations under the License. 00022 */ 00023 00024 #ifndef MBED_VERSION_H 00025 #define MBED_VERSION_H 00026 00027 #define MBED_LIBRARY_VERSION 163 00028 00029 /** MBED_MAJOR_VERSION 00030 * Mbed 2 major version 00031 */ 00032 #define MBED_MAJOR_VERSION 2 00033 00034 /** MBED_MINOR_VERSION 00035 * Mbed 2 minor version 00036 */ 00037 #define MBED_MINOR_VERSION 0 00038 00039 /** MBED_PATCH_VERSION 00040 * Mbed 2 patch version 00041 */ 00042 #define MBED_PATCH_VERSION 163 00043 00044 #define MBED_ENCODE_VERSION(major, minor, patch) ((major)*10000 + (minor)*100 + (patch)) 00045 00046 #define MBED_VERSION MBED_ENCODE_VERSION(MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION) 00047 00048 #define MBED_VERSION_CHECK(major, minor, patch) do { \ 00049 MBED_STATIC_ASSERT((MBED_VERSION >= MBED_ENCODE_VERSION((major),(minor),(patch))), "Incompatible mbed-os version detected!!"); \ 00050 } while(0) 00051 00052 #endif 00053 00054 /** @}*/ 00055 /** @}*/
Generated on Tue Jul 12 2022 19:10:22 by
 1.7.2 
    