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

hal: Tock: Re-enable pin after detaching interrupt #1308

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

alistair23
Copy link
Contributor

The Tock libtock_lora_phy_gpio_disable_interrupt() syscall will disable interrupts for the pin, but also put the pin into a disabled low power state. This isn't what RadioLib expects and casues subsequent LoRaWAN transfers to fail [1].

So after we disable interrupts and send the pin to low power let's re-enable inputs as RadioLib expects.

1: #1303

The Tock libtock_lora_phy_gpio_disable_interrupt() syscall will disable
interrupts for the pin, but also put the pin into a disabled low power
state. This isn't what RadioLib expects and casues subsequent LoRaWAN
transfers to fail [1].

So after we disable interrupts and send the pin to low power let's
re-enable inputs as RadioLib expects.

1: jgromes#1303

Signed-off-by: Alistair Francis <[email protected]>
@StevenCellist StevenCellist merged commit b1d8850 into jgromes:master Nov 2, 2024
28 checks passed
@StevenCellist
Copy link
Collaborator

Good find, happy you were able to resolve it with that hint :)
I guess it'll work, so merged.

@alistair23 alistair23 deleted the alistair/gpio-fixup branch November 2, 2024 20:17
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