Several examples run on only mbed-os5.13.0 (not 5.14.0)

Dependencies:   BD_SD_DISCO_F769NI BSP_DISCO_F769NI LCD_DISCO_F769NI TS_DISCO_F769NI USBHost_F769NI

check_revision.cpp

Committer:
kenjiArai
Date:
2019-08-07
Revision:
3:35ac9ee7d2d6
Child:
4:0f4affc00183

File content as of revision 3:35ac9ee7d2d6:

/*
 * Check Mbed revision
 *
 * Copyright (c) 2019 Kenji Arai / JH1PJL
 *  http://www.page.sannet.ne.jp/kenjia/index.html
 *  https://os.mbed.com/users/kenjiArai/
 *      Created:    July      17th, 2019
 *      Revised:    August     2nd, 2019
 */

#include "mbed.h"

//    RUN ONLY ON mbed-os5.13.0
#if (MBED_MAJOR_VERSION == 5) &&\
    (MBED_MINOR_VERSION == 13) &&\
    (MBED_PATCH_VERSION == 0)
    #if defined(TARGET_STM32F769NI)
        // correct mbed-os version
    #else
        #error "DISCO-F769NI"
    #endif
#else
    //#warning "Please use Mbed-os5.13.0"
    #error "Please use Mbed-os5.13.0"
#endif