Macros | Functions | Variables
fsl_gpio.c File Reference
#include "fsl_gpio.h"
Include dependency graph for fsl_gpio.c:

Go to the source code of this file.

Macros

#define FSL_COMPONENT_ID   "platform.drivers.igpio"
 

Functions

static uint32_t GPIO_GetInstance (GPIO_Type *base)
 Gets the GPIO instance according to the GPIO base. More...
 
void GPIO_PinInit (GPIO_Type *base, uint32_t pin, const gpio_pin_config_t *Config)
 Initializes the GPIO peripheral according to the specified parameters in the initConfig. More...
 
void GPIO_PinSetInterruptConfig (GPIO_Type *base, uint32_t pin, gpio_interrupt_mode_t pinInterruptMode)
 Sets the current pin interrupt mode. More...
 
void GPIO_PinWrite (GPIO_Type *base, uint32_t pin, uint8_t output)
 Sets the output level of the individual GPIO pin to logic 1 or 0. More...
 

Variables

static GPIO_Type *const s_gpioBases [] = GPIO_BASE_PTRS
 
static const clock_ip_name_t s_gpioClock [] = GPIO_CLOCKS
 

Macro Definition Documentation

◆ FSL_COMPONENT_ID

#define FSL_COMPONENT_ID   "platform.drivers.igpio"

Definition at line 13 of file fsl_gpio.c.

Function Documentation

◆ GPIO_GetInstance()

static uint32_t GPIO_GetInstance ( GPIO_Type base)
static

Gets the GPIO instance according to the GPIO base.

Parameters
baseGPIO peripheral base pointer(PTA, PTB, PTC, etc.)
Return values
GPIOinstance

Definition at line 44 of file fsl_gpio.c.

Variable Documentation

◆ s_gpioBases

GPIO_Type* const s_gpioBases[] = GPIO_BASE_PTRS
static

Definition at line 21 of file fsl_gpio.c.

◆ s_gpioClock

const clock_ip_name_t s_gpioClock[] = GPIO_CLOCKS
static

Definition at line 25 of file fsl_gpio.c.



picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:14:57