openocd/src/flash
Zachary T Welch 2689f58f2a Overhaul time support API
This patch changes the duration_* API in several ways.  First, it
updates the API to use better names.  Second, string formatting has
been removed from the API (with its associated malloc).  Finally, a
new function added to convert the time into seconds, which can be
used (or formatted) by the caller.  This eliminates hidden calls to
malloc that require associated calls to free().

This patch also removes the useless extern keyword from prototypes,
and it eliminates the duration_t typedef (use 'struct duration').
These API also allows proper error checking, as it is possible for
gettimeofday to fail in certain circumstances.

The consumers have all been chased to use this new API as well, as
there were relatively few cases doing this type of measurement.
In most cases, the code performs additional checks for errors, but
the calling code looks much cleaner in every case.
2009-11-09 01:21:50 -08:00
..
ocl/at91sam7x Remove annoying end-of-line whitespace from most src/* 2009-09-21 18:40:55 +00:00
aduc702x.c Fix SEGFAULTs and broken error handling for flash programming w/working area 2009-07-08 18:29:03 +00:00
arm_nandio.c David Brownell <david-b@pacbell.net> 2009-09-09 06:28:49 +00:00
arm_nandio.h David Brownell 2009-09-03 08:23:39 +00:00
at91sam3.c Improve at91sam3.c command argument parsing. 2009-11-05 18:03:20 -08:00
at91sam3.h Fix end-of-line style properties on newly added files. 2009-06-24 07:43:18 +00:00
at91sam7.c Improve at91sam7.c command argument parsing. 2009-11-05 18:19:13 -08:00
at91sam7.h Transform 'u32' to 'uint32_t' in src/flash. 2009-06-18 07:10:25 +00:00
avrf.c Improve avrf.c command argument parsing. 2009-11-05 18:19:18 -08:00
avrf.h Transform 'u16' to 'uint16_t' 2009-06-18 07:07:59 +00:00
cfi.c Improve cfi.c command argument parsing. 2009-11-05 18:19:18 -08:00
cfi.h Transform 'u32' to 'uint32_t' in src/flash. 2009-06-18 07:10:25 +00:00
davinci_nand.c Improve davinci_nand.c command argument parsing. 2009-11-05 18:19:18 -08:00
ecos.c Added the faux flash driver and target. Used for testing. 2009-10-20 12:23:56 +02:00
faux.c Added the faux flash driver and target. Used for testing. 2009-10-20 12:23:56 +02:00
flash.c Overhaul time support API 2009-11-09 01:21:50 -08:00
flash.h Add Flash/NAND bank command argument helpers. 2009-11-05 18:03:20 -08:00
lpc288x.c Improve lpc288x.c command argument parsing. 2009-11-05 18:19:18 -08:00
lpc288x.h Transform 'u32' to 'uint32_t' in src/flash. 2009-06-18 07:10:25 +00:00
lpc2000.c Improve lpc2000.c command argument parsing. 2009-11-05 18:19:18 -08:00
lpc2000.h Audrius Urmanavičius [didele.deze@gmail.com]: 2009-08-13 13:54:53 +00:00
lpc2900.c Improve lpc2900.c command argument parsing. 2009-11-05 18:19:18 -08:00
lpc2900.h - add missing svn props from previous commit 2009-09-22 14:50:46 +00:00
lpc3180_nand_controller.c Improve lpc3180_nand_controller.c parsing. 2009-11-05 18:19:18 -08:00
lpc3180_nand_controller.h Transform 'u32' to 'uint32_t' in src/flash. 2009-06-18 07:10:25 +00:00
Makefile.am Added the faux flash driver and target. Used for testing. 2009-10-20 12:23:56 +02:00
mflash.c Overhaul time support API 2009-11-09 01:21:50 -08:00
mflash.h - Fixes '+' whitespace 2009-06-23 22:44:17 +00:00
mx3_nand.c printf format warning fixes 2009-10-10 11:32:39 -07:00
mx3_nand.h Alexei Babich <a.babich@rez.ru> cleanup 2009-09-11 06:01:28 +00:00
nand_ecc_kw.c fix email address 2009-09-14 08:03:57 +00:00
nand_ecc.c - Replace 'for(' with 'for ('. 2009-06-23 22:37:21 +00:00
nand.c Overhaul time support API 2009-11-09 01:21:50 -08:00
nand.h Add Flash/NAND bank command argument helpers. 2009-11-05 18:03:20 -08:00
non_cfi.c Rolf Meeser <rolfm_9dq@yahoo.de> 2009-09-09 16:11:33 +00:00
non_cfi.h Michael Schwingen <rincewind@discworld.dascon.de> a small CFI cleanup 2009-08-25 08:21:11 +00:00
ocl.c - Fixes '[<>]' whitespace 2009-06-23 22:45:47 +00:00
ocl.h - added svn props for newly added files 2008-04-24 11:09:28 +00:00
orion_nand.c Improve orion_nand.c command argument parsing. 2009-11-05 18:19:18 -08:00
pic32mx.c Improve pic32mx.c command argument parsing. 2009-11-05 18:19:18 -08:00
pic32mx.h - Fixes '+' whitespace 2009-06-23 22:44:17 +00:00
s3c24xx_nand.c Transform 'u16' to 'uint16_t' 2009-06-18 07:07:59 +00:00
s3c24xx_nand.h Transform 'u32' to 'uint32_t' in src/flash. 2009-06-18 07:10:25 +00:00
s3c24xx_regs_nand.h - Fixes '<<' whitespace 2009-06-23 22:41:13 +00:00
s3c2410_nand.c Transform 'u16' to 'uint16_t' 2009-06-18 07:07:59 +00:00
s3c2412_nand.c Whitespace cleanup from David Brownell <david-b@pacbell.net> 2009-05-18 04:37:33 +00:00
s3c2440_nand.c Transform 'u32' to 'uint32_t' in src/flash. 2009-06-18 07:10:25 +00:00
s3c2443_nand.c Whitespace cleanup from David Brownell <david-b@pacbell.net> 2009-05-18 04:37:33 +00:00
stellaris.c Improve stellaris.c erase argument parsing. 2009-11-05 18:19:19 -08:00
stellaris.h David Brownell <david-b@pacbell.net> Clock updates/fixes for the Stellaris flash driver: 2009-08-26 06:26:29 +00:00
stm32x.c Improve stm32x.c command argument parsing. 2009-11-05 18:19:19 -08:00
stm32x.h - Fixes '<<' whitespace 2009-06-23 22:41:13 +00:00
str7x.c Improve str7x config command argument parsing. 2009-11-05 18:19:19 -08:00
str7x.h Transform 'u32' to 'uint32_t' in src/flash. 2009-06-18 07:10:25 +00:00
str9x.c Improve str9x config command argument parsing. 2009-11-05 18:19:19 -08:00
str9x.h Transform 'u32' to 'uint32_t' in src/flash. 2009-06-18 07:10:25 +00:00
str9xpec.c Improve str9xpec command argument parsing. 2009-11-05 18:19:19 -08:00
str9xpec.h Transform 'u32' to 'uint32_t' in src/flash. 2009-06-18 07:10:25 +00:00
tms470.c Remove whitespace at end of lines, step 1. 2009-06-23 22:49:23 +00:00
tms470.h Transform 'u32' to 'uint32_t' in src/flash. 2009-06-18 07:10:25 +00:00