libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
pio_common_3a3u3x.h
Go to the documentation of this file.
1/*
2 * This file is part of the libopencm3 project.
3 *
4 * COpyright (C) 2014 Felix Held <felix-libopencm3@felixheld.de>
5 *
6 * This library is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this library. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20/* THIS FILE SHOULD NOT BE INCLUDED DIRECTLY, BUT ONLY VIA PIO.H
21The order of header inclusion is important. pio.h includes the device
22specific memorymap.h header before including this header file.*/
23
24#if defined(LIBOPENCM3_PIO_H)
25
26#ifndef LIBOPENCM3_PIO_COMMON_3A3U3X_H
27#define LIBOPENCM3_PIO_COMMON_3A3U3X_H
28
30
31/* --- PIO registers ----------------------------------------------------- */
32
33/* Peripheral AB Select Register */
34#define PIO_ABSR(port) MMIO32((port) + 0x0070)
35
36/* System Clock Glitch Input Filter Select Register */
37#define PIO_SCIFSR(port) MMIO32((port) + 0x0080)
38
39/* Debouncing Input Filter Select Register */
40#define PIO_DIFSR(port) MMIO32((port) + 0x0084)
41
42/* Glitch or Debouncing Input Filter Clock Selection Status Register */
43#define PIO_IFDGSR(port) MMIO32((port) + 0x0088)
44
45
46#endif
47
48#else
49#warning "pio_common_3a3u3x.h should not be included explicitly, only via pio.h"
50#endif