From 4d45c548bfaf27bd2135384b3ffd0c4bdb41521c Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 26 Feb 2020 03:49:26 +0100 Subject: ecp/eos new compatibility changes --- code/ecp/fe310/time.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'code/ecp/fe310/time.c') diff --git a/code/ecp/fe310/time.c b/code/ecp/fe310/time.c index a5c109d..8458a2d 100644 --- a/code/ecp/fe310/time.c +++ b/code/ecp/fe310/time.c @@ -19,7 +19,8 @@ static void timer_handler(unsigned char type) { } int ecp_tm_init(ECPContext *ctx) { - eos_timer_set_handler(EOS_TIMER_ETYPE_ECP, timer_handler, EOS_NET_FLAG_BACQ); + eos_timer_set_handler(EOS_TIMER_ETYPE_ECP, timer_handler); + eos_net_acquire_for_evt(EOS_EVT_TIMER | EOS_TIMER_ETYPE_ECP, 1); return ECP_OK; } -- cgit v1.2.3