OpenBIC
OpenSource Bridge-IC
plat_gpio.c File Reference
#include <string.h>
#include <logging/log.h>
#include "util_sys.h"
#include "plat_isr.h"
#include "plat_class.h"
#include "plat_gpio.h"
#include "plat_i2c.h"
Include dependency graph for plat_gpio.c:

Macros

#define gpio_name_to_num(x)   #x,
 

Functions

 LOG_MODULE_REGISTER (plat_gpio)
 
bool pal_load_gpio_config (void)
 
int get_ioe_value (uint8_t ioe_addr, uint8_t ioe_reg, uint8_t *value)
 
int set_ioe_value (uint8_t ioe_addr, uint8_t ioe_reg, uint8_t value)
 
void init_ioe_config ()
 
int check_ioe4_e1s_prsnt_pin ()
 

Variables

char * gpio_name []
 
GPIO_CFG plat_gpio_cfg []
 
IOE_CFG ioe_cfg []
 

Macro Definition Documentation

◆ gpio_name_to_num

#define gpio_name_to_num (   x)    #x,

Function Documentation

◆ check_ioe4_e1s_prsnt_pin()

int check_ioe4_e1s_prsnt_pin ( )
Here is the call graph for this function:

◆ get_ioe_value()

int get_ioe_value ( uint8_t  ioe_addr,
uint8_t  ioe_reg,
uint8_t *  value 
)
Here is the call graph for this function:

◆ init_ioe_config()

void init_ioe_config ( )
Here is the call graph for this function:

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_gpio  )

◆ pal_load_gpio_config()

bool pal_load_gpio_config ( void  )
Here is the call graph for this function:

◆ set_ioe_value()

int set_ioe_value ( uint8_t  ioe_addr,
uint8_t  ioe_reg,
uint8_t  value 
)
Here is the call graph for this function:

Variable Documentation

◆ gpio_name

char* gpio_name[]
Initial value:
= {
}
#define name_gpioO
Definition: plat_gpio.h:157
#define name_gpioK
Definition: plat_gpio.h:120
#define name_gpioH
Definition: plat_gpio.h:93
#define name_gpioQ
Definition: plat_gpio.h:176
#define name_gpioR
Definition: plat_gpio.h:185
#define name_gpioP
Definition: plat_gpio.h:166
#define name_gpioE
Definition: plat_gpio.h:66
#define name_gpioL
Definition: plat_gpio.h:129
#define name_gpioC
Definition: plat_gpio.h:48
#define name_gpioD
Definition: plat_gpio.h:57
#define name_gpioT
Definition: plat_gpio.h:205
#define name_gpioN
Definition: plat_gpio.h:148
#define name_gpioM
Definition: plat_gpio.h:139
#define name_gpioI
Definition: plat_gpio.h:102
#define name_gpioB
Definition: plat_gpio.h:39
#define name_gpioJ
Definition: plat_gpio.h:111
#define name_gpioA
Definition: plat_gpio.h:30
#define name_gpioG
Definition: plat_gpio.h:84
#define name_gpioS
Definition: plat_gpio.h:195
#define name_gpioU
Definition: plat_gpio.h:215
@ name_gpioF
Definition: plat_gpio.h:176

◆ ioe_cfg

IOE_CFG ioe_cfg[]
Initial value:
= {
}
@ TCA9555_OUTPUT_PORT_REG_0
Definition: ioexp_tca9555.h:34
@ TCA9555_OUTPUT_PORT_REG_1
Definition: ioexp_tca9555.h:35
@ TCA9555_CONFIG_REG_1
Definition: ioexp_tca9555.h:39
@ TCA9555_CONFIG_REG_0
Definition: ioexp_tca9555.h:38
#define ADDR_IOE4
Definition: plat_isr.h:27
#define ADDR_IOE2
Definition: plat_isr.h:25
#define ADDR_IOE1
Definition: plat_isr.h:24
#define ADDR_IOE3
Definition: plat_isr.h:26

◆ plat_gpio_cfg

GPIO_CFG plat_gpio_cfg[]