lib: sbi: Add console_puts() callback in the console device
authorAnup Patel <apatel@ventanamicro.com>
Wed, 23 Nov 2022 07:02:06 +0000 (12:32 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 10 Feb 2023 04:34:41 +0000 (10:04 +0530)
commitc43903c4eae41be9917b0623f3625d96ca25fbc3
treee931eac5580b18383faba31b3a9b3a88eaa5210d
parent5a41a3884fe2a639698aaa67a9c1ecc33573eb78
lib: sbi: Add console_puts() callback in the console device

We add console_puts() callback in the console device which allows
console drivers (such as semihosting) to implement a specialized
way to output character string.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
include/sbi/sbi_console.h
lib/sbi/sbi_console.c