diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-08-01 09:35:58 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-08-01 09:35:58 +0200 |
commit | 630fc86ee339aa400f58fe80cbc5a1926eb3ef39 (patch) | |
tree | 442a5b264ed4d97659e20603cfb9198c40826a1b /src/openocd.c | |
parent | 8e9b12dc8a5964cfc43996f94488759258c0f1dc (diff) |
util: ms command to calculate length of operations
This can be used to calculate approximate RTCK frequency
for instance.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/openocd.c')
-rw-r--r-- | src/openocd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/openocd.c b/src/openocd.c index 04a63074..69ed7601 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -33,6 +33,7 @@ #include <jtag/jtag.h> #include <jtag/transport.h> #include <helper/ioutil.h> +#include <helper/util.h> #include <helper/configuration.h> #include <flash/nor/core.h> #include <flash/nand/core.h> @@ -268,6 +269,9 @@ int openocd_main(int argc, char *argv[]) cmd_ctx = setup_command_handler(NULL); + if (util_init(cmd_ctx) != ERROR_OK) + return EXIT_FAILURE; + if (ioutil_init(cmd_ctx) != ERROR_OK) return EXIT_FAILURE; |