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 1515 * limitations under the License.
1616 */
1717
18+ #ifdef MBED_CONF_NANOSTACK_CONFIG
19+
1820#include " ns_types.h"
1921#include " fhss_api.h"
2022#include " fhss_config.h"
@@ -179,3 +181,4 @@ fhss_timer_t fhss_functions = {
179181 .fhss_resolution_divider = 1
180182};
181183
184+ #endif
Original file line number Diff line number Diff line change 1515 * limitations under the License.
1616 */
1717
18+ #ifdef MBED_CONF_RTOS_PRESENT
19+
1820#include "mbed_assert.h"
1921#include "cmsis.h"
2022#include "cmsis_os2.h"
@@ -130,3 +132,5 @@ void ns_event_loop_thread_start(void)
130132#endif
131133
132134#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 1717
1818#include " mbed_assert.h"
1919#include " platform/arm_hal_interrupt.h"
20+ #ifdef MBED_CONF_RTOS_PRESENT
2021#include " cmsis.h"
2122#include " cmsis_os2.h"
2223#include " mbed_rtos_storage.h"
24+ #endif
2325#include " ns_trace.h"
2426
2527#include " eventOS_scheduler.h"
Original file line number Diff line number Diff line change 1515 * limitations under the License.
1616 */
1717
18+ #include "eventOS_scheduler.h"
19+
20+ #include "ns_event_loop_mutex.h"
21+
22+ #ifdef MBED_CONF_RTOS_PRESENT
1823#include "mbed_assert.h"
1924#include "cmsis.h"
2025#include "cmsis_os2.h"
2126#include "mbed_rtos_storage.h"
2227#include "ns_trace.h"
2328
24- #include "eventOS_scheduler.h"
25-
26- #include "ns_event_loop_mutex.h"
2729
2830#define TRACE_GROUP "evlm"
2931
@@ -67,3 +69,23 @@ void ns_event_loop_mutex_init(void)
6769 MBED_ASSERT (event_mutex_id != NULL );
6870}
6971
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 2222#ifndef EVENT_FLAG_H
2323#define EVENT_FLAG_H
2424
25+ #include < cstddef>
2526#include < stdint.h>
2627#include " rtos/mbed_rtos_types.h"
2728#include " rtos/mbed_rtos1_types.h"
You can’t perform that action at this time.
0 commit comments