summaryrefslogtreecommitdiffstats
path: root/nrfm.c
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-03-17 12:31:02 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-03-17 12:31:02 +0800
commitc053c8300df17b08595147b1cdc8f1d79575a17c (patch)
tree52f253ba797c1b84b334745ba1cca88e56250e58 /nrfm.c
parent4512f79d2ca3071698a596e85d110cbcf35f8bc2 (diff)
downloadavr-nrf24l01-driver-c053c8300df17b08595147b1cdc8f1d79575a17c.tar.gz
Disable all interrupts except rx.
Diffstat (limited to 'nrfm.c')
-rw-r--r--nrfm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nrfm.c b/nrfm.c
index 2f8bb1e..bc47417 100644
--- a/nrfm.c
+++ b/nrfm.c
@@ -125,7 +125,7 @@ void radio_init(uint8_t rxaddr[ADDRLEN])
_delay_ms(110); /* power on reset delay */
- write_reg(0x00, 0b00001100); /* set 2-byte CRC */
+ write_reg(0x00, 0b00111100); /* use 2-byte CRC, enable only the rx interrupt */
write_reg(0x01, 0b00111111); /* enable auto ack on all pipes */
write_reg(0x02, 0b00000001); /* enable rx address on pipe 0 */
write_reg(0x03, 0b00000001); /* set address width to 3 bytes */