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

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: https://github.com/jgromes/RadioLib/discussions/1303

Signed-off-by: Alistair Francis <alistair@alistair23.me>
pull/1309/head
Alistair Francis 2024-11-02 21:38:43 +10:00 zatwierdzone przez GitHub
rodzic e9dd3dc843
commit b1d8850d92
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -154,6 +154,7 @@ class TockHal : public RadioLibHal {
gpio_funcs[interruptNum - 1] = NULL;
libtock_lora_phy_gpio_disable_interrupt(interruptNum);
libtock_lora_phy_gpio_enable_input(interruptNum, libtock_pull_down);
}
void delay(unsigned long ms) override {