summaryrefslogtreecommitdiffstats
path: root/rf69/send.c
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-04-07 12:50:46 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-04-07 13:03:44 +0800
commit2a5eaad1bcac0f0ff61bd82b6427932cb4d03872 (patch)
treeccf47e934cf154603a7f7f6319ddebe440124570 /rf69/send.c
parent77c3f8741ff2a8876a3107a68d42397034e6f08a (diff)
downloadsmart-home-2a5eaad1bcac0f0ff61bd82b6427932cb4d03872.tar.gz
Copy working NRFM code.
Diffstat (limited to 'rf69/send.c')
-rw-r--r--rf69/send.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/rf69/send.c b/rf69/send.c
deleted file mode 100644
index b390cf3..0000000
--- a/rf69/send.c
+++ /dev/null
@@ -1,34 +0,0 @@
-#include <stdlib.h>
-#include <string.h>
-
-#include <avr/io.h>
-#include <avr/interrupt.h>
-#include <util/delay.h>
-
-#include "radio.h"
-#include "serial.h"
-
-int main(void)
-{
- uint8_t n;
- struct radio_cfg cfg;
- const char *s = "hello, world!";
-
- n = strlen(s);
-
- cfg.netid = 0x01;
- cfg.nodeid = 0x02;
- cfg.payload_len = n;
-
- serial_init();
- radio_init(&cfg);
- radio_set_tx_power(18);
-
- for (;;) {
- radio_send(s, n);
- serial_write_line("sent");
- _delay_ms(1500);
- }
-
- return 0;
-}