]> git.sur5r.net Git - openocd/log
openocd
14 years agomem_param_t -> struct mem_param
Zachary T Welch [Fri, 13 Nov 2009 16:39:30 +0000 (08:39 -0800)]
mem_param_t -> struct mem_param

Remove misleading typedef and redundant suffix from struct mem_param.

14 years agoarm920t_common_t -> struct arm920t_common
Zachary T Welch [Fri, 13 Nov 2009 16:36:02 +0000 (08:36 -0800)]
arm920t_common_t -> struct arm920t_common

Remove misleading typedef and redundant suffix from struct arm920t_common.

14 years agoarm11_register_history_t -> struct arm11_register_history
Zachary T Welch [Fri, 13 Nov 2009 16:35:54 +0000 (08:35 -0800)]
arm11_register_history_t -> struct arm11_register_history

Remove misleading typedef and redundant suffix from struct arm11_register_history.

14 years agoremove typedef keyword from svf structures
Zachary T Welch [Fri, 13 Nov 2009 16:20:24 +0000 (08:20 -0800)]
remove typedef keyword from svf structures

Removes all misleading typedef keywords from structures in svf.c.

14 years agopld_device_t -> struct pld_device
Zachary T Welch [Fri, 13 Nov 2009 16:15:00 +0000 (08:15 -0800)]
pld_device_t -> struct pld_device

Remove misleading typedef and redundant suffix from struct pld_device.

14 years agovirtex2_pld_device_t -> struct virtex2_pld_device
Zachary T Welch [Fri, 13 Nov 2009 16:14:57 +0000 (08:14 -0800)]
virtex2_pld_device_t -> struct virtex2_pld_device

Remove misleading typedef and redundant suffix from struct virtex2_pld_device.

14 years agoxilinx_bit_file_t -> struct xilinx_bit_file
Zachary T Welch [Fri, 13 Nov 2009 16:14:54 +0000 (08:14 -0800)]
xilinx_bit_file_t -> struct xilinx_bit_file

Remove misleading typedef and redundant suffix from struct xilinx_bit_file.

14 years agopld_driver_t -> struct pld_driver
Zachary T Welch [Fri, 13 Nov 2009 16:14:52 +0000 (08:14 -0800)]
pld_driver_t -> struct pld_driver

Remove misleading typedef and redundant suffix from struct pld_driver.

14 years agoconnection_t -> struct connection
Zachary T Welch [Fri, 13 Nov 2009 16:10:43 +0000 (08:10 -0800)]
connection_t -> struct connection

Remove misleading typedef and redundant suffix from struct connection.

14 years agotelnet_connection_t -> struct telnet_connection
Zachary T Welch [Fri, 13 Nov 2009 16:07:36 +0000 (08:07 -0800)]
telnet_connection_t -> struct telnet_connection

Remove misleading typedef and redundant suffix from struct telnet_connection.

14 years agotcl_connection_t -> struct tcl_connection
Zachary T Welch [Fri, 13 Nov 2009 16:07:33 +0000 (08:07 -0800)]
tcl_connection_t -> struct tcl_connection

Remove misleading typedef and redundant suffix from struct tcl_connection.

14 years agoservice_t -> struct service
Zachary T Welch [Fri, 13 Nov 2009 16:07:00 +0000 (08:07 -0800)]
service_t -> struct service

Remove misleading typedef and redundant suffix from struct service.

14 years agotelnet_service_t -> struct telnet_service
Zachary T Welch [Fri, 13 Nov 2009 16:06:56 +0000 (08:06 -0800)]
telnet_service_t -> struct telnet_service

Remove misleading typedef and redundant suffix from struct telnet_service.

14 years agogdb_service_t -> struct gdb_service
Zachary T Welch [Fri, 13 Nov 2009 16:06:52 +0000 (08:06 -0800)]
gdb_service_t -> struct gdb_service

Remove misleading typedef and redundant suffix from struct gdb_service.

14 years agogdb_connection_t -> struct gdb_connection
Zachary T Welch [Fri, 13 Nov 2009 16:06:49 +0000 (08:06 -0800)]
gdb_connection_t -> struct gdb_connection

Remove misleading typedef and redundant suffix from struct gdb_connection.

14 years agoremove unused aduc702x structure.
Zachary T Welch [Fri, 13 Nov 2009 16:02:59 +0000 (08:02 -0800)]
remove unused aduc702x structure.

The ADUC702x_FLASH_MMIO structure was completely used, so it must die.

14 years agoaduc702x_flash_bank_t -> struct aduc702x_flash_bank
Zachary T Welch [Fri, 13 Nov 2009 15:48:15 +0000 (07:48 -0800)]
aduc702x_flash_bank_t -> struct aduc702x_flash_bank

Remove misleading typedef and redundant suffix from struct
aduc702x_flash_bank.

14 years agotms470_flash_bank_t -> struct tms470_flash_bank
Zachary T Welch [Fri, 13 Nov 2009 15:42:16 +0000 (07:42 -0800)]
tms470_flash_bank_t -> struct tms470_flash_bank

Remove misleading typedef and redundant suffix from struct tms470_flash_bank.

14 years agopic32mx_mem_layout_t -> struct pic32mx_mem_layout
Zachary T Welch [Fri, 13 Nov 2009 15:41:51 +0000 (07:41 -0800)]
pic32mx_mem_layout_t -> struct pic32mx_mem_layout

Remove misleading typedef and redundant suffix from struct pic32mx_mem_layout.

14 years agonon_cfi_t -> struct non_cfi
Zachary T Welch [Fri, 13 Nov 2009 15:41:28 +0000 (07:41 -0800)]
non_cfi_t -> struct non_cfi

Remove misleading typedef and redundant suffix from struct non_cfi.

14 years agonand_block_t -> struct nand_block
Zachary T Welch [Fri, 13 Nov 2009 15:41:10 +0000 (07:41 -0800)]
nand_block_t -> struct nand_block

Remove misleading typedef and redundant suffix from struct nand_block.

14 years agostr9xpec_flash_controller_t -> struct str9xpec_flash_controller
Zachary T Welch [Fri, 13 Nov 2009 15:39:14 +0000 (07:39 -0800)]
str9xpec_flash_controller_t -> struct str9xpec_flash_controller

Remove misleading typedef and redundant suffix from struct str9xpec_flash_controller.

14 years agostr9x_flash_bank_t -> struct str9x_flash_bank
Zachary T Welch [Fri, 13 Nov 2009 15:39:12 +0000 (07:39 -0800)]
str9x_flash_bank_t -> struct str9x_flash_bank

Remove misleading typedef and redundant suffix from struct str9x_flash_bank.

14 years agostr7x_mem_layout_t -> struct str7x_mem_layout
Zachary T Welch [Fri, 13 Nov 2009 15:39:09 +0000 (07:39 -0800)]
str7x_mem_layout_t -> struct str7x_mem_layout

Remove misleading typedef and redundant suffix from struct str7x_mem_layout.

14 years agostr7x_flash_bank_t -> struct str7x_flash_bank
Zachary T Welch [Fri, 13 Nov 2009 15:39:06 +0000 (07:39 -0800)]
str7x_flash_bank_t -> struct str7x_flash_bank

Remove misleading typedef and redundant suffix from struct str7x_flash_bank.

14 years agostm32x_mem_layout_t -> struct stm32x_mem_layout
Zachary T Welch [Fri, 13 Nov 2009 15:39:03 +0000 (07:39 -0800)]
stm32x_mem_layout_t -> struct stm32x_mem_layout

Remove misleading typedef and redundant suffix from struct stm32x_mem_layout.

14 years agostm32x_flash_bank_t -> struct stm32x_flash_bank
Zachary T Welch [Fri, 13 Nov 2009 15:39:01 +0000 (07:39 -0800)]
stm32x_flash_bank_t -> struct stm32x_flash_bank

Remove misleading typedef and redundant suffix from struct stm32x_flash_bank.

14 years agostm32x_options_t -> struct stm32x_options
Zachary T Welch [Fri, 13 Nov 2009 15:38:58 +0000 (07:38 -0800)]
stm32x_options_t -> struct stm32x_options

Remove misleading typedef and redundant suffix from struct stm32x_options.

14 years agostellaris_flash_bank_t -> struct stellaris_flash_bank
Zachary T Welch [Fri, 13 Nov 2009 15:38:55 +0000 (07:38 -0800)]
stellaris_flash_bank_t -> struct stellaris_flash_bank

Remove misleading typedef and redundant suffix from struct stellaris_flash_bank.

