summaryrefslogtreecommitdiffstats
path: root/rf_test
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2024-12-08 19:57:22 +0800
committerSadeep Madurange <sadeep@asciimx.com>2024-12-08 19:57:22 +0800
commit50453a8581d8efea7a2aa0fcbb4c3e5ba31e5edf (patch)
tree8a23e1fd8f4e7162c410f6d7e40b350cf9ae6ef6 /rf_test
parent7f6203532ba7842e014ccc64503c19cf27585cf0 (diff)
downloadsmart-home-50453a8581d8efea7a2aa0fcbb4c3e5ba31e5edf.tar.gz
wip.
Diffstat (limited to 'rf_test')
-rw-r--r--rf_test/radio.c2
-rw-r--r--rf_test/send.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/rf_test/radio.c b/rf_test/radio.c
index 3e2b9ba..af028f0 100644
--- a/rf_test/radio.c
+++ b/rf_test/radio.c
@@ -58,6 +58,8 @@ void radio_send(const char *data, uint8_t n)
}
SPI_PORT |= (1 << SPI_SS);
+ // todo: high power settings?
+
write_reg(0x01, 0x0C);
while (!(read_reg(0x28) & 0x08))
;
diff --git a/rf_test/send.c b/rf_test/send.c
index 325ac3f..9d1ff2a 100644
--- a/rf_test/send.c
+++ b/rf_test/send.c
@@ -19,6 +19,7 @@ int main(void)
const char *s = "hello, world!";
n = strlen(s);
+
cfg.netid = 0x01;
cfg.nodeid = 0x02;
cfg.payload_len = n;