2012-05-30 18:13:09 +00:00
|
|
|
/*
|
|
|
|
* \brief Serial output driver specific for the ARM PL011
|
|
|
|
* \author Martin Stein
|
|
|
|
* \date 2012-04-23
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2013-01-10 20:44:47 +00:00
|
|
|
* Copyright (C) 2012-2013 Genode Labs GmbH
|
2012-05-30 18:13:09 +00:00
|
|
|
*
|
|
|
|
* 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__PL011__DRIVERS__SERIAL_LOG_H_
|
|
|
|
#define _INCLUDE__PL011__DRIVERS__SERIAL_LOG_H_
|
|
|
|
|
|
|
|
/* Genode includes */
|
2012-12-10 12:55:19 +00:00
|
|
|
#include <board.h>
|
2012-05-30 18:13:09 +00:00
|
|
|
#include <drivers/uart/pl011_base.h>
|
|
|
|
|
|
|
|
namespace Genode
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Serial output driver specific for the ARM PL011
|
|
|
|
*/
|
|
|
|
class Serial_log : public Pl011_base
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructor
|
|
|
|
*
|
|
|
|
* \param baud_rate targeted transfer baud-rate
|
|
|
|
*/
|
|
|
|
Serial_log(unsigned const baud_rate) :
|
2012-12-10 12:55:19 +00:00
|
|
|
Pl011_base(Board::PL011_0_MMIO_BASE,
|
|
|
|
Board::PL011_0_CLOCK, baud_rate)
|
2012-05-30 18:13:09 +00:00
|
|
|
{ }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _INCLUDE__PL011__DRIVERS__SERIAL_LOG_H_ */
|
|
|
|
|