14 years agos3c24xx_nand_controller_t -> struct s3c24xx_nand_controller
Zachary T Welch [Fri, 13 Nov 2009 15:38:52 +0000 (07:38 -0800)]
s3c24xx_nand_controller_t -> struct s3c24xx_nand_controller

Remove misleading typedef and redundant suffix from struct s3c24xx_nand_controller.

14 years agopic32mx_flash_bank_t -> struct pic32mx_flash_bank
Zachary T Welch [Fri, 13 Nov 2009 15:38:50 +0000 (07:38 -0800)]
pic32mx_flash_bank_t -> struct pic32mx_flash_bank

Remove misleading typedef and redundant suffix from struct pic32mx_flash_bank.

14 years agoorion_nand_controller_t -> struct orion_nand_controller
Zachary T Welch [Fri, 13 Nov 2009 15:38:47 +0000 (07:38 -0800)]
orion_nand_controller_t -> struct orion_nand_controller

Remove misleading typedef and redundant suffix from struct orion_nand_controller.

14 years agoocl_priv_t -> struct ocl_priv
Zachary T Welch [Fri, 13 Nov 2009 15:38:45 +0000 (07:38 -0800)]
ocl_priv_t -> struct ocl_priv

Remove misleading typedef and redundant suffix from struct ocl_priv.

14 years agonand_info_t -> struct nand_info
Zachary T Welch [Fri, 13 Nov 2009 15:38:42 +0000 (07:38 -0800)]
nand_info_t -> struct nand_info

Remove misleading typedef and redundant suffix from struct nand_info.

14 years agonand_manufacturer_t -> struct nand_manufacturer
Zachary T Welch [Fri, 13 Nov 2009 15:38:39 +0000 (07:38 -0800)]
nand_manufacturer_t -> struct nand_manufacturer

Remove misleading typedef and redundant suffix from struct nand_manufacturer.

14 years agonand_ecclayout_t -> struct nand_ecclayout
Zachary T Welch [Fri, 13 Nov 2009 15:38:35 +0000 (07:38 -0800)]
nand_ecclayout_t -> struct nand_ecclayout

Remove misleading typedef and redundant suffix from struct nand_ecclayout.

14 years agonand_flash_controller_t -> struct nand_flash_controller
Zachary T Welch [Fri, 13 Nov 2009 15:38:30 +0000 (07:38 -0800)]
nand_flash_controller_t -> struct nand_flash_controller

Remove misleading typedef and redundant suffix from struct nand_flash_controller.

14 years agomx3_nf_controller_t -> struct mx3_nf_controller
Zachary T Welch [Fri, 13 Nov 2009 15:38:27 +0000 (07:38 -0800)]
mx3_nf_controller_t -> struct mx3_nf_controller

Remove misleading typedef and redundant suffix from struct mx3_nf_controller.

14 years agomflash_bank_t -> struct mflash_bank
Zachary T Welch [Fri, 13 Nov 2009 15:38:24 +0000 (07:38 -0800)]
mflash_bank_t -> struct mflash_bank

Remove misleading typedef and redundant suffix from struct mflash_bank.

14 years agomg_drv_info_t -> struct mg_drv_info
Zachary T Welch [Fri, 13 Nov 2009 15:38:21 +0000 (07:38 -0800)]
mg_drv_info_t -> struct mg_drv_info

Remove misleading typedef and redundant suffix from struct mg_drv_info.

14 years agomflash_gpio_drv_t -> struct mflash_gpio_drv
Zachary T Welch [Fri, 13 Nov 2009 15:38:17 +0000 (07:38 -0800)]
mflash_gpio_drv_t -> struct mflash_gpio_drv

Remove misleading typedef and redundant suffix from struct mflash_gpio_drv.

14 years agomflash_gpio_num_t -> struct mflash_gpio_num
Zachary T Welch [Fri, 13 Nov 2009 15:38:14 +0000 (07:38 -0800)]
mflash_gpio_num_t -> struct mflash_gpio_num

Remove misleading typedef and redundant suffix from struct mflash_gpio_num.

14 years agolpc3180_nand_controller_t -> struct lpc3180_nand_controller
Zachary T Welch [Fri, 13 Nov 2009 15:38:11 +0000 (07:38 -0800)]
lpc3180_nand_controller_t -> struct lpc3180_nand_controller

