diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-02-01 12:37:39 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-02-01 12:37:39 +0800 |
| commit | 75b35babe800ee9a2922f3d6b481d2f2e00e158e (patch) | |
| tree | 0c214c1a6148770f93d977b87a03a26e653af62f | |
| parent | de6a62849153362f26ef7a34d60fde9daa81208b (diff) | |
| download | smart-home-75b35babe800ee9a2922f3d6b481d2f2e00e158e.tar.gz | |
wip
| -rw-r--r-- | nRF24L01/radio.c | 4 |
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); |
