[riot-notifications] [RIOT-OS/RIOT] CC1312R Sub-GHz netdev driver (Proof of Concept) (#13295)

Jean Pierre Dudey notifications at github.com
Mon May 4 23:19:15 CEST 2020


@jeandudey commented on this pull request.



> +        case NETOPT_RX_END_IRQ:
+            if (len != sizeof(bool)) {
+                return -EINVAL;
+            }
+            else {
+                if (*(const bool *)val) {
+                    RFC_DBELL_NONBUF->RFCPEIEN |= CPE_IRQ_RX_ENTRY_DONE;
+                }
+                else {
+                    RFC_DBELL_NONBUF->RFCPEIEN &= ~CPE_IRQ_RX_ENTRY_DONE;
+                }
+            }
+            return sizeof(netopt_enable_t);
+
+        case NETOPT_TX_END_IRQ:
+            if (len != sizeof(bool)) {

I've changed it, maybe using `netopt_enable_t` in `_tx_end_irq` could be better?

-- 
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/13295#discussion_r419734873
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200504/ea5e4c1d/attachment.htm>


More information about the notifications mailing list