Remove misleading typedef and redundant suffix from struct lpc3180_nand_controller.

14 years agolpc2900_flash_bank_t -> struct lpc2900_flash_bank
Zachary T Welch [Fri, 13 Nov 2009 15:38:08 +0000 (07:38 -0800)]
lpc2900_flash_bank_t -> struct lpc2900_flash_bank

Remove misleading typedef and redundant suffix from struct lpc2900_flash_bank.

14 years agolpc288x_flash_bank_t -> struct lpc288x_flash_bank
Zachary T Welch [Fri, 13 Nov 2009 15:38:05 +0000 (07:38 -0800)]
lpc288x_flash_bank_t -> struct lpc288x_flash_bank

Remove misleading typedef and redundant suffix from struct lpc288x_flash_bank.

14 years agolpc2000_flash_bank_t -> struct lpc2000_flash_bank
Zachary T Welch [Fri, 13 Nov 2009 15:38:03 +0000 (07:38 -0800)]
lpc2000_flash_bank_t -> struct lpc2000_flash_bank

Remove misleading typedef and redundant suffix from struct lpc2000_flash_bank.

14 years agoflash_driver_t -> struct flash_driver
Zachary T Welch [Fri, 13 Nov 2009 15:38:01 +0000 (07:38 -0800)]
flash_driver_t -> struct flash_driver

Remove misleading typedef and redundant suffix from struct flash_driver.

14 years agoflash_sector_t -> struct flash_sector
Zachary T Welch [Fri, 13 Nov 2009 15:37:54 +0000 (07:37 -0800)]
flash_sector_t -> struct flash_sector

Remove misleading typedef and redundant suffix from struct flash_sector.

14 years agofaux_flash_bank_t -> struct faux_flash_bank
Zachary T Welch [Fri, 13 Nov 2009 15:37:48 +0000 (07:37 -0800)]
faux_flash_bank_t -> struct faux_flash_bank

Remove misleading typedef and redundant suffix from struct faux_flash_bank.

14 years agoecosflash_flash_bank_t -> struct ecosflash_flash_bank
Zachary T Welch [Fri, 13 Nov 2009 15:37:45 +0000 (07:37 -0800)]
ecosflash_flash_bank_t -> struct ecosflash_flash_bank

Remove misleading typedef and redundant suffix from struct ecosflash_flash_bank.

14 years agocfi_fixup_t -> struct cfi_fixup
Zachary T Welch [Fri, 13 Nov 2009 15:37:43 +0000 (07:37 -0800)]
cfi_fixup_t -> struct cfi_fixup

Remove misleading typedef and redundant suffix from struct cfi_fixup.

14 years agocfi_unlock_addresses_t -> struct cfi_unlock_addresses
Zachary T Welch [Fri, 13 Nov 2009 15:37:40 +0000 (07:37 -0800)]
cfi_unlock_addresses_t -> struct cfi_unlock_addresses

Remove misleading typedef and redundant suffix from struct cfi_unlock_addresses.

14 years agocfi_spansion_pri_ext_t -> struct cfi_spansion_pri_ext
Zachary T Welch [Fri, 13 Nov 2009 15:32:35 +0000 (07:32 -0800)]
cfi_spansion_pri_ext_t -> struct cfi_spansion_pri_ext

Remove misleading typedef and redundant suffix from struct cfi_spansion_pri_ext.

14 years agocfi_atmel_pri_ext_t -> struct cfi_atmel_pri_ext
Zachary T Welch [Fri, 13 Nov 2009 15:32:27 +0000 (07:32 -0800)]
cfi_atmel_pri_ext_t -> struct cfi_atmel_pri_ext

Remove misleading typedef and redundant suffix from struct cfi_atmel_pri_ext.

14 years agocfi_intel_pri_ext_t -> struct cfi_intel_pri_ext
Zachary T Welch [Fri, 13 Nov 2009 15:32:19 +0000 (07:32 -0800)]
cfi_intel_pri_ext_t -> struct cfi_intel_pri_ext

Remove misleading typedef and redundant suffix from struct cfi_intel_pri_ext.

14 years agocfi_flash_bank_t -> struct cfi_flash_bank
Zachary T Welch [Fri, 13 Nov 2009 15:31:42 +0000 (07:31 -0800)]
cfi_flash_bank_t -> struct cfi_flash_bank

