Skip to content

Commit e98a744

Browse files
authored
Merge pull request #4501 from ARMmbed/fix_ncs36510
Fix compilation for NCS36510 RF driver.
2 parents 64c6214 + a36c9ab commit e98a744

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

features/nanostack/FEATURE_NANOSTACK/targets/TARGET_NCS36510/NanostackRfPhyNcs36510.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,13 @@ static phy_device_driver_s device_driver = {
157157
static void rf_thread_loop()
158158
{
159159
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+
}
161164

162165
platform_enter_critical();
163-
if (event & SIGNAL_COUNT_RADIO) {
166+
if (event.value.signals & SIGNAL_COUNT_RADIO) {
164167
handle_IRQ_events();
165168
}
166169
platform_exit_critical();
@@ -451,7 +454,7 @@ static void rf_mac_hw_init(void) {
451454
for (lutIndex=0;lutIndex<96;lutIndex++) {
452455
*(pMatchReg + lutIndex) = 0xFF;
453456
}
454-
osStatus_t status = rf_thread.start(mbed::callback(rf_thread_loop));
457+
osStatus status = rf_thread.start(mbed::callback(rf_thread_loop));
455458
MBED_ASSERT(status == osOK);
456459

457460
/** Clear and enable MAC IRQ at task level, when scheduler is on. */

0 commit comments

Comments
 (0)