rtos - add mbed lib version requirement

pull/2175/head
0xc0170 2016-07-08 13:07:38 +01:00
parent 24916505e1
commit 9a7591f21f
1 changed files with 9 additions and 0 deletions

View File

@ -32,4 +32,13 @@
using namespace rtos;
/* Get mbed lib version number, as RTOS depends on mbed lib features
like mbed_error, Callback and others.
*/
#include "mbed.h"
#if (MBED_LIBRARY_VERSION < 122)
#error "This version of RTOS requires mbed library version > 121"
#endif
#endif