[riot-notifications] [RIOT-OS/RIOT] drivers/nrf24l01p: Netdev driver for nrf24l01p (#13743)

fabian18 notifications at github.com
Mon May 4 19:52:27 CEST 2020


@fabian18 commented on this pull request.



> +    }
+    if (state == NETOPT_STATE_RX) {
+        return NRF24L01P_NG_STATE_RX_MODE;
+    }
+    return NRF24L01P_NG_STATE_UNDEFINED;
+}
+
+static
+void nrf24l01p_ng_irq_handler(void *_dev)
+{
+    nrf24l01p_ng_t *dev = (nrf24l01p_ng_t *)_dev;
+    /* Once the IRQ pin has triggered,
+       do not congest the thread´s
+       message queue with IRQ events */
+    gpio_irq_disable(dev->params.pin_irq);
+    DEBUG("[nrf24l01p_ng] IRQ\n");

Yeah since it is a big wall of debug text, I should change this.

Btw. I have tested again with ENABLE_DEBUG (1)
and if I do `txtsnd 6 77:24:26:11:76 LOL`, on the other side I get
```
2020-05-04 19:41:39,774 # 0x77 0x24 0x26 0x11 0x76 0x4C 0x4F 0x4C 
2020-05-04 19:41:39,775 # [nrf24l01p_ng] Received frame length: 8
```
which is the format that is returned by `_recv()`

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/13743#discussion_r419617147
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200504/3ed1725f/attachment.htm>


More information about the notifications mailing list