Skip to content

Fix compilation for NCS36510 RF driver. #4501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 8, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,13 @@ static phy_device_driver_s device_driver = {
static void rf_thread_loop()
{
for (;;) {
int32_t event = rf_thread.signal_wait(0);
osEvent event = rf_thread.signal_wait(0);
if (event.status != osEventSignal) {
continue;
}

platform_enter_critical();
if (event & SIGNAL_COUNT_RADIO) {
if (event.value.signals & SIGNAL_COUNT_RADIO) {
handle_IRQ_events();
}
platform_exit_critical();
Expand Down Expand Up @@ -451,7 +454,7 @@ static void rf_mac_hw_init(void) {
for (lutIndex=0;lutIndex<96;lutIndex++) {
*(pMatchReg + lutIndex) = 0xFF;
}
osStatus_t status = rf_thread.start(mbed::callback(rf_thread_loop));
osStatus status = rf_thread.start(mbed::callback(rf_thread_loop));
MBED_ASSERT(status == osOK);

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