diff options
author | Marc Schink <openocd-dev@marcschink.de> | 2019-02-15 14:36:54 +0100 |
---|---|---|
committer | Tomas Vanek <vanekt@fbl.cz> | 2019-03-01 08:32:03 +0000 |
commit | 21687eb983a4d5e30cd9c4050b9ebce2f3b280c7 (patch) | |
tree | b881d06febec26a3ce995672a5e7bffaa9627560 /src/target/cortex_m.c | |
parent | 17a052d6fe44fc265d48e94bdd3356d6f25ca064 (diff) | |
download | riscv-openocd-21687eb983a4d5e30cd9c4050b9ebce2f3b280c7.zip riscv-openocd-21687eb983a4d5e30cd9c4050b9ebce2f3b280c7.tar.gz riscv-openocd-21687eb983a4d5e30cd9c4050b9ebce2f3b280c7.tar.bz2 |
Use enum for target_register_timer_callback()
Change-Id: I268e8c5d783914aa97cbde301448b2c5bc3cb9e6
Signed-off-by: Marc Schink <openocd-dev@marcschink.de>
Reviewed-on: http://openocd.zylin.com/4921
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'src/target/cortex_m.c')
-rw-r--r-- | src/target/cortex_m.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/target/cortex_m.c b/src/target/cortex_m.c index 62d3760..d751fd8 100644 --- a/src/target/cortex_m.c +++ b/src/target/cortex_m.c @@ -2269,7 +2269,8 @@ static int cortex_m_init_arch_info(struct target *target, armv7m->load_core_reg_u32 = cortex_m_load_core_reg_u32; armv7m->store_core_reg_u32 = cortex_m_store_core_reg_u32; - target_register_timer_callback(cortex_m_handle_target_request, 1, 1, target); + target_register_timer_callback(cortex_m_handle_target_request, 1, + TARGET_TIMER_TYPE_PERIODIC, target); return ERROR_OK; } |