summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2024-11-24 12:41:14 +0800
committerSadeep Madurange <sadeep@asciimx.com>2024-11-24 12:41:14 +0800
commit544b1d158b81cffe99dd1f1a7fc7c82762e3378a (patch)
tree5e36b757ee6298e4605d9f626206207031f8b43a
parent52771585821a6f57778e7b82407720a8c73f9b91 (diff)
downloadsmart-home-544b1d158b81cffe99dd1f1a7fc7c82762e3378a.tar.gz
Modes.
-rw-r--r--rf_test/rfm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rf_test/rfm.c b/rf_test/rfm.c
index 72ac231..cec960e 100644
--- a/rf_test/rfm.c
+++ b/rf_test/rfm.c
@@ -11,7 +11,7 @@
#define MISO_PIN PB4
#define SPI_DDR DDRB
-// RFM operation modes
+// RFM69 op modes
#define RX 0x10
#define TX 0x0C
#define SLEEP 0x00
@@ -81,7 +81,7 @@ void rfm_sendto(uint8_t addr, uint8_t *data, uint8_t n)
{
uint8_t i;
- set_mode(STDBY_MODE);
+ set_mode(STDBY);
SS_PORT |= (1 << SS_PIN);
@@ -101,7 +101,7 @@ void rfm_sendto(uint8_t addr, uint8_t *data, uint8_t n)
SS_PORT &= ~(1 << SS_PIN);
- set_mode(TX_MODE);
+ set_mode(TX);
while (!((read_reg(0x28) >> 3) & 1))
;