* Update doxygen docs with new smartSleep behavior
* Update docs to new behavior.
* Add info on how to set wait time in smartSleep.
* Fix incorrect docs regarding return value of smartSleep.
* Update docs for return value of all sleep methods
* Clarify the return value of the sleep methods, suggested by
@mfalkvidd.
* Make smartSleep send heartbeat before sleeping
Sending the heartbeat (and waiting) after waking up would delay
processing inputs. For example, a switch could be back to the
open state before the wait is over.
* Fix typos in comments in smartSleep methods
* Add critical section support
Allows defining a code block which is executed as a critical section.
Supports AVR, ESP8266 & SAMD.
* Add receive message buffering
When MY_RF24_IRQ_PIN is defined (and connected), a buffer will be used
to retrieve & store messages received by nRF24 as fast as possible.
This reduces the chance of losing messages due to a busy
microcontroller.
nRF24 SPI rx message transfer is running from interrupt context when
MY_RF24_IRQ_PIN is defined. If this transfer takes too long, serial
characters received will get lost. Therefore serial rx is enabled during
SPI transfer of nRF messages.
Limitations: Only AVR/SAMD & nRF24L01+ combinations can buffer rx
messages.
nRF24L01+ IRQ pin should be connected to AVR.
Tested on W5100- & Serial-gateway.
SAMD has not been tested yet!
* Fix Doxygen warnings
* Fix more Doxygen warnings
* Interrupts occurring during sleep-setup possibly fail to wake mcu
* Detach interrupt handler in interrupt handler to correctly handle
level-interrupts