libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
ritimer.h
Go to the documentation of this file.
1/** @defgroup ritimer_defines Repetitive Interrupt Timer Defines
2
3@brief <b>Defined Constants and Types for the LPC43xx Repetitive Interrupt
4Timer</b>
5
6@ingroup LPC43xx_defines
7
8@version 1.0.0
9
10@author @htmlonly &copy; @endhtmlonly 2012 Michael Ossmann <mike@ossmann.com>
11
12@date 10 March 2013
13
14LGPL License Terms @ref lgpl_license
15 */
16/*
17 * This file is part of the libopencm3 project.
18 *
19 * Copyright (C) 2012 Michael Ossmann <mike@ossmann.com>
20 *
21 * This library is free software: you can redistribute it and/or modify
22 * it under the terms of the GNU Lesser General Public License as published by
23 * the Free Software Foundation, either version 3 of the License, or
24 * (at your option) any later version.
25 *
26 * This library is distributed in the hope that it will be useful,
27 * but WITHOUT ANY WARRANTY; without even the implied warranty of
28 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 * GNU Lesser General Public License for more details.
30 *
31 * You should have received a copy of the GNU Lesser General Public License
32 * along with this library. If not, see <http://www.gnu.org/licenses/>.
33 */
34
35#ifndef LPC43XX_RITIMER_H
36#define LPC43XX_RITIMER_H
37
38/**@{*/
39
42
43/* --- Repetitive Interrupt Timer registers -------------------------------- */
44
45/* Compare register */
46#define RITIMER_COMPVAL MMIO32(RITIMER_BASE + 0x000)
47
48/* Mask register */
49#define RITIMER_MASK MMIO32(RITIMER_BASE + 0x004)
50
51/* Control register */
52#define RITIMER_CTRL MMIO32(RITIMER_BASE + 0x008)
53
54/* 32-bit counter */
55#define RITIMER_COUNTER MMIO32(RITIMER_BASE + 0x00C)
56
57/**@}*/
58
59#endif