diff options
author | Uros Majstorovic <majstor@majstor.org> | 2018-03-14 18:31:22 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2018-03-14 18:31:22 +0100 |
commit | 4b655364d426f8429b063d9746c754beca6f7d1f (patch) | |
tree | 73afa86876733d81cf0fc331643cb0a6cd036e5e /code/fe310/eos/net.h | |
parent | 7e209672e005b911166f27b691acfc6c988e93fb (diff) |
fixed concerning new asm trap entry
Diffstat (limited to 'code/fe310/eos/net.h')
-rw-r--r-- | code/fe310/eos/net.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/code/fe310/eos/net.h b/code/fe310/eos/net.h index 0091c3c..106a204 100644 --- a/code/fe310/eos/net.h +++ b/code/fe310/eos/net.h @@ -1,4 +1,5 @@ #include <stdint.h> +#include "event.h" #define EOS_NET_CMD_FLAG_ONEW 0x10 @@ -7,11 +8,12 @@ #define EOS_NET_CMD_SCAN 3 #define EOS_NET_CMD_PKT 4 -#define EOS_NET_MAX_CMD 8 +#define EOS_NET_MAX_CMD 4 void eos_net_init(void); void eos_net_start(uint32_t sckdiv); void eos_net_stop(void); +void eos_net_set_handler(unsigned char cmd, eos_evt_fptr_t handler, uint8_t flags); int eos_net_reserve(unsigned char *buffer); int eos_net_acquire(unsigned char reserved); int eos_net_release(unsigned char reserved); |