subsystem: console: tty init checks and support for polled-only devices
This patch add tty runtime initialization check for console support routines. Without it callers of routines API are not aware that initialization of tty was failed. This patch basically checks availability of console device and also its support for interrupt driven transfers if routines are configured to use it. Signed-off-by: Pavel Kral <pavel.kral@omsquare.com>
This commit is contained in:
parent
750a30296f
commit
51eb4572f5
3 changed files with 26 additions and 4 deletions
|
@ -23,9 +23,9 @@ extern "C" {
|
|||
* and incompatible with, callback (push-style) console handling
|
||||
* (via console_input_fn callback, etc.).
|
||||
*
|
||||
* @return N/A
|
||||
* @return 0 on success, error code (<0) otherwise
|
||||
*/
|
||||
void console_init(void);
|
||||
int console_init(void);
|
||||
|
||||
/**
|
||||
* @brief Read data from console.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue