From cf7c06297d04bade9cd04c056f9ed510e64dd7bd Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 5 Aug 2020 03:39:22 +0200 Subject: code -> fw --- code/fe310/eos/wifi.c | 58 --------------------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 code/fe310/eos/wifi.c (limited to 'code/fe310/eos/wifi.c') diff --git a/code/fe310/eos/wifi.c b/code/fe310/eos/wifi.c deleted file mode 100644 index d58c0eb..0000000 --- a/code/fe310/eos/wifi.c +++ /dev/null @@ -1,58 +0,0 @@ -#include -#include -#include - -#include "eos.h" -#include "event.h" -#include "net.h" - -#include "wifi.h" - -static eos_evt_handler_t evt_handler[EOS_WIFI_MAX_MTYPE]; - -static void wifi_handle_evt(unsigned char type, unsigned char *buffer, uint16_t len) { - if ((buffer == NULL) || (len < 1)) { - eos_net_bad_handler(type, buffer, len); - return; - } - - unsigned char mtype = buffer[0]; - if (mtype < EOS_WIFI_MAX_MTYPE) { - evt_handler[mtype](type, buffer, len); - } else { - eos_net_bad_handler(type, buffer, len); - } -} - -void eos_wifi_init(void) { - int i; - - for (i=0; i