blob: da5cb8f7b0791c2813635bdf7271a9ac8f236278 [file] [log] [blame]
Achin Gupta4f6ad662013-10-25 09:08:21 +01001/*
Antonio Nino Diaz8377ae42017-02-06 16:03:41 +00002 * Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.
Achin Gupta4f6ad662013-10-25 09:08:21 +01003 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Achin Gupta4f6ad662013-10-25 09:08:21 +01005 */
6
7#ifndef __CONSOLE_H__
8#define __CONSOLE_H__
9
Juan Castillo7f1f0622014-09-09 09:49:23 +010010#include <stdint.h>
11
12int console_init(uintptr_t base_addr,
Soby Mathew69817f72014-07-14 15:43:21 +010013 unsigned int uart_clk, unsigned int baud_rate);
Soby Mathewceb61872015-10-28 10:29:42 +000014void console_uninit(void);
Achin Gupta4f6ad662013-10-25 09:08:21 +010015int console_putc(int c);
16int console_getc(void);
Antonio Nino Diaz8377ae42017-02-06 16:03:41 +000017int console_flush(void);
Achin Gupta4f6ad662013-10-25 09:08:21 +010018
19#endif /* __CONSOLE_H__ */
20