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>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user