1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/at86rf215
Benjamin Valentin 611f4161d6 drivers/at86rf215: fix reset after deep sleep
When the radio is in DEEP SLEEP, reading the state register will return 0.
This makes the reset routine abort early even though the device is connected
and still waking up.

Instead, just add a timeout to the polling of the WAKEUP IRQ bit.
In practise it has shown that the loop will be taken two times on 'normal'
reset and four times when the radio was in DEEP SLEEP.

Polling 255 times sure does not hurt.

To reproduce the issue, put both interfaces into SLEEP mode,
then reboot the module:

    ifconfig 7 set state sleep
    ifconfig 8 set state sleep
    reboot
2020-03-29 19:44:40 +02:00
..
include drivers/at86rf215: adapt default config to same54-xpro EXT1 2020-03-24 01:16:47 +01:00
at86rf215_getset.c drivers/at86rf215: Add basic driver for the AT86RF215 radio 2020-03-19 14:39:18 +01:00
at86rf215_internal.c drivers/at86rf215: fix reset after deep sleep 2020-03-29 19:44:40 +02:00
at86rf215_netdev.c drivers/at86rf215: Add basic driver for the AT86RF215 radio 2020-03-19 14:39:18 +01:00
at86rf215_o-qpsk.c drivers/at86rf215: Add basic driver for the AT86RF215 radio 2020-03-19 14:39:18 +01:00
at86rf215.c drivers/at86rf215: Add basic driver for the AT86RF215 radio 2020-03-19 14:39:18 +01:00
Makefile drivers/at86rf215: Add basic driver for the AT86RF215 radio 2020-03-19 14:39:18 +01:00