[riot-notifications] [RIOT-OS/RIOT] drivers/cc110x: add power off (sleep) functions (#16232)

benpicco notifications at github.com
Tue Jun 8 11:21:01 CEST 2021


@benpicco commented on this pull request.



> +            return -EINVAL;
+        }
+    }
+        return sizeof(uint16_t);
+    case NETOPT_PROMISCUOUSMODE:
+        assert(len == sizeof(netopt_enable_t));
+        return cc110x_set_promiscuous_mode(dev, *((const netopt_enable_t *)val));
+    case NETOPT_STATE:
+        assert(len == sizeof(netopt_state_t));
+        switch (*((netopt_state_t *)val)) {
+        case NETOPT_STATE_RESET:
+        case NETOPT_STATE_IDLE:
+            if (cc110x_acquire(dev)) {
+                return -EIO;
+            }
+            cc110x_enter_rx_mode(dev);

so why not `cc110x_wakeup()` here?

-- 
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/16232#pullrequestreview-678293621
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210608/847ed67a/attachment.htm>


More information about the notifications mailing list