AM65x MCU+ SDK  09.01.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[] =
{
{
},
};
void Pinmux_init(void)
{
}

API

APIs for PINMUX

PINMUX_END
#define PINMUX_END
Macro to mark end of pinmux config array.
Definition: pinmux/am65x/pinmux.h:85
Pinmux_PerCfg_t
Structure defining the pin configuration parameters.
Definition: pinmux/am65x/pinmux.h:382
Pinmux_config
void Pinmux_config(const Pinmux_PerCfg_t *pinmuxCfg, uint32_t domainId)
This API configures the pinmux based on the domain.
PIN_INPUT_ENABLE
#define PIN_INPUT_ENABLE
Receiver enable.
Definition: pinmux/am65x/pinmux.h:94
PIN_SPI0_CS1
@ PIN_SPI0_CS1
Definition: pinmux/am65x/pinmux.h:215
pinmux.h
PINMUX_DOMAIN_ID_MAIN
#define PINMUX_DOMAIN_ID_MAIN
Definition: pinmux/am65x/pinmux.h:80
PIN_PULL_DIRECTION
#define PIN_PULL_DIRECTION
Pull direction.
Definition: pinmux/am65x/pinmux.h:92
PIN_PULL_DISABLE
#define PIN_PULL_DISABLE
Resistor enable.
Definition: pinmux/am65x/pinmux.h:90
PIN_MODE
#define PIN_MODE(mode)
Pin mode - it is at 0th bit. No shift requried.
Definition: pinmux/am65x/pinmux.h:88