AM263x 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/am263x/pinmux.h:89
Pinmux_PerCfg_t
Structure defining the pin configuration parameters.
Definition: pinmux/am263x/pinmux.h:299
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/am263x/pinmux.h:85
PIN_PULL_DISABLE
#define PIN_PULL_DISABLE
Resistor enable.
Definition: pinmux/am263x/pinmux.h:103
PIN_MODE
#define PIN_MODE(mode)
Pin mode - it is at 0th bit. No shift requried.
Definition: pinmux/am263x/pinmux.h:91