diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-02-26 02:41:56 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-02-26 02:41:56 +0100 |
commit | 26e0687ecc5e3a68c0a89e3d31d238224dc214b5 (patch) | |
tree | da6a88c45273ae332a9f61eb6a42ceb3e0d915ce | |
parent | 89e91c86f4e57f539de9ea76533ee87541c35654 (diff) |
net driver func rename
-rw-r--r-- | code/fe310/eos/net.c | 2 | ||||
-rw-r--r-- | code/fe310/eos/net.h | 1 |
2 files changed, 2 insertions, 1 deletions
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); |