Actions

EmSys

Difference between revisions of "Tm4clib-gpio"

From EdWiki

m
m
Line 1: Line 1:
 
== GPIO ==
 
== GPIO ==
 +
'''Attention'''<br />
 +
An important aspect to consider is that tm4clib uses the AHB aperture for accessing the GPIO registers on the TM4C. The AHB must be explicitly enabled with a call to [[EmSys:Tm4clib-gpio-functions#gpio_enable_ahb_aperture()|gpio_enable_ahb_aperture()]] before accessing any GPIO functionality.
 +
 +
Please see the individual GPIO modules for more details. To use the GPIO, the ''gpio.h'' header needs to be included:
 +
 +
<nowiki>#</nowiki>include <gpio.h>
 +
 
=== Modules ===
 
=== Modules ===
 
*[[EmSys:tm4clib_GPIO_pin_configuration | GPIO pin configuration]]
 
*[[EmSys:tm4clib_GPIO_pin_configuration | GPIO pin configuration]]
Line 16: Line 23:
 
'''GPIO_LOCK_UNLOCK_CODE''' <br />
 
'''GPIO_LOCK_UNLOCK_CODE''' <br />
 
  <nowiki>#</nowiki>define GPIO_LOCK_UNLOCK_CODE  0x4C4F434B
 
  <nowiki>#</nowiki>define GPIO_LOCK_UNLOCK_CODE  0x4C4F434B
 
'''Attention'''<br />
 
An important aspect to consider is that tm4clib uses the AHB aperture for accessing the GPIO registers on the TM4C. The AHB must be explicitly enabled with a call to [[EmSys:Tm4clib-gpio-functions#gpio_enable_ahb_aperture()|gpio_enable_ahb_aperture()]] before accessing any GPIO functionality.
 
 
Please see the individual GPIO modules for more details. To use the GPIO, the ''gpio.h'' header needs to be included:
 
 
<nowiki>#</nowiki>include <gpio.h>
 

Revision as of 09:57, 6 November 2018

GPIO

Attention
An important aspect to consider is that tm4clib uses the AHB aperture for accessing the GPIO registers on the TM4C. The AHB must be explicitly enabled with a call to gpio_enable_ahb_aperture() before accessing any GPIO functionality.

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

#include <gpio.h>

Modules


Macros

GPIO_LOCK_UNLOCK_CODE

#define GPIO_LOCK_UNLOCK_CODE   0x4C4F434B