[riot-notifications] [RIOT-OS/RIOT] sys/stdio_uart: Add warning about use in ISR (#13985)

Kaspar Schleiser notifications at github.com
Sat May 2 22:42:25 CEST 2020


I'm not sure I agree on this.

To me, even simple outputs from UART are an extremely often used tool.
IMO debugging alone makes stdio from ISR an important use case.

```An UART implementation might choose to not guard an atomic sequence of
    interactions with the hardware by disabling IRQs but using a mutex, e.g.
    because the sequence takes long. Locking a mutex from interrupt
    context will result in a deadlock, if the mutex is already locked.```

If some implementations do this, can they be changed?

```If an ISR is triggered from a power saving mode, some peripherals or
    clock domains might still be offline during that ISR; including the UART
    peripheral. This is a valid implementation choice to allow time critical
    low power scenarios being covered by RIOT.```

They might still be offline *after* the interrupt that caused a wakeup.

-- 
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/13985#issuecomment-623010599
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200502/f3adef71/attachment.htm>


More information about the notifications mailing list