OpenBIC
OpenSource Bridge-IC
|
#include <zephyr.h>
#include <stdio.h>
#include <string.h>
#include <logging/log.h>
#include "hal_gpio.h"
#include "util_sys.h"
Macros | |
#define | STACK_SIZE 2048 |
Functions | |
LOG_MODULE_REGISTER (hal_gpio) | |
__weak bool | plat_gpio_immediate_int_cb (uint8_t gpio_num) |
void | irq_callback (const struct device *dev, struct gpio_callback *cb, uint32_t pins) |
int | gpio_interrupt_conf (uint8_t gpio_num, gpio_flags_t flags) |
uint8_t | gpio_get_reg_value (uint8_t gpio_num, uint8_t reg_offset) |
void | gpio_cb_irq_init (uint8_t gpio_num, gpio_flags_t flags) |
int | gpio_conf (uint8_t gpio_num, int dir) |
int | gpio_get_direction (uint8_t gpio_num) |
int | gpio_get (uint8_t gpio_num) |
int | gpio_set (uint8_t gpio_num, uint8_t status) |
void | gpio_index_to_num (void) |
void | init_gpio_dev (void) |
void | scu_init (SCU_CFG cfg[], size_t size) |
__weak bool | pal_load_gpio_config (void) |
int | gpio_init (const struct device *args) |
Variables | |
struct k_work | gpio_work [TOTAL_GPIO_NUM] |
uint8_t | gpio_ind_to_num_table [TOTAL_GPIO_NUM] |
uint8_t | gpio_ind_to_num_table_cnt |
__weak char * | gpio_name [] = {} |
GPIO_CFG | gpio_cfg [GPIO_CFG_SIZE] |
uint32_t | GPIO_GROUP_REG_ACCESS [GPIO_GROUP_NUM] |
uint32_t | GPIO_MULTI_FUNC_PIN_CTL_REG_ACCESS [] |
const int | GPIO_MULTI_FUNC_CFG_SIZE = ARRAY_SIZE(GPIO_MULTI_FUNC_PIN_CTL_REG_ACCESS) |
#define STACK_SIZE 2048 |
void gpio_cb_irq_init | ( | uint8_t | gpio_num, |
gpio_flags_t | flags | ||
) |
int gpio_conf | ( | uint8_t | gpio_num, |
int | dir | ||
) |
int gpio_get | ( | uint8_t | gpio_num | ) |
int gpio_get_direction | ( | uint8_t | gpio_num | ) |
uint8_t gpio_get_reg_value | ( | uint8_t | gpio_num, |
uint8_t | reg_offset | ||
) |
void gpio_index_to_num | ( | void | ) |
int gpio_init | ( | const struct device * | args | ) |
int gpio_interrupt_conf | ( | uint8_t | gpio_num, |
gpio_flags_t | flags | ||
) |
int gpio_set | ( | uint8_t | gpio_num, |
uint8_t | status | ||
) |
void init_gpio_dev | ( | void | ) |
void irq_callback | ( | const struct device * | dev, |
struct gpio_callback * | cb, | ||
uint32_t | pins | ||
) |
LOG_MODULE_REGISTER | ( | hal_gpio | ) |
__weak bool pal_load_gpio_config | ( | void | ) |
__weak bool plat_gpio_immediate_int_cb | ( | uint8_t | gpio_num | ) |
void scu_init | ( | SCU_CFG | cfg[], |
size_t | size | ||
) |
GPIO_CFG gpio_cfg[GPIO_CFG_SIZE] |
uint32_t GPIO_GROUP_REG_ACCESS[GPIO_GROUP_NUM] |
uint8_t gpio_ind_to_num_table[TOTAL_GPIO_NUM] |
uint8_t gpio_ind_to_num_table_cnt |
const int GPIO_MULTI_FUNC_CFG_SIZE = ARRAY_SIZE(GPIO_MULTI_FUNC_PIN_CTL_REG_ACCESS) |
uint32_t GPIO_MULTI_FUNC_PIN_CTL_REG_ACCESS[] |
__weak char* gpio_name[] = {} |
struct k_work gpio_work[TOTAL_GPIO_NUM] |