UIPEthernet library for Arduino IDE, Eclipse with arduino plugin and MBED/SMeshStudio (AVR,STM32F,ESP8266,Intel ARC32,Nordic nRF51,Teensy boards,Realtek Ameba(RTL8195A,RTL8710)), ENC28j60 network chip. Compatible with Wiznet W5100 Ethernet library API. Compiled and tested on Nucleo-F302R8. Master repository is: https://github.com/UIPEthernet/UIPEthernet/
Diff: UIPUdp.h
- Revision:
- 19:e416943f7119
- Parent:
- 10:cd62b2205c2a
- Child:
- 33:7ba5d53df0f2
--- a/UIPUdp.h Tue Jan 03 11:39:33 2017 +0100 +++ b/UIPUdp.h Wed Jan 04 18:32:00 2017 +0100 @@ -24,7 +24,11 @@ #if defined(ARDUINO) #include <Arduino.h> #include "Print.h" - #include <Udp.h> + #if defined(__STM32F3__) || defined(STM32F3) + #include "mbed/Udp.h" + #else + #include <Udp.h> + #endif #endif #if defined(__MBED__) #include <mbed.h> @@ -48,10 +52,10 @@ bool send; } uip_udp_userdata_t; -#if defined(ARDUINO) +#if defined(ARDUINO) && !defined(STM32F3) class UIPUDP : public UDP { #endif -#if defined(__MBED__) +#if defined(__MBED__) || defined(STM32F3) class UIPUDP : public Print, public UDP { #endif private: