libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
gpio_common_all.h
Go to the documentation of this file.
1/*
2 * This file is part of the libopencm3 project.
3 *
4 * Copyright (C) 2013 Gareth McMullin <gareth@blacksphere.co.nz>
5 * Copyright (C) 2014 Felix Held <felix-libopencm3@felixheld.de>
6 *
7 * This library is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this library. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21/* THIS FILE SHOULD NOT BE INCLUDED DIRECTLY, BUT ONLY VIA GPIO.H
22The order of header inclusion is important. gpio.h includes the device
23specific memorymap.h header before including this header file.*/
24
25#if defined(LIBOPENCM3_GPIO_H)
26
27#ifndef LIBOPENCM3_GPIO_COMMON_ALL_H
28#define LIBOPENCM3_GPIO_COMMON_ALL_H
29
31
33
34void gpio_set(uint32_t gpioport, uint32_t gpios);
35void gpio_clear(uint32_t gpioport, uint32_t gpios);
36void gpio_toggle(uint32_t gpioport, uint32_t gpios);
37
39
40#endif
41
42#else
43#warning "gpio_common_all.h should not be included explicitly, only via gpio.h"
44#endif
#define END_DECLS
Definition: common.h:34
#define BEGIN_DECLS
Definition: common.h:33
void gpio_set(uint32_t gpioport, uint32_t gpios)
Atomic set output.
void gpio_clear(uint32_t gpioport, uint32_t gpios)
Atomic clear output.
void gpio_toggle(uint32_t gpioport, uint32_t gpios)
Toggle output.