Remove misleading typedef and redundant suffix from struct cfi_flash_bank.

14 years agoavrf_flash_bank_t -> struct avrf_flash_bank
Zachary T Welch [Fri, 13 Nov 2009 15:31:10 +0000 (07:31 -0800)]
avrf_flash_bank_t -> struct avrf_flash_bank

Remove misleading typedef and redundant suffix from struct avrf_flash_bank.

14 years agoavrf_type_t -> struct avrf_type
Zachary T Welch [Fri, 13 Nov 2009 15:30:58 +0000 (07:30 -0800)]
avrf_type_t -> struct avrf_type

Remove misleading typedef and redundant suffix from struct avrf_type.

14 years agoat91sam7_flash_bank_t -> struct at91sam7_flash_bank
Zachary T Welch [Fri, 13 Nov 2009 15:30:41 +0000 (07:30 -0800)]
at91sam7_flash_bank_t -> struct at91sam7_flash_bank

Remove misleading typedef and redundant suffix from struct at91sam7_flash_bank.

14 years agojtag_command_t -> struct jtag_command
Zachary T Welch [Fri, 13 Nov 2009 14:15:31 +0000 (06:15 -0800)]
jtag_command_t -> struct jtag_command

Remove useless typedef from struct jtag_command.

14 years agojtag_command_container_t -> union jtag_command_container
Zachary T Welch [Fri, 13 Nov 2009 14:03:59 +0000 (06:03 -0800)]
jtag_command_container_t -> union jtag_command_container

Remove misleading typedef from union jtag_container.

14 years agosleep_command_t -> struct sleep_command
Zachary T Welch [Fri, 13 Nov 2009 14:01:19 +0000 (06:01 -0800)]
sleep_command_t -> struct sleep_command

Remove misleading typedef from struct sleep_command.

14 years agoend_state_command_t -> struct end_state_command
Zachary T Welch [Fri, 13 Nov 2009 13:59:48 +0000 (05:59 -0800)]
end_state_command_t -> struct end_state_command

Remove misleading typedef from struct end_state_command.

14 years agoreset_command_t -> struct reset_command
Zachary T Welch [Fri, 13 Nov 2009 13:57:47 +0000 (05:57 -0800)]
reset_command_t -> struct reset_command

Remove misleading typedef from struct reset_command.

14 years agostableclocks_command_t -> struct stableclocks_command
Zachary T Welch [Fri, 13 Nov 2009 13:56:26 +0000 (05:56 -0800)]
stableclocks_command_t -> struct stableclocks_command

Remove misleading typedef from struct stableclocks_command.

14 years agoruntest_command_t -> struct runtest_command
Zachary T Welch [Fri, 13 Nov 2009 13:55:29 +0000 (05:55 -0800)]
runtest_command_t -> struct runtest_command

Remove misleading typedef from struct runtest_command.

14 years agopathmove_command_t -> struct pathmove_command
Zachary T Welch [Fri, 13 Nov 2009 13:54:16 +0000 (05:54 -0800)]
pathmove_command_t -> struct pathmove_command

Remove misleading typedef from struct pathmove_command.

14 years agostatemove_command_t -> struct statemove_command
Zachary T Welch [Fri, 13 Nov 2009 13:52:51 +0000 (05:52 -0800)]
statemove_command_t -> struct statemove_command

Remove misleading typedef from struct statemove_command.

14 years agocmd_queue_page_t -> struct cmd_queue_page
Zachary T Welch [Fri, 13 Nov 2009 13:51:03 +0000 (05:51 -0800)]
cmd_queue_page_t -> struct cmd_queue_page

Remove misleading typedef from struct cmd_queue_page.

14 years agoscan_command_t -> struct scan_command
Zachary T Welch [Fri, 13 Nov 2009 13:30:28 +0000 (05:30 -0800)]
scan_command_t -> struct scan_command

Remove misleading typedef on struct scan_command.

14 years agomore vsllink typedef cleanup
Zachary T Welch [Fri, 13 Nov 2009 13:26:43 +0000 (05:26 -0800)]
more vsllink typedef cleanup

Remove useless typedef for struct insert_insignification_operation.

