6a3368ee27
fix #1006
43 lines
740 B
C++
43 lines
740 B
C++
/*
|
|
* \brief Timer for kernel
|
|
* \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 _IMX31__TIMER_H_
|
|
#define _IMX31__TIMER_H_
|
|
|
|
/* core includes */
|
|
#include <drivers/timer/epit_base.h>
|
|
|
|
namespace Kernel
|
|
{
|
|
class Timer : public Genode::Epit_base
|
|
{
|
|
public:
|
|
|
|
/**
|
|
* Return kernel name of timer interrupt
|
|
*/
|
|
static unsigned interrupt_id(unsigned)
|
|
{
|
|
return Genode::Board::EPIT_1_IRQ;
|
|
}
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
Timer() : Genode::Epit_base(Genode::Board::EPIT_1_MMIO_BASE) { }
|
|
};
|
|
}
|
|
|
|
#endif /* _IMX31__TIMER_H_ */
|
|
|