OpenOCD
|
Go to the source code of this file.
Functions | |
static int | helper_get_line (enum adapter_gpio_config_index idx) |
static void | helper_release (enum adapter_gpio_config_index idx) |
static bool | is_gpio_config_valid (enum adapter_gpio_config_index idx) |
static int | linuxgpiod_blink (bool on) |
static int | linuxgpiod_init (void) |
static bool | linuxgpiod_jtag_mode_possible (void) |
static int | linuxgpiod_quit (void) |
static bb_value_t | linuxgpiod_read (void) |
static int | linuxgpiod_reset (int trst, int srst) |
static bool | linuxgpiod_swd_mode_possible (void) |
static int | linuxgpiod_swd_write (int swclk, int swdio) |
static void | linuxgpiod_swdio_drive (bool is_output) |
static int | linuxgpiod_swdio_read (void) |
static int | linuxgpiod_write (int tck, int tms, int tdi) |
Variables | |
static const struct adapter_gpio_config * | adapter_gpio_config |
static struct gpiod_chip * | gpiod_chip [ADAPTER_GPIO_IDX_NUM] = {} |
static struct gpiod_line * | gpiod_line [ADAPTER_GPIO_IDX_NUM] = {} |
static bool | last_stored |
static int | last_swclk |
static int | last_swdio |
struct adapter_driver | linuxgpiod_adapter_driver |
static struct bitbang_interface | linuxgpiod_bitbang |
static struct jtag_interface | linuxgpiod_interface |
static const char *const | linuxgpiod_transport [] = { "swd", "jtag", NULL } |
static bool | swdio_input |
|
static |
Definition at line 276 of file linuxgpiod.c.
References ADAPTER_GPIO_DRIVE_MODE_OPEN_DRAIN, ADAPTER_GPIO_DRIVE_MODE_OPEN_SOURCE, ADAPTER_GPIO_DRIVE_MODE_PUSH_PULL, adapter_gpio_get_name(), ADAPTER_GPIO_INIT_STATE_ACTIVE, ADAPTER_GPIO_INIT_STATE_INACTIVE, ADAPTER_GPIO_INIT_STATE_INPUT, ADAPTER_GPIO_PULL_DOWN, ADAPTER_GPIO_PULL_NONE, ADAPTER_GPIO_PULL_UP, config, ERROR_JTAG_INIT_FAILED, ERROR_OK, gpiod_chip, gpiod_line, is_gpio_config_valid(), LOG_ERROR, and LOG_WARNING.
Referenced by linuxgpiod_init().
|
inlinestatic |
Definition at line 255 of file linuxgpiod.c.
References gpiod_chip, gpiod_line, and NULL.
Referenced by linuxgpiod_quit().
|
static |
Definition at line 38 of file linuxgpiod.c.
References adapter_gpio_config::chip_num, and adapter_gpio_config::gpio_num.
Referenced by helper_get_line(), linuxgpiod_jtag_mode_possible(), and linuxgpiod_swd_mode_possible().
|
static |
Definition at line 181 of file linuxgpiod.c.
|
static |
Definition at line 363 of file linuxgpiod.c.
References adapter_gpio_get_config(), ADAPTER_GPIO_IDX_LED, ADAPTER_GPIO_IDX_SRST, ADAPTER_GPIO_IDX_SWCLK, ADAPTER_GPIO_IDX_SWDIO, ADAPTER_GPIO_IDX_SWDIO_DIR, ADAPTER_GPIO_IDX_TCK, ADAPTER_GPIO_IDX_TDI, ADAPTER_GPIO_IDX_TDO, ADAPTER_GPIO_IDX_TMS, ADAPTER_GPIO_IDX_TRST, ADAPTER_GPIO_INIT_STATE_INPUT, ERROR_JTAG_INIT_FAILED, ERROR_OK, helper_get_line(), linuxgpiod_bitbang, linuxgpiod_jtag_mode_possible(), linuxgpiod_quit(), linuxgpiod_swd_mode_possible(), LOG_ERROR, LOG_INFO, transport_is_jtag(), and transport_is_swd().
|
static |
Definition at line 233 of file linuxgpiod.c.
References ADAPTER_GPIO_IDX_TCK, ADAPTER_GPIO_IDX_TDI, ADAPTER_GPIO_IDX_TDO, ADAPTER_GPIO_IDX_TMS, and is_gpio_config_valid().
Referenced by linuxgpiod_init().
|
static |
Definition at line 267 of file linuxgpiod.c.
References ADAPTER_GPIO_IDX_NUM, ERROR_OK, helper_release(), and LOG_DEBUG.
Referenced by linuxgpiod_init().
|
static |
Definition at line 45 of file linuxgpiod.c.
References ADAPTER_GPIO_IDX_TDO, BB_HIGH, BB_LOW, gpiod_line, and LOG_WARNING.
|
static |
Definition at line 208 of file linuxgpiod.c.
References ADAPTER_GPIO_IDX_SRST, ADAPTER_GPIO_IDX_TRST, ERROR_FAIL, ERROR_OK, gpiod_line, LOG_DEBUG, and LOG_WARNING.
|
static |
Definition at line 246 of file linuxgpiod.c.
References ADAPTER_GPIO_IDX_SWCLK, ADAPTER_GPIO_IDX_SWDIO, and is_gpio_config_valid().
Referenced by linuxgpiod_init().
|
static |
Definition at line 155 of file linuxgpiod.c.
References ADAPTER_GPIO_IDX_SWCLK, ADAPTER_GPIO_IDX_SWDIO, ERROR_OK, gpiod_line, last_stored, last_swclk, last_swdio, LOG_WARNING, and swdio_input.
|
static |
Definition at line 120 of file linuxgpiod.c.
References ADAPTER_GPIO_IDX_SWDIO, ADAPTER_GPIO_IDX_SWDIO_DIR, gpiod_line, last_stored, LOG_WARNING, and swdio_input.
|
static |
Definition at line 107 of file linuxgpiod.c.
References ADAPTER_GPIO_IDX_SWDIO, gpiod_line, and LOG_WARNING.
|
static |
Definition at line 64 of file linuxgpiod.c.
References ADAPTER_GPIO_IDX_TCK, ADAPTER_GPIO_IDX_TDI, ADAPTER_GPIO_IDX_TMS, ERROR_OK, gpiod_line, last_tms, and LOG_WARNING.
|
static |
Definition at line 30 of file linuxgpiod.c.
|
static |
Definition at line 22 of file linuxgpiod.c.
Referenced by helper_get_line(), and helper_release().
|
static |
Definition at line 23 of file linuxgpiod.c.
Referenced by helper_get_line(), helper_release(), linuxgpiod_read(), linuxgpiod_reset(), linuxgpiod_swd_write(), linuxgpiod_swdio_drive(), linuxgpiod_swdio_read(), and linuxgpiod_write().
|
static |
Definition at line 27 of file linuxgpiod.c.
Referenced by linuxgpiod_swd_write(), and linuxgpiod_swdio_drive().
|
static |
Definition at line 25 of file linuxgpiod.c.
Referenced by linuxgpiod_swd_write().
|
static |
Definition at line 26 of file linuxgpiod.c.
Referenced by linuxgpiod_swd_write().
struct adapter_driver linuxgpiod_adapter_driver |
Definition at line 428 of file linuxgpiod.c.
|
static |
Definition at line 181 of file linuxgpiod.c.
Referenced by linuxgpiod_init().
|
static |
Definition at line 428 of file linuxgpiod.c.
|
static |
Definition at line 428 of file linuxgpiod.c.
|
static |
Definition at line 28 of file linuxgpiod.c.
Referenced by linuxgpiod_swd_write(), and linuxgpiod_swdio_drive().