genode/repos/base-hw/src/core/spec/tl16c750/serial.h
2017-05-31 13:15:52 +02:00

47 lines
918 B
C++

/*
* \brief Serial output driver for core
* \author Martin Stein
* \date 2012-04-23
*/
/*
* Copyright (C) 2012-2017 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
#ifndef _CORE__SPEC__TL16C750__SERIAL_H_
#define _CORE__SPEC__TL16C750__SERIAL_H_
/* core includes */
#include <board.h>
#include <platform.h>
/* Genode includes */
#include <drivers/uart_base.h>
namespace Genode
{
/**
* Serial output driver for core
*/
class Serial : public Tl16c750_base
{
public:
/**
* Constructor
*
* \param baud_rate targeted transfer baud-rate
*/
Serial(unsigned const baud_rate)
:
Tl16c750_base(Platform::mmio_to_virt(Board::TL16C750_3_MMIO_BASE),
Board::TL16C750_CLOCK, baud_rate)
{ }
};
}
#endif /* _CORE__SPEC__TL16C750__SERIAL_H_ */