libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
iomuxc.c
Go to the documentation of this file.
1/** @defgroup VF6xx_iomuxc IOMUX-Control
2 *
3 * @ingroup VF6xx
4 *
5 * @section vf6xx_gpio_api_ex GPIO API.
6 *
7 * @brief <b>VF6xx IO Pad MUX Controller</b>
8 *
9 * @author @htmlonly &copy; @endhtmlonly 2014 Stefan Agner <stefan@agner.ch>
10 *
11 * @date 07 July 2014
12 *
13 * This library supports the GPIO module in the VF6xx SoC of Freescale.
14 * Access is provided by GPIO number according to the Pinmux list of the
15 * Reference Manual, similar as GPIOs are available on Linux.
16 *
17 * LGPL License Terms @ref lgpl_license
18 */
19/*
20 * This file is part of the libopencm3 project.
21 *
22 * Copyright (C) 2014 Stefan Agner <stefan@agner.ch>
23 *
24 * This library is free software: you can redistribute it and/or modify
25 * it under the terms of the GNU Lesser General Public License as published by
26 * the Free Software Foundation, either version 3 of the License, or
27 * (at your option) any later version.
28 *
29 * This library is distributed in the hope that it will be useful,
30 * but WITHOUT ANY WARRANTY; without even the implied warranty of
31 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 * GNU Lesser General Public License for more details.
33 *
34 * You should have received a copy of the GNU Lesser General Public License
35 * along with this library. If not, see <http://www.gnu.org/licenses/>.
36 */
37
38/**@{*/
39
42
43/*---------------------------------------------------------------------------*/
44/** @brief Set GPIO
45
46Set GPIO by GPIO number according to MUX list
47
48@param[in] gpio unsigned 32 bit. GPIO number
49*/
50
51void iomuxc_mux(enum vf6xx_pad pad, uint32_t muxc)
52{
53 IOMUXC(pad) = muxc;
54}
55
56/**@}*/
57
void iomuxc_mux(enum vf6xx_pad pad, uint32_t muxc)
Set GPIO.
Definition: iomuxc.c:51
#define IOMUXC(pad)
Definition: iomuxc.h:48
vf6xx_pad
IO-MUX Pads.
Definition: iomuxc.h:107