prepare wifi
This commit is contained in:
@ -96,6 +96,10 @@ User/Src/wizHelper.c \
|
|||||||
User/Src/networkAbstractionLayer_lan.c
|
User/Src/networkAbstractionLayer_lan.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(NETWORK), WiFi)
|
||||||
|
C_SOURCES += \
|
||||||
|
User/Src/networkAbstractionLayer_wifi.c
|
||||||
|
endif
|
||||||
|
|
||||||
# ASM sources
|
# ASM sources
|
||||||
ASM_SOURCES = \
|
ASM_SOURCES = \
|
||||||
@ -250,4 +254,4 @@ clean:
|
|||||||
#######################################
|
#######################################
|
||||||
-include $(wildcard $(BUILD_DIR)/*.d)
|
-include $(wildcard $(BUILD_DIR)/*.d)
|
||||||
|
|
||||||
# *** EOF ***
|
# *** EOF ***
|
||||||
|
@ -17,6 +17,10 @@ typedef struct __attribute__((__packed__)) s_configBlock {
|
|||||||
struct {
|
struct {
|
||||||
uint8_t macAddress[6];
|
uint8_t macAddress[6];
|
||||||
} lan;
|
} 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;
|
} networkspecific;
|
||||||
uint8_t filler[22];
|
uint8_t filler[22];
|
||||||
} t_configBlock;
|
} 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() {
|
||||||
|
|
||||||
|
}
|
Reference in New Issue
Block a user