File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
features/nanostack/FEATURE_NANOSTACK/targets/TARGET_NCS36510 Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -157,10 +157,13 @@ static phy_device_driver_s device_driver = {
157
157
static void rf_thread_loop ()
158
158
{
159
159
for (;;) {
160
- int32_t event = rf_thread.signal_wait (0 );
160
+ osEvent event = rf_thread.signal_wait (0 );
161
+ if (event.status != osEventSignal) {
162
+ continue ;
163
+ }
161
164
162
165
platform_enter_critical ();
163
- if (event & SIGNAL_COUNT_RADIO) {
166
+ if (event. value . signals & SIGNAL_COUNT_RADIO) {
164
167
handle_IRQ_events ();
165
168
}
166
169
platform_exit_critical ();
@@ -451,7 +454,7 @@ static void rf_mac_hw_init(void) {
451
454
for (lutIndex=0 ;lutIndex<96 ;lutIndex++) {
452
455
*(pMatchReg + lutIndex) = 0xFF ;
453
456
}
454
- osStatus_t status = rf_thread.start (mbed::callback (rf_thread_loop));
457
+ osStatus status = rf_thread.start (mbed::callback (rf_thread_loop));
455
458
MBED_ASSERT (status == osOK);
456
459
457
460
/* * Clear and enable MAC IRQ at task level, when scheduler is on. */
You can’t perform that action at this time.
0 commit comments