libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
gpio.c
Go to the documentation of this file.
1
/** @defgroup gpio_file GPIO
2
3
@ingroup LPC13xx
4
5
@brief <b>libopencm3 LPC13xx General Purpose I/O</b>
6
7
@version 1.0.0
8
9
@author @htmlonly © @endhtmlonly 2009 Uwe Hermann <uwe@hermann-uwe.de>
10
11
LGPL License Terms @ref lgpl_license
12
*/
13
/*
14
* This file is part of the libopencm3 project.
15
*
16
* Copyright (C) 2010 Uwe Hermann <uwe@hermann-uwe.de>
17
*
18
* This library is free software: you can redistribute it and/or modify
19
* it under the terms of the GNU Lesser General Public License as published by
20
* the Free Software Foundation, either version 3 of the License, or
21
* (at your option) any later version.
22
*
23
* This library is distributed in the hope that it will be useful,
24
* but WITHOUT ANY WARRANTY; without even the implied warranty of
25
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
* GNU Lesser General Public License for more details.
27
*
28
* You should have received a copy of the GNU Lesser General Public License
29
* along with this library. If not, see <http://www.gnu.org/licenses/>.
30
*/
31
32
/**@{*/
33
34
#include <
libopencm3/lpc13xx/gpio.h
>
35
36
void
gpio_set
(uint32_t gpioport, uint16_t gpios)
37
{
38
GPIO_DATA
(gpioport) = gpios;
39
}
40
41
/**@}*/
42
gpio.h
GPIO_DATA
#define GPIO_DATA(port)
Definition:
gpio.h:53
gpio_set
void gpio_set(uint32_t gpioport, uint16_t gpios)
Definition:
gpio.c:36
lib
lpc13xx
gpio.c
Generated on Tue Mar 7 2023 16:12:58 for libopencm3 by
1.9.4