AM261x MCU+ SDK: PINMUX

| AM261x MCU+ SDK 26.00.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))
},
{PINMUX_END, PINMUX_END}
};
void Pinmux_init(void)
{
Pinmux_config(gMainPinmuxData, PINMUX_DOMAIN_ID_MAIN);
}

# API

APIs for PINMUX

PINMUX_END
#define PINMUX_END
Macro to mark end of pinmux config array.
Definition: pinmux/am261x/pinmux.h:89
Pinmux_PerCfg_t
Structure defining the pin configuration parameters.
Definition: pinmux/am261x/pinmux.h:384
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
Definition: pinmux/am261x/pinmux.h:85
PIN_PULL_DISABLE
#define PIN_PULL_DISABLE
Resistor enable.
Definition: pinmux/am261x/pinmux.h:103
PIN_MODE
#define PIN_MODE(mode)
Pin mode - it is at 0th bit. No shift requried.
Definition: pinmux/am261x/pinmux.h:91