blob: 1595bdc1b4282b93649ceafb554d8a5fe10e2eda [file] [log] [blame] [edit]
/*
* Copyright (c) 2021-2022 Amlogic, Inc. All rights reserved.
*
* SPDX-License-Identifier: MIT
*/
#include "aml_putchar.h"
#if (1 == CONFIG_ARM64)
#include "serial.h"
#else
#include "uart.h"
#endif
int putchar(int c)
{
#if (1 == CONFIG_ARM64)
vSerialPutChar(ConsoleSerial, c);
#else
vUartPutc(c);
#endif
return 0;
}