[riot-notifications] [RIOT-OS/RIOT] Implement power management `pm` for CPUs (#6802)

Kaspar Schleiser notifications at github.com
Wed Mar 6 14:45:36 CET 2019


> but once you interact with it, it could issue a pm_block() and start a timer to pm_unblock()

Yup, but unblock what? I mean, how do we determine the pm mode that the shell should block/unblock, supporting multiple stdio_ backends over many platforms? shell is using getchar() for reading. We could of course hack "SHELL_PM_SLEEP_MODE", set that to "UART_STDIO_SLEEP_MODE", somehow populate that depending on the uart or stdio configuration, .... but it feels at least ... brittle.
In the end, only the uart implementation (hopefully) knows what's its active mode.

I'm just realizing that file descriptors don't have a way to sleep/unsleep them, either. ;(

-- 
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/issues/6802#issuecomment-470112364
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190306/16476dc2/attachment.html>


More information about the notifications mailing list