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/ecosboard.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/ecosboard.c')
-rw-r--r-- | src/ecosboard.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ecosboard.c b/src/ecosboard.c index 1e3152e7..f6e040fa 100644 --- a/src/ecosboard.c +++ b/src/ecosboard.c @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2007-2009 by Øyvind Harboe * + * Copyright (C) 2007-2010 by Øyvind Harboe * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -24,6 +24,7 @@ #include <helper/types.h> #include <jtag/jtag.h> #include <helper/ioutil.h> +#include <helper/util.h> #include <helper/configuration.h> #include <server/server.h> @@ -1089,6 +1090,9 @@ int main(int argc, char *argv[]) command_set_output_handler(cmd_ctx, configuration_output_handler, NULL); command_context_mode(cmd_ctx, COMMAND_CONFIG); + if (util_init(cmd_ctx) != ERROR_OK) + return EXIT_FAILURE; + if (ioutil_init(cmd_ctx) != ERROR_OK) return EXIT_FAILURE; |