Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
MAX32-specific GPIO Flags . More...
MAX32 GPIO drive flags | |
MAX32 GPIO drive flags The drive flags are encoded in the 8 upper bits of gpio_dt_flags_t as follows:
| |
#define | MAX32_GPIO_VSEL_POS (8U) |
GPIO Voltage Select. | |
#define | MAX32_GPIO_VSEL_MASK (0x01U << MAX32_GPIO_VSEL_POS) |
#define | MAX32_GPIO_VSEL_VDDIO (0U << MAX32_GPIO_VSEL_POS) |
#define | MAX32_GPIO_VSEL_VDDIOH (1U << MAX32_GPIO_VSEL_POS) |
#define | MAX32_GPIO_DRV_STRENGTH_POS (9U) |
GPIO Drive Strength Select. | |
#define | MAX32_GPIO_DRV_STRENGTH_MASK (0x03U << MAX32_GPIO_DRV_STRENGTH_POS) |
#define | MAX32_GPIO_DRV_STRENGTH_0 (0U << MAX32_GPIO_DRV_STRENGTH_POS) |
#define | MAX32_GPIO_DRV_STRENGTH_1 (1U << MAX32_GPIO_DRV_STRENGTH_POS) |
#define | MAX32_GPIO_DRV_STRENGTH_2 (2U << MAX32_GPIO_DRV_STRENGTH_POS) |
#define | MAX32_GPIO_DRV_STRENGTH_3 (3U << MAX32_GPIO_DRV_STRENGTH_POS) |
#define | MAX32_GPIO_WEAK_PULL_UP_POS (10U) |
GPIO bias weak pull up selection, to VDDIO (1MOhm) | |
#define | MAX32_GPIO_WEAK_PULL_UP (1U << MAX32_GPIO_WEAK_PULL_UP_POS) |
#define | MAX32_GPIO_WEAK_PULL_DOWN_POS (11U) |
GPIO bias weak pull down selection, to VDDIOH (1MOhm) | |
#define | MAX32_GPIO_WEAK_PULL_DOWN (1U << MAX32_GPIO_WEAK_PULL_DOWN_POS) |
MAX32-specific GPIO Flags .
#define MAX32_GPIO_DRV_STRENGTH_0 (0U << MAX32_GPIO_DRV_STRENGTH_POS) |
#include <zephyr/dt-bindings/gpio/adi-max32-gpio.h>
#define MAX32_GPIO_DRV_STRENGTH_1 (1U << MAX32_GPIO_DRV_STRENGTH_POS) |
#include <zephyr/dt-bindings/gpio/adi-max32-gpio.h>
#define MAX32_GPIO_DRV_STRENGTH_2 (2U << MAX32_GPIO_DRV_STRENGTH_POS) |
#include <zephyr/dt-bindings/gpio/adi-max32-gpio.h>
#define MAX32_GPIO_DRV_STRENGTH_3 (3U << MAX32_GPIO_DRV_STRENGTH_POS) |
#include <zephyr/dt-bindings/gpio/adi-max32-gpio.h>
#define MAX32_GPIO_DRV_STRENGTH_MASK (0x03U << MAX32_GPIO_DRV_STRENGTH_POS) |
#include <zephyr/dt-bindings/gpio/adi-max32-gpio.h>
#define MAX32_GPIO_DRV_STRENGTH_POS (9U) |
#include <zephyr/dt-bindings/gpio/adi-max32-gpio.h>
GPIO Drive Strength Select.
#define MAX32_GPIO_VSEL_MASK (0x01U << MAX32_GPIO_VSEL_POS) |
#include <zephyr/dt-bindings/gpio/adi-max32-gpio.h>
#define MAX32_GPIO_VSEL_POS (8U) |
#include <zephyr/dt-bindings/gpio/adi-max32-gpio.h>
GPIO Voltage Select.
#define MAX32_GPIO_VSEL_VDDIO (0U << MAX32_GPIO_VSEL_POS) |
#include <zephyr/dt-bindings/gpio/adi-max32-gpio.h>
#define MAX32_GPIO_VSEL_VDDIOH (1U << MAX32_GPIO_VSEL_POS) |
#include <zephyr/dt-bindings/gpio/adi-max32-gpio.h>
#define MAX32_GPIO_WEAK_PULL_DOWN (1U << MAX32_GPIO_WEAK_PULL_DOWN_POS) |
#include <zephyr/dt-bindings/gpio/adi-max32-gpio.h>
#define MAX32_GPIO_WEAK_PULL_DOWN_POS (11U) |
#include <zephyr/dt-bindings/gpio/adi-max32-gpio.h>
GPIO bias weak pull down selection, to VDDIOH (1MOhm)
#define MAX32_GPIO_WEAK_PULL_UP (1U << MAX32_GPIO_WEAK_PULL_UP_POS) |
#include <zephyr/dt-bindings/gpio/adi-max32-gpio.h>
#define MAX32_GPIO_WEAK_PULL_UP_POS (10U) |
#include <zephyr/dt-bindings/gpio/adi-max32-gpio.h>
GPIO bias weak pull up selection, to VDDIO (1MOhm)