Add nRF24 receive message buffering (#538)
* 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
This commit is contained in:
committed by
Olivier
parent
4695cc71dd
commit
99973a346e
+4
-1
@@ -74,6 +74,7 @@ MY_RF24_ENABLE_ENCRYPTION LITERAL1
|
||||
MY_RF24_SPI_MAX_SPEED LITERAL1
|
||||
MY_RF24_CE_PIN LITERAL1
|
||||
MY_RF24_CS_PIN LITERAL1
|
||||
MY_RF24_IRQ_PIN LITERAL1
|
||||
MY_RF24_PA_LEVEL LITERAL1
|
||||
MY_RF24_CHANNEL LITERAL1
|
||||
MY_RF24_DATARATE LITERAL1
|
||||
@@ -126,4 +127,6 @@ MY_SMART_SLEEP_WAIT_DURATION LITERAL1
|
||||
MY_NODE_LOCK_FEATURE LITERAL1
|
||||
MY_NODE_UNLOCK_PIN LITERAL1
|
||||
MY_NODE_LOCK_COUNTER_MAX LITERAL1
|
||||
MY_SPIFLASH_SST25TYPE LITERAL1
|
||||
MY_SPIFLASH_SST25TYPE LITERAL1
|
||||
MY_CRITICAL_SECTION LITERAL1
|
||||
MY_RX_MESSAGE_BUFFER_SIZE LITERAL1
|
||||
Reference in New Issue
Block a user