os-core/kernel/drivers/uart/uart_qemu.c

29 lines
607 B
C
Raw Permalink Normal View History

2019-05-29 11:10:01 +02:00
/******************************************************************************
*
* Copyright (c) 2017-2019 by Löwenware Ltd
* Please, refer LICENSE file for legal information
*
******************************************************************************/
/**
* @file uart.c
* @author Ilja Kartašov <ik@lowenware.com>
* @brief
*
* @see https://lowenware.com/
*/
2019-12-01 22:57:02 +01:00
#include "uart_qemu.h"
2019-05-29 11:10:01 +02:00
2020-01-15 10:56:04 +01:00
#define UARTQEMU_BASE 0x09000000;
2019-05-29 11:10:01 +02:00
2020-01-15 10:56:04 +01:00
volatile unsigned int *UART0 = (unsigned int *)UARTQEMU_BASE;
2019-12-01 22:57:02 +01:00
int
2020-01-15 10:56:04 +01:00
UARTQEMU_put(unsigned char c)
2019-05-29 11:10:01 +02:00
{
*UART0 = (unsigned int) c;
2019-12-01 22:57:02 +01:00
return 0;
}