summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-03-09 15:59:12 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-03-09 15:59:12 +0800
commit31557419505de215c98a0fedb295d9a814fa7ff1 (patch)
treec4b0f7ae9318ed4c5cad2fbac2a93681f0a8d6fe
parenta2c2f99af832084dc1916db74a7175e2e489e3e1 (diff)
downloadavr-nrf24l01-driver-31557419505de215c98a0fedb295d9a814fa7ff1.tar.gz
Channel and data rate config.
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 53e8233..535ffcb 100644
--- a/main.c
+++ b/main.c
@@ -59,6 +59,8 @@ void radio_init(void)
write_reg(0x00, 0b00001100); /* use 2-byte CRC code */
write_reg(0x03, 0b00000001); /* set address width to 3 bytes */
write_reg(0x04, 0b00000000); /* disable automatic retransmission */
+ write_reg(0x05, 0b01110011); /* use 2.515GHz channel */
+ write_reg(0x06, 0b00000110); /* set data rate to 1Mbps */
}
int main(void)