Skip to content

Commit bf80245

Browse files
committed
Revert "EventQueue: Add required header file and namespace element instead add all"
This reverts commit 7446ebb. Going to 5.11
1 parent 7988df7 commit bf80245

File tree

3 files changed

+4
-20
lines changed

3 files changed

+4
-20
lines changed

events/EventQueue.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
* limitations under the License.
1515
*/
1616
#include "events/EventQueue.h"
17-
#include "events/mbed_events.h"
1817

19-
using mbed::Callback;
18+
#include "events/mbed_events.h"
19+
#include "mbed.h"
2020

21-
namespace events {
2221

2322
EventQueue::EventQueue(unsigned event_size, unsigned char *event_pointer)
2423
{
@@ -78,4 +77,3 @@ void EventQueue::chain(EventQueue *target)
7877
equeue_chain(&_equeue, 0);
7978
}
8079
}
81-
}

events/equeue/equeue_mbed.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,7 @@
2121
#if defined(EQUEUE_PLATFORM_MBED)
2222

2323
#include <stdbool.h>
24-
#include <string.h>
25-
#include "platform/mbed_critical.h"
26-
#include "drivers/Timer.h"
27-
#include "drivers/Ticker.h"
28-
#include "drivers/Timeout.h"
29-
#include "drivers/LowPowerTimeout.h"
30-
#include "drivers/LowPowerTicker.h"
31-
#include "drivers/LowPowerTimer.h"
32-
33-
using namespace mbed;
24+
#include "mbed.h"
3425

3526
// Ticker operations
3627
#if MBED_CONF_RTOS_PRESENT
@@ -42,7 +33,6 @@ unsigned equeue_tick() {
4233
#else
4334

4435
#if MBED_CONF_EVENTS_USE_LOWPOWER_TIMER_TICKER
45-
4636
#define ALIAS_TIMER LowPowerTimer
4737
#define ALIAS_TICKER LowPowerTicker
4838
#define ALIAS_TIMEOUT LowPowerTimeout

events/mbed_shared_queues.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
*/
1616

1717
#include "events/mbed_shared_queues.h"
18-
19-
#ifdef MBED_CONF_RTOS_PRESENT
20-
#include "rtos/Thread.h"
21-
using rtos::Thread;
22-
#endif
18+
#include "mbed.h"
2319

2420
using namespace events;
2521

0 commit comments

Comments
 (0)