14 years agovsllink_jtag_t -> struct vsllink
Zachary T Welch [Fri, 13 Nov 2009 13:24:56 +0000 (05:24 -0800)]
vsllink_jtag_t -> struct vsllink

Remove misleading typedef and redundant suffix.

14 years agopresto_t -> struct presto
Zachary T Welch [Fri, 13 Nov 2009 13:23:12 +0000 (05:23 -0800)]
presto_t -> struct presto

Remove useless typedef.

14 years agoft2232_device_t -> struct ft2232_device
Zachary T Welch [Fri, 13 Nov 2009 13:17:18 +0000 (05:17 -0800)]
ft2232_device_t -> struct ft2232_device

Remove misleading typedef from ft2232_device; it was barely used.

14 years agojlink_jtag_t -> struct jlink
Zachary T Welch [Fri, 13 Nov 2009 13:14:36 +0000 (05:14 -0800)]
jlink_jtag_t -> struct jlink

Remove misleading typedef and redundant suffix.

14 years agocable_t -> struct cable
Zachary T Welch [Fri, 13 Nov 2009 12:57:03 +0000 (04:57 -0800)]
cable_t -> struct cable

Remove useless typedef and redundant suffix from parport struct cable.

14 years agopending_scan_result_t -> struct pending_scan_result
Zachary T Welch [Fri, 13 Nov 2009 12:50:26 +0000 (04:50 -0800)]
pending_scan_result_t -> struct pending_scan_result

Remove misleading typedef from struct struct pending_scan_result.
Future patches need to remove these duplicated types and code.

14 years agoarmjtagew_jtag_t -> struct armjtagew
Zachary T Welch [Fri, 13 Nov 2009 12:33:32 +0000 (04:33 -0800)]
armjtagew_jtag_t -> struct armjtagew

Remove useless typedef and redundant suffix from struct armjtatew_jtag.

14 years agouse struct jtag_tap_event_action
Zachary T Welch [Fri, 13 Nov 2009 12:28:41 +0000 (04:28 -0800)]
use struct jtag_tap_event_action

Remove useless typedef and redundant suffix from jtag_tap_event_action.

14 years agojtag_event_callback_t -> struct jtag_event_callback
Zachary T Welch [Fri, 13 Nov 2009 12:23:43 +0000 (04:23 -0800)]
jtag_event_callback_t -> struct jtag_event_callback

Remove useless typedef and redundant suffix from jtag_event_callback.
Add documentation for the structure.

14 years agojtag_interface_t -> struct jtag_interface
Zachary T Welch [Fri, 13 Nov 2009 12:14:50 +0000 (04:14 -0800)]
jtag_interface_t -> struct jtag_interface

Remove useless typedef and redundant suffix from struct jtag_interface.

14 years agobitbang_interface_t -> struct bitbang_interface
Zachary T Welch [Fri, 13 Nov 2009 12:10:56 +0000 (04:10 -0800)]
bitbang_interface_t -> struct bitbang_interface

Removes another useless typedef and suffix.

14 years agobitq_interface_t -> struct biq_interface
Zachary T Welch [Fri, 13 Nov 2009 12:08:19 +0000 (04:08 -0800)]
bitq_interface_t -> struct biq_interface

Remove useless typedef and redundant suffix.

14 years agoencapsulate bitq_state structure
Zachary T Welch [Fri, 13 Nov 2009 12:00:59 +0000 (04:00 -0800)]
encapsulate bitq_state structure

Move the bitq_state structure from the header to source file, as it
is used internally.

Also removes its silly typedef.

14 years agoscan_field_t -> struct scan_field
Zachary T Welch [Fri, 13 Nov 2009 11:28:03 +0000 (03:28 -0800)]
scan_field_t -> struct scan_field

Remove useless structure typedef.

14 years agojtag_tap_t -> struct jtag_tap
Zachary T Welch [Fri, 13 Nov 2009 11:19:35 +0000 (03:19 -0800)]
jtag_tap_t -> struct jtag_tap

Search and destroy the jtag_tap_t typedef.  This also cleans up a
layering violation, removing the declaration from types.h.

14 years agofileio_t -> struct fileio
Zachary T Welch [Fri, 13 Nov 2009 11:08:29 +0000 (03:08 -0800)]
fileio_t -> struct fileio

Remove useless structure typedef.

