aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-11-13avrf_type_t -> struct avrf_typeZachary T Welch2-5/+5
Remove misleading typedef and redundant suffix from struct avrf_type.
2009-11-13at91sam7_flash_bank_t -> struct at91sam7_flash_bankZachary T Welch2-16/+16
Remove misleading typedef and redundant suffix from struct at91sam7_flash_bank.
2009-11-13jtag_command_t -> struct jtag_commandZachary T Welch12-51/+50
Remove useless typedef from struct jtag_command.
2009-11-13jtag_command_container_t -> union jtag_command_containerZachary T Welch1-5/+4
Remove misleading typedef from union jtag_container.
2009-11-13sleep_command_t -> struct sleep_commandZachary T Welch2-5/+4
Remove misleading typedef from struct sleep_command.
2009-11-13end_state_command_t -> struct end_state_commandZachary T Welch1-4/+3
Remove misleading typedef from struct end_state_command.
2009-11-13reset_command_t -> struct reset_commandZachary T Welch2-5/+4
Remove misleading typedef from struct reset_command.
2009-11-13stableclocks_command_t -> struct stableclocks_commandZachary T Welch2-5/+4
Remove misleading typedef from struct stableclocks_command.
2009-11-13runtest_command_t -> struct runtest_commandZachary T Welch2-5/+4
Remove misleading typedef from struct runtest_command.
2009-11-13pathmove_command_t -> struct pathmove_commandZachary T Welch7-11/+10
Remove misleading typedef from struct pathmove_command.
2009-11-13statemove_command_t -> struct statemove_commandZachary T Welch2-5/+4
Remove misleading typedef from struct statemove_command.
2009-11-13cmd_queue_page_t -> struct cmd_queue_pageZachary T Welch1-9/+8
Remove misleading typedef from struct cmd_queue_page.
2009-11-13scan_command_t -> struct scan_commandZachary T Welch8-43/+42
Remove misleading typedef on struct scan_command.
2009-11-13more vsllink typedef cleanupZachary T Welch1-6/+5
Remove useless typedef for struct insert_insignification_operation.
2009-11-13vsllink_jtag_t -> struct vsllinkZachary T Welch1-39/+38
Remove misleading typedef and redundant suffix.
2009-11-13presto_t -> struct prestoZachary T Welch1-6/+4
Remove useless typedef.
2009-11-13ft2232_device_t -> struct ft2232_deviceZachary T Welch1-6/+5
Remove misleading typedef from ft2232_device; it was barely used.
2009-11-13jlink_jtag_t -> struct jlinkZachary T Welch1-41/+40
Remove misleading typedef and redundant suffix.
2009-11-13cable_t -> struct cableZachary T Welch1-6/+5
Remove useless typedef and redundant suffix from parport struct cable.
2009-11-13pending_scan_result_t -> struct pending_scan_resultZachary T Welch3-20/+17
Remove misleading typedef from struct struct pending_scan_result. Future patches need to remove these duplicated types and code.
2009-11-13armjtagew_jtag_t -> struct armjtagewZachary T Welch1-33/+32
Remove useless typedef and redundant suffix from struct armjtatew_jtag.
2009-11-13use struct jtag_tap_event_actionZachary T Welch2-7/+5
Remove useless typedef and redundant suffix from jtag_tap_event_action.
2009-11-13jtag_event_callback_t -> struct jtag_event_callbackZachary T Welch1-13/+19
Remove useless typedef and redundant suffix from jtag_event_callback. Add documentation for the structure.
2009-11-13jtag_interface_t -> struct jtag_interfaceZachary T Welch20-39/+38
Remove useless typedef and redundant suffix from struct jtag_interface.
2009-11-13bitbang_interface_t -> struct bitbang_interfaceZachary T Welch6-10/+9
Removes another useless typedef and suffix.
2009-11-13bitq_interface_t -> struct biq_interfaceZachary T Welch3-8/+6
Remove useless typedef and redundant suffix.
2009-11-13encapsulate bitq_state structureZachary T Welch2-10/+8
Move the bitq_state structure from the header to source file, as it is used internally. Also removes its silly typedef.
2009-11-13scan_field_t -> struct scan_fieldZachary T Welch31-152/+151
Remove useless structure typedef.
2009-11-13jtag_tap_t -> struct jtag_tapZachary T Welch50-158/+151
Search and destroy the jtag_tap_t typedef. This also cleans up a layering violation, removing the declaration from types.h.
2009-11-13fileio_t -> struct fileioZachary T Welch11-41/+40
Remove useless structure typedef.
2009-11-13log_callback_t -> struct log_callbackZachary T Welch2-9/+8
Removes useless and confusing typedef for log callback structure. Types with _t should be suitable for passing by-value as arguments.
2009-11-13remove accidental artifactZachary T Welch2-0/+1
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.
2009-11-13add documention for writing built-in commandsZachary T Welch3-2/+163
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.
2009-11-13add src/hello.c to augment new command tutorialZachary T Welch3-1/+64
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.
2009-11-13command_handler_t: make cmd an indirect parameterZachary T Welch2-10/+12
This patch removes 'cmd' from the list of direct parameters, moving that pointer to args[-1] (by way of the new CMD_NAME macro).
2009-11-13command_handler_t: make args parameter constZachary T Welch2-5/+7
This patch prevents command handlers from modifying the strings passed in the 'args' array.
2009-11-13command_handler_t: make cmd parameter constZachary T Welch1-1/+1
Prevents the command name from being modified in command handlers. Again, this has cascading effects, but the patches are fairly minimal.
2009-11-13command_handler_t: make argc unsignedZachary T Welch7-18/+12
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.
2009-11-13add CMD_NAME macro for command handlersZachary T Welch10-18/+24
By introducing the CMD_NAME macro, this parameter may be integrated as args[-1] in command.[ch], without touching any other call sites.
2009-11-13use CALL_COMMAND_HANDLER instead of direct callsZachary T Welch10-16/+20
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.
2009-11-13add PLD_DEVICE_COMMAND_HANDLER macroZachary T Welch2-4/+9
Update virtex module to use abstracted PLD command handling.
2009-11-13nand: add NAND_DEVICE_COMMAND_HANDLER macroZachary T Welch9-23/+14
Abstracts the extended NAND command handling to allow the function signature to be controlled by __COMMAND_HANDLER.
2009-11-13use FLASH_BANK_COMMAND_HANDLER macroZachary T Welch18-26/+18
Defines all flash_bank_command handlers using the new macro.
2009-11-13add FLASH_BANK_COMMAND_HANDLER macroZachary T Welch1-2/+6
The FLASH_BANK_COMMAND_HANDLER provides an extended command handler using the __COMMAND_HANDLER macro, whereby changing that macro is sufficient to update flash handlers with the new signature. It also enforces uniform style and scope when implementing this handler.
2009-11-13s3c24xx: use COMMAND_HANDLER with command helperZachary T Welch7-30/+21
Add S3C24XX_DEVICE_COMMAND macros to abstract common command handler conventions.
2009-11-13arm_adi,armv7[am]: use COMMAND_HELPER for helpersZachary T Welch4-23/+18
Rewrites the dap_* command helpers to use the COMMAND_HELPER paradigm. Uses CALL_COMMAND_HELPER to hide inherited calling conventions.
2009-11-13use COMMAND_HELPER for command helper functionsZachary T Welch6-19/+21
Define the numerous helpers that inherit command handler parameters using the COMMAND_HELPER macro.
2009-11-13use COMMAND_HANDLER macro to define all commandsZachary T Welch55-327/+224
2009-11-13add command_handler_t typeZachary T Welch2-7/+6
This patch adds new typedefs for command handler callback functions. Users of this type signature were updated to use these new types. It uses the new __COMMAND_HANDLER macro to prevent duplication.
2009-11-13add COMMAND_HANDLER and COMMAND_HELPER macrosZachary T Welch1-0/+42
The COMMAND_HANDLER and COMMAND_HELPER macros allow commands to be defined in a manner that decouples them from the exact order and type of their parameters. Once converted, incremental changes to the command handler type can be addressed in incremental patches that do not need to touch the entire tree. These macros' implementation, __COMMAND_HANDLER, is used to define the new command_handler_t type, and additional patches will use it to derive new macros to define extended command types (e.g. flash, nand, pld). The CALL_COMMAND_HANDLER provides a means of calling helpers or nested handlers from withing a command handler. This patch uses C99 varadic macro expansion. Please report compilers that cannot handle this code.