prepare wifi

This commit is contained in:
Wolfgang Hottgenroth 2021-02-16 13:00:10 +01:00
parent b3832a3d1b
commit 9db7360623
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F
3 changed files with 28 additions and 1 deletions

View File

@ -96,6 +96,10 @@ User/Src/wizHelper.c \
User/Src/networkAbstractionLayer_lan.c
endif
ifeq ($(NETWORK), WiFi)
C_SOURCES += \
User/Src/networkAbstractionLayer_wifi.c
endif
# ASM sources
ASM_SOURCES = \
@ -250,4 +254,4 @@ clean:
#######################################
-include $(wildcard $(BUILD_DIR)/*.d)
# *** EOF ***
# *** EOF ***

View File

@ -17,6 +17,10 @@ typedef struct __attribute__((__packed__)) s_configBlock {
struct {
uint8_t macAddress[6];
} lan;
struct {
char ssid[48];
char key[65]; // the actual key may have up to 64 chars and has to end with a \0
} wifi;
} networkspecific;
uint8_t filler[22];
} t_configBlock;

View File

@ -0,0 +1,19 @@
#include <networkAbstractionLayer_impl.h>
#include <logger.h>
#include <stdint.h>
uint64_t networkSntpQuery() {
return 0;
}
int8_t networkUdpSend(char *hostname, uint16_t port, uint8_t *buf, uint16_t bufLen) {
return 0;
}
void networkImplInit() {
}