Skip to content

Clion IDE-STM32+W5500 (DHCP code encapsulation)

Clion IDE-STM32+W5500 (DHCP code encapsulation)

mark

Published October 04, 2023

Original author: 詩不诉卿 · ChinaOriginal source (new tab)

Clion IDE-STM32+W5500 (DHCP code encapsulation)

Project description

Clion IDE-STM32+W5500(DHCP code encapsulation) Header file: #ifndef STM32_VET6_W5500_DHCP_H #define STM32_VET6_W5500_DHCP_H #include "w5500_dhcp_struct.h" #include "socket.h" #define DEVICE_ID "w5500" #define IP_CONFLICT_STR "CHECK_IP_CONFLICT" #define DHCP_FLAGSBROADCAST 0x8000 /* UDP port numbers for DHCP */ #define DHCP_SERVER_PORT 67 /* from server to client */ #define DHCP_CLIENT_PORT 68 /* from client to server */ /* DHCP message OP code */ #define DHCP_BOOTREQUEST 1 #define DHCP_BOOTREPLY 2 /* DHCP message type */ #define DHCP_DISCOVER 1 #define DHCP_OFFER 2 #define DHCP_REQUEST 3…

Keep reading with a free account

Guests can read 15 projects per visit. Log in or create a free account to read the full description, open the documents and join the comments.

Similar projects you might like