Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 1 | /* |
Antonio Nino Diaz | 73e0528 | 2017-02-06 16:03:41 +0000 | [diff] [blame] | 2 | * Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved. |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 3 | * |
dp-arm | 82cb2c1 | 2017-05-03 09:38:09 +0100 | [diff] [blame^] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __CONSOLE_H__ |
| 8 | #define __CONSOLE_H__ |
| 9 | |
Juan Castillo | 0246297 | 2014-09-09 09:49:23 +0100 | [diff] [blame] | 10 | #include <stdint.h> |
| 11 | |
| 12 | int console_init(uintptr_t base_addr, |
Soby Mathew | 462c835 | 2014-07-14 15:43:21 +0100 | [diff] [blame] | 13 | unsigned int uart_clk, unsigned int baud_rate); |
Soby Mathew | 487461c | 2015-10-28 10:29:42 +0000 | [diff] [blame] | 14 | void console_uninit(void); |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 15 | int console_putc(int c); |
| 16 | int console_getc(void); |
Antonio Nino Diaz | 73e0528 | 2017-02-06 16:03:41 +0000 | [diff] [blame] | 17 | int console_flush(void); |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 18 | |
| 19 | #endif /* __CONSOLE_H__ */ |
| 20 | |