AM273x MCU+ SDK  08.02.00
PINMUX

The Pinmux driver provides API to cofigure the pinmux for a particular device

Features Supported

  • API to set pinmux for various domains present in the device

SysConfig Features

  • Pinmux driver is integrated with each of the peripheral drivers. User need not perform any explicit configuration for this driver

Features NOT Supported

NA

Important Usage Guidelines

In the Pinmux_config API, the last entry should be initialized with PINMUX_END so that this function knows the end of configuration.

Example Usage

Include the below file to access the APIs

#include <drivers/pinmux.h>

Pinmux configuration

static Pinmux_PerCfg_t gMainPinmuxData[] =
{
{
PIN_SPI0_CS1,
PIN_MODE(7) | ((PIN_PULL_DISABLE | PIN_INPUT_ENABLE) & (~PIN_PULL_DIRECTION))
},
};
void Pinmux_init(void)
{
}

API

APIs for PINMUX

PINMUX_END
#define PINMUX_END
Macro to mark end of pinmux config array.
Definition: pinmux/am273x/pinmux.h:87
Pinmux_PerCfg_t
Structure defining the pin configuration parameters.
Definition: pinmux/am273x/pinmux.h:228
Pinmux_config
void Pinmux_config(const Pinmux_PerCfg_t *pinmuxCfg, uint32_t domainId)
This API configures the pinmux based on the domain.
pinmux.h
PINMUX_DOMAIN_ID_MAIN
#define PINMUX_DOMAIN_ID_MAIN
NOT USED on this SOC.
Definition: pinmux/am273x/pinmux.h:81
PIN_PULL_DIRECTION
#define PIN_PULL_DIRECTION
Pull direction, 0: pull-down, 1: pull-up.
Definition: pinmux/am273x/pinmux.h:93
PIN_PULL_DISABLE
#define PIN_PULL_DISABLE
Resistor disable.
Definition: pinmux/am273x/pinmux.h:91
PIN_MODE
#define PIN_MODE(mode)
Pin mode.
Definition: pinmux/am273x/pinmux.h:89