Porting mros2 as an Mbed library.

Dependents:   mbed-os-example-mros2 example-mbed-mros2-sub-pose example-mbed-mros2-pub-twist example-mbed-mros2-mturtle-teleop

Committer:
smoritaemb
Date:
Sat Mar 19 09:23:37 2022 +0900
Revision:
7:c80f65422d99
Parent:
0:580aba13d1a1
Merge test_assortment_of_msgs branch.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
smoritaemb 0:580aba13d1a1 1 /**
smoritaemb 0:580aba13d1a1 2 * Additional settings for the win32 port.
smoritaemb 0:580aba13d1a1 3 * Copy this to lwipcfg_msvc.h and make the config changes you need.
smoritaemb 0:580aba13d1a1 4 */
smoritaemb 0:580aba13d1a1 5
smoritaemb 0:580aba13d1a1 6 /* configuration for this port */
smoritaemb 0:580aba13d1a1 7 #define PPP_USERNAME "Admin"
smoritaemb 0:580aba13d1a1 8 #define PPP_PASSWORD "pass"
smoritaemb 0:580aba13d1a1 9
smoritaemb 0:580aba13d1a1 10 /** Define this to the index of the windows network adapter to use */
smoritaemb 0:580aba13d1a1 11 #define PACKET_LIB_ADAPTER_NR 5
smoritaemb 0:580aba13d1a1 12 /** Define this to the GUID of the windows network adapter to use
smoritaemb 0:580aba13d1a1 13 * or NOT define this if you want PACKET_LIB_ADAPTER_NR to be used */
smoritaemb 0:580aba13d1a1 14 /*#define PACKET_LIB_ADAPTER_GUID "00000000-0000-0000-0000-000000000000"*/
smoritaemb 0:580aba13d1a1 15 /*#define PACKET_LIB_GET_ADAPTER_NETADDRESS(addr) IP4_ADDR((addr), 192,168,1,0)*/
smoritaemb 0:580aba13d1a1 16 /*#define PACKET_LIB_QUIET*/
smoritaemb 0:580aba13d1a1 17
smoritaemb 0:580aba13d1a1 18 /* If these 2 are not defined, the corresponding config setting is used */
smoritaemb 0:580aba13d1a1 19 /* #define USE_DHCP 0 */
smoritaemb 0:580aba13d1a1 20 /* #define USE_AUTOIP 0 */
smoritaemb 0:580aba13d1a1 21
smoritaemb 0:580aba13d1a1 22 /* #define USE_PCAPIF 1 */
smoritaemb 0:580aba13d1a1 23 #define LWIP_PORT_INIT_IPADDR(addr) IP4_ADDR((addr), 192,168,0,66)
smoritaemb 0:580aba13d1a1 24 #define LWIP_PORT_INIT_GW(addr) IP4_ADDR((addr), 192,168,0,1)
smoritaemb 0:580aba13d1a1 25 #define LWIP_PORT_INIT_NETMASK(addr) IP4_ADDR((addr), 255,255,255,0)
smoritaemb 0:580aba13d1a1 26
smoritaemb 0:580aba13d1a1 27 /* remember to change this MAC address to suit your needs!
smoritaemb 0:580aba13d1a1 28 the last octet will be increased by netif->num for each netif */
smoritaemb 0:580aba13d1a1 29 #define LWIP_MAC_ADDR_BASE {0x00,0x80,0xE1,0x00,0x00,0x00}
smoritaemb 0:580aba13d1a1 30
smoritaemb 0:580aba13d1a1 31 /* #define USE_SLIPIF 0 */
smoritaemb 0:580aba13d1a1 32 /* #define SIO_USE_COMPORT 0 */
smoritaemb 0:580aba13d1a1 33 #ifdef USE_SLIPIF
smoritaemb 0:580aba13d1a1 34 #if USE_SLIPIF
smoritaemb 0:580aba13d1a1 35 #define LWIP_PORT_INIT_SLIP1_IPADDR(addr) IP4_ADDR((addr), 192, 168, 2, 2)
smoritaemb 0:580aba13d1a1 36 #define LWIP_PORT_INIT_SLIP1_GW(addr) IP4_ADDR((addr), 192, 168, 2, 1)
smoritaemb 0:580aba13d1a1 37 #define LWIP_PORT_INIT_SLIP1_NETMASK(addr) IP4_ADDR((addr), 255, 255, 255, 0)
smoritaemb 0:580aba13d1a1 38 #if USE_SLIPIF > 1
smoritaemb 0:580aba13d1a1 39 #define LWIP_PORT_INIT_SLIP2_IPADDR(addr) IP4_ADDR((addr), 192, 168, 2, 1)
smoritaemb 0:580aba13d1a1 40 #define LWIP_PORT_INIT_SLIP2_GW(addr) IP4_ADDR((addr), 0, 0, 0, 0)
smoritaemb 0:580aba13d1a1 41 #define LWIP_PORT_INIT_SLIP2_NETMASK(addr) IP4_ADDR((addr), 255, 255, 255, 0)*/
smoritaemb 0:580aba13d1a1 42 #endif /* USE_SLIPIF > 1 */
smoritaemb 0:580aba13d1a1 43 #endif /* USE_SLIPIF */
smoritaemb 0:580aba13d1a1 44 #endif /* USE_SLIPIF */
smoritaemb 0:580aba13d1a1 45
smoritaemb 0:580aba13d1a1 46 /* configuration for applications */
smoritaemb 0:580aba13d1a1 47
smoritaemb 0:580aba13d1a1 48 #define LWIP_CHARGEN_APP 0
smoritaemb 0:580aba13d1a1 49 #define LWIP_DNS_APP 0
smoritaemb 0:580aba13d1a1 50 #define LWIP_HTTPD_APP 0
smoritaemb 0:580aba13d1a1 51 /* Set this to 1 to use the netconn http server,
smoritaemb 0:580aba13d1a1 52 * otherwise the raw api server will be used. */
smoritaemb 0:580aba13d1a1 53 /*#define LWIP_HTTPD_APP_NETCONN */
smoritaemb 0:580aba13d1a1 54 #define LWIP_NETBIOS_APP 0
smoritaemb 0:580aba13d1a1 55 #define LWIP_NETIO_APP 0
smoritaemb 0:580aba13d1a1 56 #define LWIP_MDNS_APP 0
smoritaemb 0:580aba13d1a1 57 #define LWIP_MQTT_APP 0
smoritaemb 0:580aba13d1a1 58 #define LWIP_PING_APP 0
smoritaemb 0:580aba13d1a1 59 #define LWIP_RTP_APP 0
smoritaemb 0:580aba13d1a1 60 #define LWIP_SHELL_APP 0
smoritaemb 0:580aba13d1a1 61 #define LWIP_SNMP_APP 0
smoritaemb 0:580aba13d1a1 62 #define LWIP_SNTP_APP 0
smoritaemb 0:580aba13d1a1 63 #define LWIP_SOCKET_EXAMPLES_APP 0
smoritaemb 0:580aba13d1a1 64 #define LWIP_TCPECHO_APP 0
smoritaemb 0:580aba13d1a1 65 /* Set this to 1 to use the netconn tcpecho server,
smoritaemb 0:580aba13d1a1 66 * otherwise the raw api server will be used. */
smoritaemb 0:580aba13d1a1 67 /*#define LWIP_TCPECHO_APP_NETCONN */
smoritaemb 0:580aba13d1a1 68 #define LWIP_TFTP_APP 0
smoritaemb 0:580aba13d1a1 69 #define LWIP_UDPECHO_APP 0
smoritaemb 0:580aba13d1a1 70 #define LWIP_LWIPERF_APP 0
smoritaemb 0:580aba13d1a1 71
smoritaemb 0:580aba13d1a1 72 /*#define USE_DHCP 1*/
smoritaemb 0:580aba13d1a1 73 /*#define USE_AUTOIP 1*/
smoritaemb 0:580aba13d1a1 74
smoritaemb 0:580aba13d1a1 75 /* define this to your custom application-init function */
smoritaemb 0:580aba13d1a1 76 /* #define LWIP_APP_INIT my_app_init() */