From 630fc86ee339aa400f58fe80cbc5a1926eb3ef39 Mon Sep 17 00:00:00 2001 From: Øyvind Harboe Date: Sun, 1 Aug 2010 09:35:58 +0200 Subject: util: ms command to calculate length of operations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This can be used to calculate approximate RTCK frequency for instance. Signed-off-by: Øyvind Harboe --- src/openocd.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/openocd.c') 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 #include #include +#include #include #include #include @@ -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; -- cgit v1.2.3