diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-04-06 10:42:10 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-04-06 10:42:10 +0800 |
| commit | fd373e4cdf77c09e71f8c708d4e353f9091f36e4 (patch) | |
| tree | 9d818992b0232c48fc6de93629e7cb9f708c31cb /recv.c | |
| parent | f2801a35b43f4117d97dd4d8eba9db480454c9e3 (diff) | |
| download | avr-nrf24l01-driver-fd373e4cdf77c09e71f8c708d4e353f9091f36e4.tar.gz | |
Fix IRQ: active low.
Diffstat (limited to 'recv.c')
| -rw-r--r-- | recv.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |
