This module contains APIs to program and use the pinmux module.
◆ PINMUX_DOMAIN_ID_MAIN
#define PINMUX_DOMAIN_ID_MAIN (0U) |
◆ PINMUX_DOMAIN_ID_MCU
#define PINMUX_DOMAIN_ID_MCU (1U) |
◆ PINMUX_END
#define PINMUX_END (0xFFFFFFFFU) |
Macro to mark end of pinmux config array.
◆ PIN_MODE
#define PIN_MODE |
( |
|
mode | ) |
(mode) |
◆ PIN_PULL_DISABLE
#define PIN_PULL_DISABLE (0x1U << 8U) |
◆ PIN_PULL_DIRECTION
#define PIN_PULL_DIRECTION (0x1U << 9U) |
Pull direction, 0: pull-down, 1: pull-up.
◆ PIN_PAD_AA
#define PIN_PAD_AA (0x00000000U) |
◆ PIN_PAD_AB
#define PIN_PAD_AB (0x00000004U) |
◆ PIN_PAD_AC
#define PIN_PAD_AC (0x00000008U) |
◆ PIN_PAD_AD
#define PIN_PAD_AD (0x0000000CU) |
◆ PIN_PAD_AE
#define PIN_PAD_AE (0x00000010U) |
◆ PIN_PAD_AF
#define PIN_PAD_AF (0x00000014U) |
◆ PIN_PAD_AG
#define PIN_PAD_AG (0x00000018U) |
◆ PIN_PAD_AH
#define PIN_PAD_AH (0x0000001CU) |
◆ PIN_PAD_AI
#define PIN_PAD_AI (0x00000020U) |
◆ PIN_PAD_AJ
#define PIN_PAD_AJ (0x00000024U) |
◆ PIN_PAD_AK
#define PIN_PAD_AK (0x00000028U) |
◆ PIN_PAD_AL
#define PIN_PAD_AL (0x0000002CU) |
◆ PIN_PAD_AM
#define PIN_PAD_AM (0x00000030U) |
◆ PIN_PAD_AN
#define PIN_PAD_AN (0x00000034U) |
◆ PIN_PAD_AO
#define PIN_PAD_AO (0x00000038U) |
◆ PIN_PAD_AP
#define PIN_PAD_AP (0x0000003CU) |
◆ PIN_PAD_AQ
#define PIN_PAD_AQ (0x00000040U) |
◆ PIN_PAD_AR
#define PIN_PAD_AR (0x00000044U) |
◆ PIN_PAD_AS
#define PIN_PAD_AS (0x00000048U) |
◆ PIN_PAD_AT
#define PIN_PAD_AT (0x0000004CU) |
◆ PIN_PAD_AU
#define PIN_PAD_AU (0x00000050U) |
◆ PIN_PAD_AV
#define PIN_PAD_AV (0x00000054U) |
◆ PIN_PAD_AW
#define PIN_PAD_AW (0x00000058U) |
◆ PIN_PAD_AX
#define PIN_PAD_AX (0x0000005CU) |
◆ PIN_OVERRIDE_INPUT_ENABLE
#define PIN_OVERRIDE_INPUT_ENABLE (0x1 << 5U) |
◆ PIN_OVERRIDE_INPUT_ENABLE_CTRL
#define PIN_OVERRIDE_INPUT_ENABLE_CTRL (0x1 << 4U) |
◆ PIN_OVERRIDE_OUTPUT_DISABLE
#define PIN_OVERRIDE_OUTPUT_DISABLE (0x1 << 7U) |
◆ PIN_OVERRIDE_OUTPUT_DISABLE_CTRL
#define PIN_OVERRIDE_OUTPUT_DISABLE_CTRL (0x1 << 6U) |
◆ PIN_SLEW_RATE_HIGH
#define PIN_SLEW_RATE_HIGH (0x0U << 10U) |
◆ PIN_SLEW_RATE_LOW
#define PIN_SLEW_RATE_LOW (0x1U << 10U) |
◆ Pinmux_config()
void Pinmux_config |
( |
const Pinmux_PerCfg_t * |
pinmuxCfg, |
|
|
uint32_t |
domainId |
|
) |
| |
This API configures the pinmux based on the domain.
- Parameters
-
pinmuxCfg | Pointer to list of pinmux configuration array. This parameter cannot be NULL and the last entry should be initialized with PINMUX_END so that this function knows the end of configuration. |
domainId | NOT USED in this SOC |
◆ Pinmux_Read()
uint32_t Pinmux_Read |
( |
uint32_t |
pinOffset | ) |
|
◆ Pinmux_getMode()
uint32_t Pinmux_getMode |
( |
uint32_t |
pad | ) |
|
◆ Pinmux_getPinNum()
uint32_t Pinmux_getPinNum |
( |
uint32_t |
pad | ) |
|
◆ Pinmux_inputoverride()
void Pinmux_inputoverride |
( |
uint32_t |
offset, |
|
|
bool |
state |
|
) |
| |
This API is used to override input enable.
- Parameters
-
offset | Pinmux register offset value. Refer Pinmux_Offsets |
state | Input Enable This parameter is set to 1 to disable input and 0 to disable |
◆ Pinmux_outputoverride()
void Pinmux_outputoverride |
( |
uint32_t |
offset, |
|
|
bool |
state |
|
) |
| |
This API configures pin output override.
- Parameters
-
offset | Pinmux register offset value. Refer Pinmux_Offsets |
state | Output Disable This parameter is set to 1 to Disable output and 0 to enable |