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/ecosboard.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ecosboard.c') 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 #include #include +#include #include #include @@ -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; -- cgit v1.2.3