mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-25 16:31:06 +00:00
ca971bbfd8
This patch changes the top-level directory layout as a preparatory step for improving the tools for managing 3rd-party source codes. The rationale is described in the issue referenced below. Issue #1082
44 lines
959 B
C++
44 lines
959 B
C++
/*
|
|
* \brief Serial output driver specific for the Texas Instruments TL16C750
|
|
* \author Martin Stein
|
|
* \date 2012-04-23
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2012-2013 Genode Labs GmbH
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU General Public License version 2.
|
|
*/
|
|
|
|
#ifndef _INCLUDE__TL16C750__DRIVERS__SERIAL_LOG_H_
|
|
#define _INCLUDE__TL16C750__DRIVERS__SERIAL_LOG_H_
|
|
|
|
/* Genode includes */
|
|
#include <board.h>
|
|
#include <drivers/uart/tl16c750_base.h>
|
|
|
|
namespace Genode
|
|
{
|
|
/**
|
|
* Serial output driver specific for the Texas Instruments TL16C750
|
|
*/
|
|
class Serial_log : public Tl16c750_base
|
|
{
|
|
public:
|
|
|
|
/**
|
|
* Constructor
|
|
*
|
|
* \param baud_rate targeted transfer baud-rate
|
|
*/
|
|
Serial_log(unsigned const baud_rate) :
|
|
Tl16c750_base(Board::TL16C750_3_MMIO_BASE,
|
|
Board::TL16C750_CLOCK, baud_rate)
|
|
{ }
|
|
};
|
|
}
|
|
|
|
#endif /* _INCLUDE__TL16C750__DRIVERS__SERIAL_LOG_H_ */
|
|
|