summaryrefslogtreecommitdiffstats
path: root/rf_test/radio.c
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2024-12-07 19:37:17 +0800
committerSadeep Madurange <sadeep@asciimx.com>2024-12-07 19:37:17 +0800
commit57996883b8d85580e0f6521f36e5471d803eb1e3 (patch)
treef8bd0eaa078965adac54e8fe6d42a2a6c3edbbfb /rf_test/radio.c
parent51d7a217673b9315f556e44422cedcd8f1e8956d (diff)
downloadsmart-home-57996883b8d85580e0f6521f36e5471d803eb1e3.tar.gz
radio init task.
Diffstat (limited to 'rf_test/radio.c')
-rw-r--r--rf_test/radio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rf_test/radio.c b/rf_test/radio.c
index da21a63..d6bdb4e 100644
--- a/rf_test/radio.c
+++ b/rf_test/radio.c
@@ -139,6 +139,7 @@ void radio_init(struct radio_cfg *cfg)
SPI_PORT |= (1 << SPI_SS);
SPCR |= (1 << SPE) | (1 << MSTR);
+ // todo: do we need this?
do {
write_reg(0x2F, 0xAA);
} while (read_reg(0x2F) != 0xAA);