zephyr/include/drivers
Paul Sokolovsky 542c2b93d0 subsys: console: Add pull-style console API support.
This change introduces console_getchar() and console_getline() API
calls which can be used to get pending console input (either one
char or whole line), or block waiting for one. In this regard, they
are similar to well-known ANSI C function getchar/gets/fgets, and
are intended to ease porting of existing applications to Zephyr, and
indeed, these functions (shaped as an external module) are already
used by few applications.

The implementation of the functions is structured as a new "console"
subsystem. The intention is that further generic console code may be
pulled there instead of being in drivers/console/. Besides the
functions themselves, initialization code and sample applications
are included.

At this time, there're may limitations of how these functions can
be used. For example, console_getchar() and console_getline() are
mutually exclusive, and both are incompatible with callback
(push-style) console API (and e.g. with console shell subsystem
which uses this API). Again, the intention is to make a first step
towards refactoring console subsystem to allow more flexible
real-world usage, better reusability and composability.

Change-Id: I3f4015bb5b26e0656f82f428b11ba30e980d25a0
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2017-04-01 20:44:17 +00:00
..
bluetooth Bluetooth: Make bt_hci_driver instances link-time constants 2017-03-21 17:05:42 -07:00
clock_control clock: stm32f4: Add some missing clocks 2017-03-27 09:05:57 -05:00
console subsys: console: Add pull-style console API support. 2017-04-01 20:44:17 +00:00
ieee802154 license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
pci license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
serial license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
spi spi: k64: Remove the k64 spi driver 2017-01-23 15:15:54 -06:00
usb license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
ioapic.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
k6x_mpu.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
k6x_pmc.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
k20_mcg.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
k20_pcr.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
k20_sim.h arm: kinetis: Remove duplicate & unused defines 2017-01-23 15:15:52 -06:00
k20_watchdog.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
loapic.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
mvic.h mvic: include stdint for uint32_t 2017-02-11 07:00:40 +00:00
rand32.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
sysapic.h x86: implement direct interrupts 2017-02-03 18:18:30 +00:00
system_timer.h license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00