genode/base-hw/include/tl16c750/drivers/serial_log.h
Stefan Kalkowski 96d45c1159 Define board declarations in a more generic fashion
By naming all board declaration (previously in base/include/drivers/board) the
same way, and putting them in platform-specific include-pathes, we save additional
declaration redirection in the base-hw kernel, and in driver definitions.
2012-10-24 16:41:13 +02:00

44 lines
964 B
C++

/*
* \brief Serial output driver specific for the Texas Instruments TL16C750
* \author Martin Stein
* \date 2012-04-23
*/
/*
* Copyright (C) 2012 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 <drivers/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_3_CLOCK, baud_rate)
{ }
};
}
#endif /* _INCLUDE__TL16C750__DRIVERS__SERIAL_LOG_H_ */