prepare wifi
This commit is contained in:
parent
b3832a3d1b
commit
9db7360623
@ -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 ***
|
||||
|
@ -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;
|
||||
|
19
cube/User/Src/networkAbstractionLayer_wifi.c
Normal file
19
cube/User/Src/networkAbstractionLayer_wifi.c
Normal 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() {
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user