21
21
*/
22
22
#include " rtos/Thread.h"
23
23
#include " rtos/ThisThread.h"
24
+
25
+ #include " mbed.h"
24
26
#include " rtos/rtos_idle.h"
25
27
#include " rtos/rtos_handlers.h"
26
- #include " platform/mbed_assert.h"
27
- #include " platform/mbed_error.h"
28
+ #include " mbed_assert.h"
28
29
29
30
#define ALIGN_UP (pos, align ) ((pos) % (align) ? (pos) + ((align) - (pos) % (align)) : (pos))
30
31
MBED_STATIC_ASSERT (ALIGN_UP(0 , 8 ) == 0, "ALIGN_UP macro error");
@@ -67,7 +68,7 @@ void Thread::constructor(osPriority priority,
67
68
constructor (MBED_TZ_DEFAULT_ACCESS, priority, stack_size, stack_mem, name);
68
69
}
69
70
70
- void Thread::constructor (mbed:: Callback<void ()> task,
71
+ void Thread::constructor (Callback<void ()> task,
71
72
osPriority priority, uint32_t stack_size, unsigned char *stack_mem, const char *name)
72
73
{
73
74
constructor (MBED_TZ_DEFAULT_ACCESS, priority, stack_size, stack_mem, name);
@@ -86,7 +87,7 @@ void Thread::constructor(mbed::Callback<void()> task,
86
87
}
87
88
}
88
89
89
- osStatus Thread::start (mbed:: Callback<void ()> task)
90
+ osStatus Thread::start (Callback<void ()> task)
90
91
{
91
92
_mutex.lock ();
92
93
0 commit comments