aboutsummaryrefslogtreecommitdiff
path: root/src/flash/avrf.c
AgeCommit message (Collapse)AuthorFilesLines
2009-12-02move nor drivers to src/flash/norZachary T Welch1-483/+0
Moves NOR flash drivers to 'src/flash/nor/'. Adds 'src/flash/nor/Makefile.am'. Builds 'libocdflashnor.la'.
2009-11-25use ARRAY_SIZE macroZachary T Welch1-2/+2
Search and destroy lingering cases where the ARRAY_SIZE macro should be used to convey more intrinsic meaning in the OpenOCD code.
2009-11-24remove flash_driver->register_callbacksZachary T Welch1-6/+1
Replace flash_driver callback with pointer to command_registration. Eliminates all related routines and allows drivers to omit commands.
2009-11-24avrf: use register_commands()Zachary T Welch1-8/+20
2009-11-24use COMMAND_REGISTER macroZachary T Welch1-2/+2
Replaces direct calls to register_command() with a macro, to allow its parameters to be changed and callers updated in phases.
2009-11-19rename flash and nand command helpersZachary T Welch1-1/+1
After adding support for referencing banks by name, renames the COMMAND_HELPERs appropriately: flash_command_get_bank_by_num -> flash_command_get_bank nand_command_get_device_by_num -> flash_command_get_device
2009-11-17command_handler: change 'cmd_ctx' to CMD_CTXZachary T Welch1-3/+3
Convert all command handler 'cmd_ctx' parameter usage with CMD_CTX.
2009-11-17command_handler: change to 'argc' to CMD_ARGCZachary T Welch1-2/+2
This patch converts all instances of 'argc' in COMMAND_HANDLER routines to use CMD_ARGC.
2009-11-16flash_command_get_bank_by_num: make COMMAND_HELPERZachary T Welch1-1/+1
Use COMMAND_HELPER macro to declare flash_command_get_bank_by_num. This is required for COMMAND_PARSE_NUMBER macro.
2009-11-13command_t -> struct commandZachary T Welch1-1/+1
Remove misleading typedef and redundant suffix from struct command.
2009-11-13command_context_t -> struct command_contextZachary T Welch1-1/+1
Remove misleading typedef and redundant suffix from struct command_context.
2009-11-13flash_bank_t -> struct flash_bankZachary T Welch1-9/+9
Remove misleading typedef and redundant suffix from struct flash_bank.
2009-11-13target_t -> struct targetZachary T Welch1-4/+4
Remove misleading typedef and redundant suffix from struct target.
2009-11-13avr_common_t -> struct avr_commonZachary T Welch1-10/+10
Remove misleading typedef and redundant suffix from struct avr_common.
2009-11-13flash_driver_t -> struct flash_driverZachary T Welch1-1/+1
Remove misleading typedef and redundant suffix from struct flash_driver.
2009-11-13flash_sector_t -> struct flash_sectorZachary T Welch1-1/+1
Remove misleading typedef and redundant suffix from struct flash_sector.
2009-11-13avrf_flash_bank_t -> struct avrf_flash_bankZachary T Welch1-4/+4
Remove misleading typedef and redundant suffix from struct avrf_flash_bank.
2009-11-13avrf_type_t -> struct avrf_typeZachary T Welch1-3/+3
Remove misleading typedef and redundant suffix from struct avrf_type.
2009-11-13jtag_tap_t -> struct jtag_tapZachary T Welch1-11/+11
Search and destroy the jtag_tap_t typedef. This also cleans up a layering violation, removing the declaration from types.h.
2009-11-13use FLASH_BANK_COMMAND_HANDLER macroZachary T Welch1-1/+1
Defines all flash_bank_command handlers using the new macro.
2009-11-13use COMMAND_HANDLER macro to define all commandsZachary T Welch1-1/+1
2009-11-09flash/<assorted>.c: remove useless declarationsZachary T Welch1-51/+38
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>
2009-11-05Improve avrf.c command argument parsing.Zachary T Welch1-7/+4
2009-06-23Remove whitespace that occurs before ')'.zwelch1-2/+2
- Replace '[ \t]*[)]' with ')'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2377 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-06-23Remove whitespace that occurs after '('.zwelch1-2/+2
- Replace '([ \t]*' with '('. git-svn-id: svn://svn.berlios.de/openocd/trunk@2376 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-06-23- Replace 'do{' with 'do {'.zwelch1-4/+4
- Replace '}while' with '} while'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2361 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-06-23- Replace 'while(' with 'while ('.zwelch1-3/+3
git-svn-id: svn://svn.berlios.de/openocd/trunk@2358 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-06-21C99 printf() -Werror fixesduane1-11/+11
git-svn-id: svn://svn.berlios.de/openocd/trunk@2337 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-06-18Transform 'u32' to 'uint32_t' in src/flash.zwelch1-13/+13
- Replace '\([^_]\)u32' with '\1uint32_t'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2280 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-06-18Transform 'u16' to 'uint16_t'zwelch1-2/+2
- Replace '\([^_]\)u16' with '\1uint16_t'. - Replace '^u16' with 'uint16_t'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2277 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-06-18Transform 'u8' to 'uint8_t' in src/flashzwelch1-8/+8
- Replace '\([^_]\)u8' with '\1uint8_t'. - Replace '^u8' with 'uint8_t'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2275 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-06-01David Brownell <david-b@pacbell.net>:zwelch1-54/+54
Remove broken whitespace ... mostly at end of line, but also in some cases blocks of inappropriate empty lines. And spell "comamnd" right. :) git-svn-id: svn://svn.berlios.de/openocd/trunk@1972 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-05-11Audit and eliminate redundant #include directives in src/flash sources.zwelch1-8/+0
git-svn-id: svn://svn.berlios.de/openocd/trunk@1712 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-05-03Piotr Esden-Tempski <piotr@esden.net> Mac OS X compile fixesoharboe1-4/+4
git-svn-id: svn://svn.berlios.de/openocd/trunk@1594 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-04-27SimonQian <simonqian@simonqian.com> fix warnings(which stops compilation) ↵oharboe1-500/+500
and some bugs git-svn-id: svn://svn.berlios.de/openocd/trunk@1548 b42882b7-edfa-0310-969c-e2dbd0fdcd60
2009-04-27SimonQian <simonqian@simonqian.com> AVR wipoharboe1-0/+500
git-svn-id: svn://svn.berlios.de/openocd/trunk@1540 b42882b7-edfa-0310-969c-e2dbd0fdcd60