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 Reference