Include events library headers in mbed.h

The inclusion is conditioned by the presence of the events library
(`MBED_CONF_EVENTS_PRESENT`). This ensures backward compatibility with
SDK builds.
pull/2860/head
Bogdan Marinescu 2016-09-30 17:12:00 +03:00
parent f16342f321
commit 53218f9be8
2 changed files with 10 additions and 0 deletions

6
events/mbed_lib.json Normal file
View File

@ -0,0 +1,6 @@
{
"name": "events",
"config": {
"present": 1
}
}

View File

@ -26,6 +26,10 @@
#include "network-socket/nsapi.h"
#endif
#if MBED_CONF_EVENTS_PRESENT
#include "events/mbed_events.h"
#endif
#include "toolchain.h"
#include "platform.h"