move nor drivers to src/flash/nor Moves NOR flash drivers to 'src/flash/nor/'. Adds 'src/flash/nor/Makefile.am'. Builds 'libocdflashnor.la'.
use ARRAY_SIZE macro Search and destroy lingering cases where the ARRAY_SIZE macro should be used to convey more intrinsic meaning in the OpenOCD code.
remove flash_driver->register_callbacks Replace flash_driver callback with pointer to command_registration. Eliminates all related routines and allows drivers to omit commands.
tms470: use register_commands()
use COMMAND_REGISTER macro Replaces direct calls to register_command() with a macro, to allow its parameters to be changed and callers updated in phases.
command_handler: change 'cmd_ctx' to CMD_CTX Convert all command handler 'cmd_ctx' parameter usage with CMD_CTX.
command_handler: change 'args' to CMD_ARGV This patch converts all instances of 'args' in COMMAND_HANDLER routines to use CMD_ARGV macro.
command_handler: change to 'argc' to CMD_ARGC This patch converts all instances of 'argc' in COMMAND_HANDLER routines to use CMD_ARGC.
command_t -> struct command Remove misleading typedef and redundant suffix from struct command.
command_context_t -> struct command_context Remove misleading typedef and redundant suffix from struct command_context.
flash_bank_t -> struct flash_bank Remove misleading typedef and redundant suffix from struct flash_bank.
target_t -> struct target Remove misleading typedef and redundant suffix from struct target.
tms470_flash_bank_t -> struct tms470_flash_bank Remove misleading typedef and redundant suffix from struct tms470_flash_bank.
flash_driver_t -> struct flash_driver Remove misleading typedef and redundant suffix from struct flash_driver.
flash_sector_t -> struct flash_sector Remove misleading typedef and redundant suffix from struct flash_sector.
use FLASH_BANK_COMMAND_HANDLER macro Defines all flash_bank_command handlers using the new macro.
use COMMAND_HANDLER macro to define all commands
flash/<assorted>.c: remove useless declarations Remove useless forward declarations. Moves command registrations to end of files. Moves flash structure definitions to end of files. Signed-off-by: Zachary T Welch <zw@superlucidity.net>
Remove whitespace at end of lines, step 1. - Replace '\s*$' with ''. git-svn-id: svn://svn.berlios.de/openocd/trunk@2379 b42882b7-edfa-0310-969c-e2dbd0fdcd60
- Fixes '[|]' whitespace - Replace ')\([|]\)(' with ') \1 ('. - Replace ')\([|]\)\(\w\)' with ') \1 \2'. - Replace '\(\w\)\([|]\)(' with '\1 \2 ('. - Replace '\(\w\)\([|]\)\(\w\)' with '\1 \2 \3'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2374 b42882b7-edfa-0310-969c-e2dbd0fdcd60