diff --git a/sw/airborne/arch/sim/mcu_periph/udp_arch.c b/sw/airborne/arch/sim/mcu_periph/udp_arch.c new file mode 120000 index 0000000000..d07a05162a --- /dev/null +++ b/sw/airborne/arch/sim/mcu_periph/udp_arch.c @@ -0,0 +1 @@ +../../linux/mcu_periph/udp_arch.c \ No newline at end of file diff --git a/sw/airborne/arch/sim/mcu_periph/udp_arch.h b/sw/airborne/arch/sim/mcu_periph/udp_arch.h new file mode 120000 index 0000000000..ca34b4df7c --- /dev/null +++ b/sw/airborne/arch/sim/mcu_periph/udp_arch.h @@ -0,0 +1 @@ +../../linux/mcu_periph/udp_arch.h \ No newline at end of file diff --git a/sw/airborne/mcu_periph/udp.h b/sw/airborne/mcu_periph/udp.h index 5495ab621a..8758aa8739 100644 --- a/sw/airborne/mcu_periph/udp.h +++ b/sw/airborne/mcu_periph/udp.h @@ -62,6 +62,18 @@ extern void udp_receive(struct udp_periph* p); #if USE_UDP0 extern struct udp_periph udp0; +#ifndef UDP0_HOST +#define UDP0_HOST "127.0.0.1" +#endif + +#ifndef UDP0_PORT_OUT 4242 +#define UDP0_PORT_OUT +#endif + +#ifndef UDP0_PORT_IN +#define UDP0_PORT_IN 4243 +#endif + #ifndef UDP0_BROADCAST #define UDP0_BROADCAST FALSE #endif @@ -77,6 +89,18 @@ extern struct udp_periph udp0; #if USE_UDP1 extern struct udp_periph udp1; +#ifndef UDP1_HOST +#define UDP1_HOST "127.0.0.1" +#endif + +#ifndef UDP1_PORT_OUT 4242 +#define UDP1_PORT_OUT +#endif + +#ifndef UDP1_PORT_IN +#define UDP1_PORT_IN 4243 +#endif + #ifndef UDP1_BROADCAST #define UDP1_BROADCAST FALSE #endif @@ -92,6 +116,18 @@ extern struct udp_periph udp1; #if USE_UDP2 extern struct udp_periph udp2; +#ifndef UDP2_HOST +#define UDP2_HOST "127.0.0.1" +#endif + +#ifndef UDP2_PORT_OUT 4242 +#define UDP2_PORT_OUT +#endif + +#ifndef UDP2_PORT_IN +#define UDP2_PORT_IN 4243 +#endif + #ifndef UDP2_BROADCAST #define UDP2_BROADCAST FALSE #endif