summaryrefslogtreecommitdiffstats
path: root/nRF24L01/radio.c
diff options
context:
space:
mode:
Diffstat (limited to 'nRF24L01/radio.c')
-rw-r--r--nRF24L01/radio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nRF24L01/radio.c b/nRF24L01/radio.c
index d9ffc07..7393ed8 100644
--- a/nRF24L01/radio.c
+++ b/nRF24L01/radio.c
@@ -17,6 +17,8 @@
#define NRF24L01_CE_DDR DDRB
#define NRF24L01_CE_PORT DDRB
+#define NRF24L01_POWER_ON_RST_DELAY 100
+
#define NRF24L01_REG_CONFIG 0x00
#define NRF24L01_REG_EN_AA 0x01
#define NRF24L01_REG_EN_RXADDR 0x02
@@ -56,8 +58,6 @@
#define NRF24L01_W_TX_PAYLOAD_NOACK 0xB0
#define NRF24L01_NOP 0xFF
-#define NRF24L01_POWER_ON_RST_DELAY 100
-
static inline uint8_t read_reg(uint8_t reg)
{
SPI_PORT &= ~(1 << SPI_SS);