PINMUX Driver API/interface file.
This file contains pad configure register offsets and bit-field value macros for different configurations,
BIT[21] TXDISABLE disable the pin's output driver BIT[18] RXACTIVE enable the pin's input buffer (typically kept enabled) BIT[17] PULLTYPESEL set the iternal resistor pull direction high or low (if enabled) BIT[16] PULLUDEN internal resistor disable (0 = enabled / 1 = disabled) BIT[3:0] MUXMODE select the desired function on the given pin
Go to the source code of this file.
Data Structures | |
| struct | Pinmux_PerCfg_t |
| Structure defining the pin configuration parameters. More... | |
Macros | |
| #define | PINMUX_END (-1) |
| Macro to mark end of pinmux config array. More... | |
| #define | PIN_MODE(mode) ((uint32_t) mode) |
| Pin mode - it is at 0th bit. No shift requried. More... | |
| #define | PIN_PULL_DISABLE (((uint32_t) 0x1U) << 16U) |
| Resistor enable. More... | |
| #define | PIN_PULL_DIRECTION (((uint32_t) 0x1U) << 17U) |
| Pull direction. More... | |
| #define | PIN_INPUT_ENABLE (((uint32_t) 0x1U) << 18U) |
| Receiver enable. More... | |
| #define | PIN_DRIVE_STRENGTH(strength) ((uint32_t)(strength) << 19U) |
| Drive strength. More... | |
| #define | PIN_OUTPUT_DISABLE (((uint32_t) 0x1U) << 21U) |
| Driver disable. More... | |
| #define | PIN_WAKEUP_ENABLE (((uint32_t) 0x1U) << 29U) |
| Wakeup enable. More... | |
| #define | PIN_DRV_STR_FAST PIN_DRIVE_STRENGTH(2U) |
| #define | PIN_DRV_STR_NOMINAL PIN_DRIVE_STRENGTH(0U) |
Pinmux Domain ID | |
| #define | PINMUX_DOMAIN_ID_MAIN (0U) |
| #define | PINMUX_DOMAIN_ID_MCU (1U) |
Functions | |
| void | Pinmux_config (const Pinmux_PerCfg_t *pinmuxCfg, uint32_t domainId) |
| This API configures the pinmux based on the domain. More... | |
| void | Pinmux_unlockMMR (uint32_t domainId) |
| This API unlocks the PAD config control MMRs for the given domain. More... | |
| void | Pinmux_lockMMR (uint32_t domainId) |
| This API locks the PAD config control MMRs for the given domain. More... | |