File tree Expand file tree Collapse file tree 5 files changed +35
-3
lines changed
features/nanostack/nanostack-hal-mbed-cmsis-rtos Expand file tree Collapse file tree 5 files changed +35
-3
lines changed Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
+ #ifdef MBED_CONF_NANOSTACK_CONFIG
19
+
18
20
#include " ns_types.h"
19
21
#include " fhss_api.h"
20
22
#include " fhss_config.h"
@@ -179,3 +181,4 @@ fhss_timer_t fhss_functions = {
179
181
.fhss_resolution_divider = 1
180
182
};
181
183
184
+ #endif
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
+ #ifdef MBED_CONF_RTOS_PRESENT
19
+
18
20
#include "mbed_assert.h"
19
21
#include "cmsis.h"
20
22
#include "cmsis_os2.h"
@@ -130,3 +132,5 @@ void ns_event_loop_thread_start(void)
130
132
#endif
131
133
132
134
#endif // !MBED_CONF_NANOSTACK_HAL_EVENT_LOOP_USE_MBED_EVENTS
135
+
136
+ #endif //MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change 17
17
18
18
#include " mbed_assert.h"
19
19
#include " platform/arm_hal_interrupt.h"
20
+ #ifdef MBED_CONF_RTOS_PRESENT
20
21
#include " cmsis.h"
21
22
#include " cmsis_os2.h"
22
23
#include " mbed_rtos_storage.h"
24
+ #endif
23
25
#include " ns_trace.h"
24
26
25
27
#include " eventOS_scheduler.h"
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
+ #include "eventOS_scheduler.h"
19
+
20
+ #include "ns_event_loop_mutex.h"
21
+
22
+ #ifdef MBED_CONF_RTOS_PRESENT
18
23
#include "mbed_assert.h"
19
24
#include "cmsis.h"
20
25
#include "cmsis_os2.h"
21
26
#include "mbed_rtos_storage.h"
22
27
#include "ns_trace.h"
23
28
24
- #include "eventOS_scheduler.h"
25
-
26
- #include "ns_event_loop_mutex.h"
27
29
28
30
#define TRACE_GROUP "evlm"
29
31
@@ -67,3 +69,23 @@ void ns_event_loop_mutex_init(void)
67
69
MBED_ASSERT (event_mutex_id != NULL );
68
70
}
69
71
72
+ #else
73
+
74
+ void eventOS_scheduler_mutex_wait (void )
75
+ {
76
+ }
77
+
78
+ void eventOS_scheduler_mutex_release (void )
79
+ {
80
+ }
81
+
82
+ uint8_t eventOS_scheduler_mutex_is_owner (void )
83
+ {
84
+ return 1 ;
85
+ }
86
+
87
+ void ns_event_loop_mutex_init (void )
88
+ {
89
+ }
90
+
91
+ #endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change 22
22
#ifndef EVENT_FLAG_H
23
23
#define EVENT_FLAG_H
24
24
25
+ #include < cstddef>
25
26
#include < stdint.h>
26
27
#include " rtos/mbed_rtos_types.h"
27
28
#include " rtos/mbed_rtos1_types.h"
You can’t perform that action at this time.
0 commit comments