BSPACM  20150113
Board Support Package for ARM Cortex-M Microcontrollers
Data Fields
sBSPACMdeviceTM4Cpinmux Struct Reference

#include </prj/arm/bspacm/device/tm4c/include/bspacm/periph/gpio.h>

Data Fields

GPIOCommon_Type * port
 
uint8_t pin
 
uint8_t pctl
 
uint8_t irqn
 

Detailed Description

Core structure associating a GPIO port, pin, and port control function.

Note
An all-zero pinmux denotes an unconfigured GPIO due to pctl being zero.

Field Documentation

uint8_t sBSPACMdeviceTM4Cpinmux::irqn

The port IRQ number (starting from 0 = Reset_Handler). This field is likely only set with pctl is zero.

uint8_t sBSPACMdeviceTM4Cpinmux::pctl

The port mux control nybble, with 0 denoting the GPIO function and higher values indicating a specific peripheral function. A valid value is in the range 1 through 15, and must be shifted left by 4*pin in order to place it in the correct location in the corresponding GPIOPCTL register.

Note
A zero value for pctl indicates that the pinmux is not valid and the corresponding GPIO should not be configured for its alternate function. This is used in cases where a particular peripheral supports multiple functions, and a specific function is not needed/supported by the mapping (e.g. the RTS/CTS signals on a UART).
uint8_t sBSPACMdeviceTM4Cpinmux::pin

The pin number, ranging from 0 through 7.

GPIOCommon_Type* sBSPACMdeviceTM4Cpinmux::port

The register pointer for the port to be configured. The specific device is GPIOA_Type or GPIOA_AHB_Type, depending on device line, though the two types are structurally equivalent.


The documentation for this struct was generated from the following file: