Skip to content
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

Fix SWI2 IRQ handler with nrf_pac #280

Merged
merged 2 commits into from
Nov 17, 2024
Merged

Conversation

alexmoon
Copy link
Contributor

No description provided.

)]
unsafe extern "C" fn swi2_irq_handler() {
SWI2_SOC_EVT_WAKER.wake();
SWI2_BLE_EVT_WAKER.wake();
}

/// Support older PACs which use a different name for the SWI2 interrupt
#[cfg_attr(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be cfg and not cfg_attr so the function is not emitted at all in '05, '10, '11.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. I also removed the allow(dead_code) attribute from the main handler since that warning should only affect nrf_softdevice directly and not downstream projects (and we're using nrf_pac in nrf_softdevice so the warning doesn't happen).

Copy link
Member

@Dirbaio Dirbaio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@Dirbaio Dirbaio added this pull request to the merge queue Nov 17, 2024
Merged via the queue into embassy-rs:master with commit b53991e Nov 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants