Paul Sokolovsky
58168c8e6b
zephyr/zephyr_getchar: Explicitly yield to other threads on char availability.
...
Without this, if there's a large chunk of data coming from hardware (e.g.
clipboard paste, or fed programmatically from the other side of the console),
there's a behavior of initial mass fill-in of the buffer without any
consumption, which starts much later and doesn't catch up with further
filling, leading to buffer overflow.
2017-04-04 17:14:53 +03:00
Paul Sokolovsky
220df8544b
zephyr/zephyr_getchar: Use native k_sem instead of legacy nano_sem.
2017-03-27 00:41:58 +03:00
Paul Sokolovsky
295266178c
zephyr/zephyr_getchar: Update to Zephyr 1.6 unified kernel API.
2016-11-30 01:42:58 +03:00
Paul Sokolovsky
b0feef7a57
zephyr/zephyr_getchar: Update for recent Zephyr refactor of console hooks.
...
uart_irq_input_hook_set() was renamed to uart_console_in_debug_hook_install()
and accepts different params.
2016-10-28 17:53:10 +03:00
Paul Sokolovsky
f17f3314d0
zephyr: Add copyright blurbs.
2016-10-12 22:51:17 +03:00
Paul Sokolovsky
1b76f88e7a
zephyr/zephyr_getchar: Add support for Ctrl+C handling.
...
Patch on top of upstream Zephyr console helpers.
2016-10-10 23:02:36 +03:00
Paul Sokolovsky
9ad5032164
zephyr: Add zephyr_getchar module to handle console input.
...
From https://github.com/pfalcon/zephyr_getchar .
2016-10-10 01:35:39 +03:00
Paul Sokolovsky
9d9efc0c5a
zephyr: Initial Zephyr RTOS port, Zephyr part.
2016-10-10 01:35:24 +03:00