14 years agolog_callback_t -> struct log_callback
Zachary T Welch [Fri, 13 Nov 2009 11:00:51 +0000 (03:00 -0800)]
log_callback_t -> struct log_callback

Removes useless and confusing typedef for log callback structure.
Types with _t should be suitable for passing by-value as arguments.

14 years agoremove accidental artifact
Zachary T Welch [Fri, 13 Nov 2009 19:52:53 +0000 (11:52 -0800)]
remove accidental artifact

Somehow I managed to slip a temporary build file into the tree.
Remove it and update the .gitignore file so it doesn't happen again.

14 years agoadd documention for writing built-in commands
Zachary T Welch [Wed, 11 Nov 2009 09:31:34 +0000 (01:31 -0800)]
add documention for writing built-in commands

This documentation update provides an introduction to the command
handling facilities provided by command.[ch].  A primer walks the user
through the elements of a pointedly pedantic module: src/hello.c.

A summary of the API is provided in the OpenOCD Architecture section.

14 years agoadd src/hello.c to augment new command tutorial
Zachary T Welch [Wed, 11 Nov 2009 09:20:49 +0000 (01:20 -0800)]
add src/hello.c to augment new command tutorial

The hello module provides the 'hello' command, printing a greetings
to the command console.  It can grow to serve as pedagogical example
of services that OpenOCD developers should use: a runnable style guide.

14 years agocommand_handler_t: make cmd an indirect parameter
Zachary T Welch [Wed, 11 Nov 2009 07:01:44 +0000 (23:01 -0800)]
command_handler_t: make cmd an indirect parameter

This patch removes 'cmd' from the list of direct parameters, moving
that pointer to args[-1] (by way of the new CMD_NAME macro).

14 years agocommand_handler_t: make args parameter const
Zachary T Welch [Tue, 10 Nov 2009 12:37:17 +0000 (04:37 -0800)]
command_handler_t: make args parameter const

This patch prevents command handlers from modifying the strings passed
in the 'args' array.

14 years agocommand_handler_t: make cmd parameter const
Zachary T Welch [Tue, 10 Nov 2009 08:10:25 +0000 (00:10 -0800)]
command_handler_t: make cmd parameter const

Prevents the command name from being modified in command handlers.
Again, this has cascading effects, but the patches are fairly minimal.

14 years agocommand_handler_t: make argc unsigned
Zachary T Welch [Tue, 10 Nov 2009 08:02:18 +0000 (00:02 -0800)]
command_handler_t: make argc unsigned

The number of command arguments will always be 0 or more, so use
the right type in handlers.  This has a cascading effect up through
the layers, but the new COMMAND_HANDLER macros prevented total chaos.

14 years agoadd CMD_NAME macro for command handlers
Zachary T Welch [Wed, 11 Nov 2009 06:29:36 +0000 (22:29 -0800)]
add CMD_NAME macro for command handlers

By introducing the CMD_NAME macro, this parameter may be integrated
as args[-1] in command.[ch], without touching any other call sites.

14 years agouse CALL_COMMAND_HANDLER instead of direct calls
Zachary T Welch [Wed, 11 Nov 2009 06:23:07 +0000 (22:23 -0800)]
use CALL_COMMAND_HANDLER instead of direct calls

By using CALL_COMMAND_HANDLER, parameters can be reordered, added, or
even removed in inherited signatures, without requiring revisiting
all of the various call sites.

14 years agoadd PLD_DEVICE_COMMAND_HANDLER macro
Zachary T Welch [Tue, 10 Nov 2009 09:21:29 +0000 (01:21 -0800)]
add PLD_DEVICE_COMMAND_HANDLER macro

Update virtex module to use abstracted PLD command handling.

14 years agonand: add NAND_DEVICE_COMMAND_HANDLER macro
Zachary T Welch [Tue, 10 Nov 2009 08:53:40 +0000 (00:53 -0800)]
nand: add NAND_DEVICE_COMMAND_HANDLER macro

Abstracts the extended NAND command handling to allow the function
signature to be controlled by __COMMAND_HANDLER.

14 years agouse FLASH_BANK_COMMAND_HANDLER macro
Zachary T Welch [Tue, 10 Nov 2009 09:41:30 +0000 (01:41 -0800)]
use FLASH_BANK_COMMAND_HANDLER macro

Defines all flash_bank_command handlers using the new macro.