OpenOCD
|
Go to the source code of this file.
Macros | |
#define | AICE_KHZ_TO_SPEED_MAP_SIZE 16 |
Functions | |
static int | aice_execute_command (struct jtag_command *cmd) |
static int | aice_execute_queue (void) |
static int | aice_execute_reset (struct jtag_command *cmd) |
static int | aice_init (void) |
int | aice_init_targets (void) |
static int | aice_khz (int khz, int *jtag_speed) |
static int | aice_quit (void) |
int | aice_scan_jtag_chain (void) |
static int | aice_speed (int speed) |
static int | aice_speed_div (int speed, int *khz) |
COMMAND_HANDLER (aice_handle_aice_adapter_command) | |
COMMAND_HANDLER (aice_handle_aice_count_to_check_dbger_command) | |
COMMAND_HANDLER (aice_handle_aice_custom_restart_script_command) | |
COMMAND_HANDLER (aice_handle_aice_custom_srst_script_command) | |
COMMAND_HANDLER (aice_handle_aice_custom_trst_script_command) | |
COMMAND_HANDLER (aice_handle_aice_desc_command) | |
COMMAND_HANDLER (aice_handle_aice_info_command) | |
COMMAND_HANDLER (aice_handle_aice_port_command) | |
COMMAND_HANDLER (aice_handle_aice_reset_command) | |
COMMAND_HANDLER (aice_handle_aice_retry_times_command) | |
COMMAND_HANDLER (aice_handle_aice_vid_pid_command) | |
Variables | |
struct adapter_driver | aice_adapter_driver |
static const struct command_registration | aice_command_handlers [] |
static struct jtag_interface | aice_interface |
static const int | aice_khz_to_speed_map [AICE_KHZ_TO_SPEED_MAP_SIZE] |
static uint8_t | aice_num_of_target_id_codes |
static const struct aice_port * | aice_port |
static const struct command_registration | aice_subcommand_handlers [] |
static uint32_t | aice_target_id_codes [AICE_MAX_NUM_CORE] |
static uint32_t | count_to_check_dbger |
static struct aice_port_param_s | param |
static uint32_t | retry_times |
#define AICE_KHZ_TO_SPEED_MAP_SIZE 16 |
Definition at line 20 of file aice_interface.c.
|
static |
Definition at line 154 of file aice_interface.c.
References aice_execute_reset(), cmd, ERROR_OK, and JTAG_RESET.
Referenced by aice_execute_queue().
|
static |
Definition at line 171 of file aice_interface.c.
References aice_execute_command(), cmd, ERROR_JTAG_QUEUE_FAILED, ERROR_OK, and jtag_command_queue.
|
static |
Definition at line 137 of file aice_interface.c.
References aice_port::api, cmd, ERROR_OK, LOG_DEBUG_IO, and aice_port_api_s::reset.
Referenced by aice_execute_command().
|
static |
Definition at line 112 of file aice_interface.c.
References aice_port::api, count_to_check_dbger, ERROR_JTAG_INIT_FAILED, ERROR_OK, LOG_ERROR, LOG_INFO, aice_port_api_s::open, param, retry_times, aice_port_api_s::set_count_to_check_dbger, and aice_port_api_s::set_retry_times.
int aice_init_targets | ( | void | ) |
Definition at line 52 of file aice_interface.c.
References jtag_tap::abs_chain_position, aice_num_of_target_id_codes, aice_port, aice_target_id_codes, all_targets, aice_port::api, aice_port_s::coreid, ERROR_FAIL, ERROR_OK, jtag_tap::expected_ids, jtag_tap::expected_ids_cnt, jtag_tap::hasidcode, aice_port_api_s::idcode, jtag_tap::idcode, LOG_DEBUG, LOG_ERROR, target::next, aice_port_s::port, jtag_tap::priv, target::tap, and target.
Referenced by aice_transport_init().
|
static |
Definition at line 205 of file aice_interface.c.
References aice_khz_to_speed_map, AICE_KHZ_TO_SPEED_MAP_SIZE, AICE_TCK_CONTROL_TCK3048, ERROR_FAIL, ERROR_OK, and LOG_INFO.
|
static |
Definition at line 131 of file aice_interface.c.
References aice_port::api, aice_port_api_s::close, and ERROR_OK.
int aice_scan_jtag_chain | ( | void | ) |
Definition at line 231 of file aice_interface.c.
References jtag_tap::abs_chain_position, aice_target_id_codes, all_targets, aice_port::api, ERROR_OK, aice_port_api_s::idcode, jtag_tap::idcode, LOG_DEBUG, LOG_ERROR, target::next, target::tap, and target.
Referenced by COMMAND_HANDLER().
|
static |
Definition at line 189 of file aice_interface.c.
References aice_port::api, and aice_port_api_s::set_jtag_clock.
|
static |
Definition at line 196 of file aice_interface.c.
References aice_khz_to_speed_map, and ERROR_OK.
COMMAND_HANDLER | ( | aice_handle_aice_adapter_command | ) |
Definition at line 316 of file aice_interface.c.
References aice_port_param_s::adapter_name, CMD_ARGC, CMD_ARGV, ERROR_OK, LOG_DEBUG, LOG_ERROR, and param.
COMMAND_HANDLER | ( | aice_handle_aice_count_to_check_dbger_command | ) |
Definition at line 340 of file aice_interface.c.
References CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, count_to_check_dbger, ERROR_OK, LOG_DEBUG, and LOG_ERROR.
COMMAND_HANDLER | ( | aice_handle_aice_custom_restart_script_command | ) |
Definition at line 377 of file aice_interface.c.
References aice_port::api, CMD_ARGC, CMD_ARGV, ERROR_FAIL, ERROR_OK, LOG_DEBUG, and aice_port_api_s::set_custom_restart_script.
COMMAND_HANDLER | ( | aice_handle_aice_custom_srst_script_command | ) |
Definition at line 353 of file aice_interface.c.
References aice_port::api, CMD_ARGC, CMD_ARGV, ERROR_FAIL, ERROR_OK, LOG_DEBUG, and aice_port_api_s::set_custom_srst_script.
COMMAND_HANDLER | ( | aice_handle_aice_custom_trst_script_command | ) |
Definition at line 365 of file aice_interface.c.
References aice_port::api, CMD_ARGC, CMD_ARGV, ERROR_FAIL, ERROR_OK, LOG_DEBUG, and aice_port_api_s::set_custom_trst_script.
COMMAND_HANDLER | ( | aice_handle_aice_desc_command | ) |
Definition at line 289 of file aice_interface.c.
References CMD_ARGC, CMD_ARGV, aice_port_param_s::device_desc, ERROR_OK, LOG_DEBUG, LOG_ERROR, and param.
COMMAND_HANDLER | ( | aice_handle_aice_info_command | ) |
Definition at line 257 of file aice_interface.c.
References adapter_get_required_serial(), aice_port_param_s::adapter_name, CMD, command_print(), aice_port_param_s::device_desc, ERROR_OK, LOG_DEBUG, aice_port::name, and param.
COMMAND_HANDLER | ( | aice_handle_aice_port_command | ) |
Definition at line 269 of file aice_interface.c.
References aice_port_get_list(), CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, LOG_DEBUG, LOG_ERROR, and aice_port::name.
COMMAND_HANDLER | ( | aice_handle_aice_reset_command | ) |
Definition at line 389 of file aice_interface.c.
COMMAND_HANDLER | ( | aice_handle_aice_retry_times_command | ) |
Definition at line 328 of file aice_interface.c.
References CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, ERROR_OK, LOG_DEBUG, LOG_ERROR, and retry_times.
COMMAND_HANDLER | ( | aice_handle_aice_vid_pid_command | ) |
Definition at line 301 of file aice_interface.c.
References CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, LOG_DEBUG, LOG_WARNING, param, aice_port_param_s::pid, and aice_port_param_s::vid.
struct adapter_driver aice_adapter_driver |
Definition at line 389 of file aice_interface.c.
|
static |
Definition at line 389 of file aice_interface.c.
|
static |
Definition at line 389 of file aice_interface.c.
|
static |
Definition at line 21 of file aice_interface.c.
Referenced by aice_khz(), and aice_speed_div().
|
static |
Definition at line 48 of file aice_interface.c.
Referenced by aice_init_targets().
Definition at line 40 of file aice_interface.c.
Referenced by aice_init_targets().
|
static |
Definition at line 389 of file aice_interface.c.
|
static |
Definition at line 47 of file aice_interface.c.
Referenced by aice_init_targets(), and aice_scan_jtag_chain().
|
static |
Definition at line 43 of file aice_interface.c.
Referenced by aice_init(), and COMMAND_HANDLER().
|
static |
Definition at line 40 of file aice_interface.c.
Referenced by aice_init(), aice_open(), aice_open_device(), aice_pipe_child_init(), aice_pipe_open(), aice_pipe_parent_init(), aice_usb_open(), cfi_fixup_0002_erase_regions(), cfi_fixup_0002_polling_bits(), cfi_fixup_0002_unlock_addresses(), cfi_fixup_reversed_erase_regions(), chibios_get_thread_reg_list(), chibios_update_memory_signature(), chibios_update_stacking(), chibios_update_threads(), COMMAND_HANDLER(), destroy_mem_param(), destroy_reg_param(), ecos_get_thread_reg_list(), ecos_update_threads(), embkernel_get_tasks_details(), embkernel_get_thread_reg_list(), embkernel_update_threads(), freertos_get_thread_reg_list(), freertos_update_threads(), get_stacking_info(), get_stacking_info_arm926ejs(), init_mem_param(), init_reg_param(), is_thread_id_valid(), psoc4_mass_erase(), riot_get_thread_reg_list(), riot_update_threads(), sam4l_probe(), samd_get_flash_page_info(), stlink_open(), stlink_usb_hl_open(), stlink_usb_open(), stlink_usb_usb_open(), threadx_get_thread_reg_list(), threadx_update_threads(), zephyr_fetch_thread(), and zephyr_update_threads().
|
static |
Definition at line 42 of file aice_interface.c.
Referenced by aice_batch_buffer_read(), aice_batch_buffer_write(), aice_do_execute(), aice_fastread_mem(), aice_fastwrite_mem(), aice_init(), aice_read_dtr(), aice_read_dtr_to_buffer(), aice_read_edmsr(), aice_read_mem(), aice_read_mem_b(), aice_read_mem_h(), aice_read_misc(), aice_scan_chain(), aice_write_dim(), aice_write_dtr(), aice_write_dtr_from_buffer(), aice_write_edmsr(), aice_write_mem(), aice_write_mem_b(), aice_write_mem_h(), aice_write_misc(), and COMMAND_HANDLER().