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/helper/util.h | |
parent | 8e9b12dc8a5964cfc43996f94488759258c0f1dc (diff) | |
download | riscv-openocd-630fc86ee339aa400f58fe80cbc5a1926eb3ef39.zip riscv-openocd-630fc86ee339aa400f58fe80cbc5a1926eb3ef39.tar.gz riscv-openocd-630fc86ee339aa400f58fe80cbc5a1926eb3ef39.tar.bz2 |
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/helper/util.h')
-rw-r--r-- | src/helper/util.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/helper/util.h b/src/helper/util.h new file mode 100644 index 0000000..267477a --- /dev/null +++ b/src/helper/util.h @@ -0,0 +1,27 @@ +/*************************************************************************** + * Copyright (C) 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 * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +#ifndef HELPER_UTILS_H +#define HELPER_UTILS_H + +struct command_context; + +int util_init(struct command_context *cmd_ctx); + +#endif // HELPER_UTILS_H |