summaryrefslogtreecommitdiffstats
path: root/recv.c
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-04-06 10:42:10 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-04-06 10:42:10 +0800
commitfd373e4cdf77c09e71f8c708d4e353f9091f36e4 (patch)
tree9d818992b0232c48fc6de93629e7cb9f708c31cb /recv.c
parentf2801a35b43f4117d97dd4d8eba9db480454c9e3 (diff)
downloadavr-nrf24l01-driver-fd373e4cdf77c09e71f8c708d4e353f9091f36e4.tar.gz
Fix IRQ: active low.
Diffstat (limited to 'recv.c')
-rw-r--r--recv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/recv.c b/recv.c
index 31dbc0f..7217e47 100644
--- a/recv.c
+++ b/recv.c
@@ -23,7 +23,7 @@ int main(void)
uint8_t rxaddr[] = { 194, 178, 83 };
RX_DDR &= ~(1 << RX_PIN);
- RX_PORT &= ~(1 << RX_PIN);
+ RX_PORT |= (1 << RX_PIN);
PCICR |= (1 << RX_PCIE);
RX_PCMSK |= (1 << RX_PCINT);
@@ -53,5 +53,6 @@ int main(void)
ISR(RX_PCINTVEC)
{
cli();
+ uart_write_line("IRQ detected");
rxdr = 1;
}