ed52d5a211
Instead of holding SPEC-variable dependent files and directories inline within the repository structure, move them into 'spec' subdirectories at the corresponding levels, e.g.: repos/base/include/spec repos/base/mk/spec repos/base/lib/mk/spec repos/base/src/core/spec ... Moreover, this commit removes the 'platform' directories. That term was used in an overloaded sense. All SPEC-relative 'platform' directories are now named 'spec'. Other files, like for instance those related to the kernel/architecture specific startup library, where moved from 'platform' directories to explicit, more meaningful places like e.g.: 'src/lib/startup'. Fix #1673
47 lines
825 B
C++
47 lines
825 B
C++
/*
|
|
* \brief Serial output driver for core
|
|
* \author Martin Stein
|
|
* \author Stefan Kalkowski
|
|
* \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.
|
|
*/
|
|
|
|
#ifndef _SERIAL_H_
|
|
#define _SERIAL_H_
|
|
|
|
/* core includes */
|
|
#include <board.h>
|
|
|
|
/* Genode includes */
|
|
#include <drivers/uart_base.h>
|
|
|
|
namespace Genode
|
|
{
|
|
/**
|
|
* Serial output driver for core
|
|
*/
|
|
class Serial : public Exynos_uart_base
|
|
{
|
|
public:
|
|
|
|
/**
|
|
* Constructor
|
|
*
|
|
* \param baud_rate targeted transfer baud-rate
|
|
*/
|
|
Serial(unsigned const baud_rate)
|
|
:
|
|
Exynos_uart_base(Board::UART_2_MMIO_BASE,
|
|
Board::UART_2_CLOCK, baud_rate)
|
|
{ }
|
|
};
|
|
}
|
|
|
|
#endif /* _SERIAL_H_ */
|