From 8c730aaee22a505cf66666be3ff28734ac885418 Mon Sep 17 00:00:00 2001 From: David Brownell Date: Mon, 11 Jan 2010 00:14:01 -0800 Subject: Doxygen file comments Add file comments to a few files. Make the GDB server use more conventional (pointer-free) hex digit conversion. Signed-off-by: David Brownell --- src/flash/nor/core.c | 7 +++++++ src/flash/nor/core.h | 5 +++++ src/flash/nor/tcl.c | 5 +++++ 3 files changed, 17 insertions(+) (limited to 'src/flash/nor') diff --git a/src/flash/nor/core.c b/src/flash/nor/core.c index 7e783d42..9083ed15 100644 --- a/src/flash/nor/core.c +++ b/src/flash/nor/core.c @@ -29,6 +29,13 @@ #include +/** + * @file + * Upper level of NOR flash framework. + * The lower level interfaces are to drivers. These upper level ones + * primarily support access from Tcl scripts or from GDB. + */ + struct flash_bank *flash_banks; int flash_driver_erase(struct flash_bank *bank, int first, int last) diff --git a/src/flash/nor/core.h b/src/flash/nor/core.h index c1e26cd2..36e163df 100644 --- a/src/flash/nor/core.h +++ b/src/flash/nor/core.h @@ -24,6 +24,11 @@ #include +/** + * @file + * Upper level NOR flash interfaces. + */ + struct image; #define FLASH_MAX_ERROR_STR (128) diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c index 65523fbe..b7e80df2 100644 --- a/src/flash/nor/tcl.c +++ b/src/flash/nor/tcl.c @@ -26,6 +26,11 @@ #include #include +/** + * @file + * Implements Tcl commands used to access NOR flash facilities. + */ + COMMAND_HELPER(flash_command_get_bank, unsigned name_index, struct flash_bank **bank) { -- cgit v1.2.3