2013-01-25 15:56:39 +00:00
|
|
|
/*
|
|
|
|
* \brief Serial output driver for console lib
|
|
|
|
* \author Martin Stein
|
2013-12-03 10:10:13 +00:00
|
|
|
* \author Stefan Kalkowski
|
2013-01-25 15:56:39 +00:00
|
|
|
* \date 2013-01-09
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 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.
|
|
|
|
*/
|
|
|
|
|
2013-12-03 10:10:13 +00:00
|
|
|
#ifndef _INCLUDE__EXYNOS_UART__DRIVERS__SERIAL_LOG_H_
|
|
|
|
#define _INCLUDE__EXYNOS_UART__DRIVERS__SERIAL_LOG_H_
|
2013-01-25 15:56:39 +00:00
|
|
|
|
|
|
|
/* Genode includes */
|
|
|
|
#include <board.h>
|
2013-12-03 10:10:13 +00:00
|
|
|
#include <drivers/uart/exynos_uart_base.h>
|
2013-01-25 15:56:39 +00:00
|
|
|
|
|
|
|
namespace Genode
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Serial output driver for console lib
|
|
|
|
*/
|
2013-12-03 10:10:13 +00:00
|
|
|
class Serial_log : public Exynos_uart_base
|
2013-01-25 15:56:39 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructor
|
|
|
|
*
|
|
|
|
* \param baud_rate targeted transfer baud-rate
|
|
|
|
*/
|
|
|
|
Serial_log(unsigned const baud_rate) :
|
2013-12-03 10:10:13 +00:00
|
|
|
Exynos_uart_base(Board::UART_2_MMIO_BASE,
|
|
|
|
Board::UART_2_CLOCK, baud_rate)
|
2013-01-25 15:56:39 +00:00
|
|
|
{ }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2013-12-03 10:10:13 +00:00
|
|
|
#endif /* _INCLUDE__EXYNOS_UART__DRIVERS__SERIAL_LOG_H_ */
|
2013-01-25 15:56:39 +00:00
|
|
|
|