Skip to content

Commit

Permalink
EventQueue: Add required header file and namespace element instead ad…
Browse files Browse the repository at this point in the history
…d all
  • Loading branch information
Deepika authored and geky committed Aug 4, 2019
1 parent 2bd4aad commit 19ecc11
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion equeue_mbed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@
#if defined(EQUEUE_PLATFORM_MBED)

#include <stdbool.h>
#include "mbed.h"
#include <string.h>
#include "platform/mbed_critical.h"
#include "drivers/Timer.h"
#include "drivers/Ticker.h"
#include "drivers/Timeout.h"
#include "drivers/LowPowerTimeout.h"
#include "drivers/LowPowerTicker.h"
#include "drivers/LowPowerTimer.h"

using namespace mbed;

// Ticker operations
#if MBED_CONF_RTOS_PRESENT
Expand All @@ -22,6 +31,7 @@ unsigned equeue_tick() {
#else

#if MBED_CONF_EVENTS_USE_LOWPOWER_TIMER_TICKER

#define ALIAS_TIMER LowPowerTimer
#define ALIAS_TICKER LowPowerTicker
#define ALIAS_TIMEOUT LowPowerTimeout
Expand Down

0 comments on commit 19ecc11

Please sign in to comment.