Skip to content

Commit 53218f9

Browse files
author
Bogdan Marinescu
committed
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.
1 parent f16342f commit 53218f9

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

events/mbed_lib.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "events",
3+
"config": {
4+
"present": 1
5+
}
6+
}

hal/api/mbed.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
#include "network-socket/nsapi.h"
2727
#endif
2828

29+
#if MBED_CONF_EVENTS_PRESENT
30+
#include "events/mbed_events.h"
31+
#endif
32+
2933
#include "toolchain.h"
3034
#include "platform.h"
3135

0 commit comments

Comments
 (0)