From 57996883b8d85580e0f6521f36e5471d803eb1e3 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sat, 7 Dec 2024 19:37:17 +0800 Subject: radio init task. --- rf_test/radio.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3