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/openrisc | |
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/openrisc')
-rw-r--r-- | src/target/openrisc/jsp_server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/target/openrisc/jsp_server.c b/src/target/openrisc/jsp_server.c index 6cd53f4..6fb764a 100644 --- a/src/target/openrisc/jsp_server.c +++ b/src/target/openrisc/jsp_server.c @@ -101,7 +101,8 @@ static int jsp_new_connection(struct connection *connection) jsp_service->connection = connection; - int retval = target_register_timer_callback(&jsp_poll_read, 1, 1, jsp_service); + int retval = target_register_timer_callback(&jsp_poll_read, 1, + TARGET_TIMER_TYPE_PERIODIC, jsp_service); if (ERROR_OK != retval) return retval; |