libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
GPIO

libopencm3 LM4F General Purpose I/O More...

Collaboration diagram for GPIO:

Modules

 GPIO pin configuration
 Enabling and configuring GPIO pins
 
 GPIO pin control
 Controlling GPIO pins
 
 GPIO Interrupt control
 Configuring interrupts from GPIO pins
 

Macros

#define GPIO_LOCK_UNLOCK_CODE   0x4C4F434B
 

Detailed Description

libopencm3 LM4F General Purpose I/O

Version
1.0.0
Author
© 2011 Gareth McMullin garet.nosp@m.h@bl.nosp@m.acksp.nosp@m.here.nosp@m..co.n.nosp@m.z
© 2013 Alexandru Gagniuc mr.nu.nosp@m.ke.m.nosp@m.e@gma.nosp@m.il.c.nosp@m.om
Date
16 March 2013

LGPL License Terms libopencm3 License

The LM4F GPIO API provides functionality for accessing the GPIO pins of the LM4F.

Attention
An important aspect to consider is that libopencm3 uses the
AHB aperture for accessing the GPIO registers on the LM4F. The AHB must be
explicitly enabled with a call to gpio_enable_ahb_aperture() before accessing
any GPIO functionality.
void gpio_enable_ahb_aperture(void)
Enable access to GPIO registers via the AHB aperture.
Definition: gpio.c:186

Please see the individual GPIO modules for more details. To use the GPIO, the gpio.h header needs to be included:

Macro Definition Documentation

◆ GPIO_LOCK_UNLOCK_CODE

#define GPIO_LOCK_UNLOCK_CODE   0x4C4F434B

Definition at line 61 of file gpio.c.