mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-21 19:51:50 +00:00
21 lines
658 B
C
21 lines
658 B
C
#pragma once
|
|
|
|
// Build options: https://mongoose.ws/docs/getting-started/build-options/
|
|
#define MG_ARCH MG_ARCH_PICOSDK
|
|
#define MG_TLS MG_TLS_BUILTIN
|
|
#define MG_OTA MG_OTA_PICOSDK
|
|
#define MG_IO_SIZE 2048
|
|
|
|
#define MG_ENABLE_TCPIP 1
|
|
#define MG_ENABLE_DRIVER_W5500 1
|
|
|
|
// Construct MAC address from the unique board ID
|
|
#define MG_SET_MAC_ADDRESS(mac) \
|
|
do { \
|
|
pico_unique_board_id_t id_; \
|
|
pico_get_unique_board_id(&id_); \
|
|
mac[0] = 2, mac[1] = id_.id[3]; \
|
|
mac[2] = id_.id[4], mac[3] = id_.id[5]; \
|
|
mac[4] = id_.id[6], mac[5] = id_.id[7]; \
|
|
} while (0)
|