Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

nrf: Use common implementation of machine disable/enable IRQ.#17213

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
dpgeorge wants to merge1 commit intomicropython:master
base:master
Choose a base branch
Loading
fromdpgeorge:nrf-use-common-machine-irq-function

Conversation

dpgeorge
Copy link
Member

Summary

This is a breaking change due to the signature change ofenable_irq(). Previously the signature was:

machine.enable_irq()

Now the signature matches other ports, and the docs, and is:

machine.enable_irq(state)

Wherestate is the return value frommachine.disable_irq().

Testing

Tested on ARDUINO_NANO_33_BLE_SENSE. That board now passes thetests/extmod/machine_disable_irq.py test.

Plaque-fcc reacted with thumbs up emoji
This is a breaking change due to the signature change of `enable_irq()`.Previously the signature was:    machine.enable_irq()Now the signature matches other ports, and the docs, and is:    machine.enable_irq(state)Where `state` is the return value from `machine.disable_irq()`.Signed-off-by: Damien George <damien@micropython.org>
Copy link
Contributor

@andrewleechandrewleech left a comment

Choose a reason for hiding this comment

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

Oh, were these already no-operation when the nrf Bluetooth stack is enabled? That's a surprising trap.

@dpgeorge
Copy link
MemberAuthor

were these already no-operation when the nrf Bluetooth stack is enabled?

Yes. I don't think there's any way around that?

@andrewleech
Copy link
Contributor

were these already no-operation when the nrf Bluetooth stack is enabled?

Yes. I don't think there's any way around that?

Yeah probably not, although there is a way to debug / step through application code on these chips without interrupting the stuff device called "monitor mode debugging". I bring this up because it presumably uses some form of interrupt masking which might work here to effectively mask out "application" interrupts without interrupting the soft device.
On the other hand, migrating to nimble probably removes these restrictions anyway.

@andrewleech
Copy link
Contributor

Regardless, the changes look good, consolidating functionality and signatures to match other ports is a worthy direction to follow certainly.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@andrewleechandrewleechandrewleech left review comments

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@dpgeorge@andrewleech

[8]ページ先頭

©2009-2025 Movatter.jp