![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Control of mbed using OSC. Based on code from the Make Controller. Right now you can turn the onboard LEDs on/off and toggle 8 digital out pins. More I/O will be done in the future.
Diff: lwip/arch/iputil.h
- Revision:
- 0:439354122597
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lwip/arch/iputil.h Wed Mar 17 03:17:38 2010 +0000 @@ -0,0 +1,29 @@ +#ifndef LWIP_UTILS_H +#define LWIP_UTILS_H + +#include "ipv4/lwip/ip_addr.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * This method converts 4 given IPv4 tuples to struct ip_addr classes. + * The Byte are seperated by , + * Does only work with seperated 4 Byte tuple. + */ +inline struct ip_addr IPv4(u8_t ip0, u8_t ip1, u8_t ip2, u8_t ip3) { + struct ip_addr addr; + IP4_ADDR(&addr, ip0, ip1, ip2, ip3); + return addr; +} + +unsigned int base64enc_len(const char *str); + +void base64enc(const char *input, unsigned int length, char *output); + +#ifdef __cplusplus +} +#endif + +#endif /* LWIP_UTILS_H */