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 © @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
40
#include <
libopencm3/vf6xx/iomuxc.h
>
41
#include <
libopencm3/vf6xx/ccm.h
>
42
43
/*---------------------------------------------------------------------------*/
44
/** @brief Set GPIO
45
46
Set GPIO by GPIO number according to MUX list
47
48
@param[in] gpio unsigned 32 bit. GPIO number
49
*/
50
51
void
iomuxc_mux
(
enum
vf6xx_pad
pad, uint32_t muxc)
52
{
53
IOMUXC
(pad) = muxc;
54
}
55
56
/**@}*/
57
ccm.h
iomuxc_mux
void iomuxc_mux(enum vf6xx_pad pad, uint32_t muxc)
Set GPIO.
Definition:
iomuxc.c:51
IOMUXC
#define IOMUXC(pad)
Definition:
iomuxc.h:48
vf6xx_pad
vf6xx_pad
IO-MUX Pads.
Definition:
iomuxc.h:107
iomuxc.h
lib
vf6xx
iomuxc.c
Generated on Tue Mar 7 2023 16:13:10 for libopencm3 by
1.9.4