From 26e0687ecc5e3a68c0a89e3d31d238224dc214b5 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 26 Feb 2020 02:41:56 +0100 Subject: net driver func rename --- code/fe310/eos/net.c | 2 +- code/fe310/eos/net.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'code/fe310/eos') diff --git a/code/fe310/eos/net.c b/code/fe310/eos/net.c index afe7997..47f49b6 100644 --- a/code/fe310/eos/net.c +++ b/code/fe310/eos/net.c @@ -302,7 +302,7 @@ void eos_net_set_handler(unsigned char mtype, eos_evt_handler_t handler) { if (mtype && (mtype <= EOS_NET_MAX_MTYPE)) net_handler[mtype - 1] = handler; } -void eos_net_set_acquire_for_evt(unsigned char type, char acq) { +void eos_net_acquire_for_evt(unsigned char type, char acq) { unsigned char idx = ((type & EOS_EVT_MASK) >> 4) - 1; uint16_t flag = type & ~EOS_EVT_MASK ? (uint16_t)1 << ((type & ~EOS_EVT_MASK) - 1) : 0xFFFF; diff --git a/code/fe310/eos/net.h b/code/fe310/eos/net.h index ba394b8..5cb8da6 100644 --- a/code/fe310/eos/net.h +++ b/code/fe310/eos/net.h @@ -18,6 +18,7 @@ void eos_net_init(void); void eos_net_start(void); void eos_net_stop(void); void eos_net_set_handler(unsigned char type, eos_evt_handler_t handler); +void eos_net_acquire_for_evt(unsigned char type, char acq); void eos_net_acquire(void); void eos_net_release(void); -- cgit v1.2.3