libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
gpio.h
Go to the documentation of this file.
1/* This provides unification of code over SAM subfamilies */
2
3/*
4 * This file is part of the libopencm3 project.
5 *
6 * Copyright (C) 2014 Felix Held <felix-libopencm3@felixheld.de>
7 *
8 * This library is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this library. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#if defined(SAM3A)
23# include <libopencm3/sam/3a/gpio.h>
24#elif defined(SAM3N)
26#elif defined(SAM3S)
27# include <libopencm3/sam/3s/gpio.h>
28#elif defined(SAM3U)
29# include <libopencm3/sam/3u/gpio.h>
30#elif defined(SAM3X)
31# include <libopencm3/sam/3x/gpio.h>
32#elif defined(SAM4L)
33# include <libopencm3/sam/4l/gpio.h>
34#else
35# error "sam family not defined."
36#endif