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.

Dependencies:   mbed

Committer:
pehrhovey
Date:
Wed Mar 17 03:17:38 2010 +0000
Revision:
0:439354122597

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
pehrhovey 0:439354122597 1 #ifndef LWIP_UTILS_H
pehrhovey 0:439354122597 2 #define LWIP_UTILS_H
pehrhovey 0:439354122597 3
pehrhovey 0:439354122597 4 #include "ipv4/lwip/ip_addr.h"
pehrhovey 0:439354122597 5
pehrhovey 0:439354122597 6 #ifdef __cplusplus
pehrhovey 0:439354122597 7 extern "C" {
pehrhovey 0:439354122597 8 #endif
pehrhovey 0:439354122597 9
pehrhovey 0:439354122597 10 /**
pehrhovey 0:439354122597 11 * This method converts 4 given IPv4 tuples to struct ip_addr classes.
pehrhovey 0:439354122597 12 * The Byte are seperated by ,
pehrhovey 0:439354122597 13 * Does only work with seperated 4 Byte tuple.
pehrhovey 0:439354122597 14 */
pehrhovey 0:439354122597 15 inline struct ip_addr IPv4(u8_t ip0, u8_t ip1, u8_t ip2, u8_t ip3) {
pehrhovey 0:439354122597 16 struct ip_addr addr;
pehrhovey 0:439354122597 17 IP4_ADDR(&addr, ip0, ip1, ip2, ip3);
pehrhovey 0:439354122597 18 return addr;
pehrhovey 0:439354122597 19 }
pehrhovey 0:439354122597 20
pehrhovey 0:439354122597 21 unsigned int base64enc_len(const char *str);
pehrhovey 0:439354122597 22
pehrhovey 0:439354122597 23 void base64enc(const char *input, unsigned int length, char *output);
pehrhovey 0:439354122597 24
pehrhovey 0:439354122597 25 #ifdef __cplusplus
pehrhovey 0:439354122597 26 }
pehrhovey 0:439354122597 27 #endif
pehrhovey 0:439354122597 28
pehrhovey 0:439354122597 29 #endif /* LWIP_UTILS_H */