diff options
Diffstat (limited to 'code')
-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); |