## General-Purpose I/O Interface Macro Definition Documentation

### GPIO_LEVEL1_DRIVE

#define GPIO_LEVEL1_DRIVE GPIO_2X_DRIVE

1st level GPIO drive strength

Location: gpio.h:80

### GPIO_LEVEL2_DRIVE

#define GPIO_LEVEL2_DRIVE GPIO_3X_DRIVE

2nd level GPIO drive strength

Location: gpio.h:83

### GPIO_LEVEL3_DRIVE

#define GPIO_LEVEL3_DRIVE GPIO_5X_DRIVE

3rd level GPIO drive strength

Location: gpio.h:86

### GPIO_LEVEL4_DRIVE

#define GPIO_LEVEL4_DRIVE GPIO_6X_DRIVE

4th level GPIO drive strength

Location: gpio.h:89

### SYS_GPIO_CONFIG

#define SYS_GPIO_CONFIG SYS_ASSERT(pad < GPIO_PAD_COUNT); \ GPIO->CFG[(pad)] = (config)

Configure the specified digital I/O.

Location: gpio.h:104

Parameters

Direction | Name | Description
--- | --- | ---
in | pad | Digital I/O pad to configure; use a constant
in | config | I/O configuration; use GPIO_*X_DRIVE, GPIO_LPF_[ENABLE | DISABLE], GPIO_*_PULL, and GPIO_MODE_*

Example Code for SYS_GPIO_CONFIG
// Enable GPIO 5 as GPIO input using no pull-up resistor SYS_GPIO_CONFIG(GPIO5, GPIO_MODE_GPIO_IN | GPIO_NO_PULL);