diff options
Diffstat (limited to 'fw/fe310/eos/dev/net.c')
-rw-r--r-- | fw/fe310/eos/dev/net.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fw/fe310/eos/dev/net.c b/fw/fe310/eos/dev/net.c index 11250bc..d340e29 100644 --- a/fw/fe310/eos/dev/net.c +++ b/fw/fe310/eos/dev/net.c @@ -40,13 +40,13 @@ static EOSMsgQ net_send_q; static EOSMsgItem net_sndq_array[EOS_NET_SIZE_BUFQ]; static volatile uint8_t net_state_flags = 0; -static unsigned char net_state_type = 0; +static volatile unsigned char net_state_type = 0; static uint32_t net_state_len_tx = 0; -static uint32_t net_state_len_rx = 0; -unsigned char *net_state_buf = NULL; +static volatile uint32_t net_state_len_rx = 0; +static unsigned char *net_state_buf = NULL; -static uint8_t net_state_next_cnt = 0; -static unsigned char *net_state_next_buf = NULL; +static volatile uint8_t net_state_next_cnt = 0; +static unsigned char * volatile net_state_next_buf = NULL; static eos_evt_handler_t net_handler[EOS_NET_MAX_MTYPE]; static uint16_t net_wrapper_acq[EOS_EVT_MAX_EVT]; |