File tree Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
#include " events/EventQueue.h"
17
-
18
17
#include " events/mbed_events.h"
19
- #include " mbed.h"
20
18
19
+ using mbed::Callback;
20
+
21
+ namespace events {
21
22
22
23
EventQueue::EventQueue (unsigned event_size, unsigned char *event_pointer)
23
24
{
@@ -77,3 +78,4 @@ void EventQueue::chain(EventQueue *target)
77
78
equeue_chain (&_equeue, 0 );
78
79
}
79
80
}
81
+ }
Original file line number Diff line number Diff line change 21
21
#if defined(EQUEUE_PLATFORM_MBED)
22
22
23
23
#include < stdbool.h>
24
- #include " mbed.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 ;
25
34
26
35
// Ticker operations
27
36
#if MBED_CONF_RTOS_PRESENT
@@ -33,6 +42,7 @@ unsigned equeue_tick() {
33
42
#else
34
43
35
44
#if MBED_CONF_EVENTS_USE_LOWPOWER_TIMER_TICKER
45
+
36
46
#define ALIAS_TIMER LowPowerTimer
37
47
#define ALIAS_TICKER LowPowerTicker
38
48
#define ALIAS_TIMEOUT LowPowerTimeout
Original file line number Diff line number Diff line change 15
15
*/
16
16
17
17
#include " events/mbed_shared_queues.h"
18
- #include " mbed.h"
18
+
19
+ #ifdef MBED_CONF_RTOS_PRESENT
20
+ #include " rtos/Thread.h"
21
+ using rtos::Thread;
22
+ #endif
19
23
20
24
using namespace events ;
21
25
You can’t perform that action at this time.
0 commit comments