Files
mkrtos-real/mkrtos_user/server/net/inc/netconf.h

41 lines
748 B
C
Raw Normal View History

2024-01-07 23:32:30 +08:00
/**
* @file netconf.h
* @author ATShining (1358745329@qq.com)
2024-01-22 23:17:08 +08:00
* @brief
2024-01-07 23:32:30 +08:00
* @version 0.1
* @date 2024-01-06
2024-01-22 23:17:08 +08:00
*
2024-01-07 23:32:30 +08:00
* @copyright Copyright (c) 2024
2024-01-22 23:17:08 +08:00
*
2024-01-07 23:32:30 +08:00
*/
#pragma once
2024-01-22 23:17:08 +08:00
#define DEST_IP_ADDR0 192
#define DEST_IP_ADDR1 168
#define DEST_IP_ADDR2 2
#define DEST_IP_ADDR3 20
#define DEST_PORT 77
/*Static IP ADDRESS: IP_ADDR0.IP_ADDR1.IP_ADDR2.IP_ADDR3 */
#define IP_ADDR0 192
#define IP_ADDR1 168
#define IP_ADDR2 3
#define IP_ADDR3 10
/*NETMASK*/
#define NETMASK_ADDR0 255
#define NETMASK_ADDR1 255
#define NETMASK_ADDR2 255
#define NETMASK_ADDR3 0
/*Gateway Address*/
#define GW_ADDR0 192
#define GW_ADDR1 168
#define GW_ADDR2 3
#define GW_ADDR3 1
2024-01-07 23:32:30 +08:00
void net_init(void);
void LwIP_Pkt_Handle(void);
void lwip_pkt_handle_raw(uint8_t *data, int len);