4 ms·
Thank you. UART using polling[0] instead of interrupts, i.e. sending a character and waiting in a busy loop until it gets sent, isn't it quite wasteful? [0] h
by conductor 6y ago
Thank you.
UART using polling[0] instead of interrupts, i.e. sending a character and waiting in a busy loop until it gets sent, isn't it quite wasteful?
[0] https://github.com/bztsrc/raspi3-tutorial/blob/master/03_uart1/uart.c https://github.com/bztsrc/raspi3-tutorial/blob/master/03_uar...
- monocasa 6y agoDepends on your goal. A lot of the time you want your printfs to be blocking on embedded systems, even if literally the rest of the system is asynchronous so that you don't miss the interesting prints right before the crash because they were queued and not sent yet.