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 /*
pehrhovey 0:439354122597 2 * Author: Adam Dunkels <adam@sics.se>
pehrhovey 0:439354122597 3 *
pehrhovey 0:439354122597 4 */
pehrhovey 0:439354122597 5 #ifndef __LWIP_ARCH_CC_H__
pehrhovey 0:439354122597 6 #define __LWIP_ARCH_CC_H__
pehrhovey 0:439354122597 7
pehrhovey 0:439354122597 8 #define LITTLE_ENDIAN 1234
pehrhovey 0:439354122597 9
pehrhovey 0:439354122597 10 #define BYTE_ORDER LITTLE_ENDIAN
pehrhovey 0:439354122597 11
pehrhovey 0:439354122597 12 typedef unsigned char u8_t;
pehrhovey 0:439354122597 13 typedef signed char s8_t;
pehrhovey 0:439354122597 14 typedef unsigned short u16_t;
pehrhovey 0:439354122597 15 typedef signed short s16_t;
pehrhovey 0:439354122597 16 typedef unsigned int u32_t;
pehrhovey 0:439354122597 17 typedef signed int s32_t;
pehrhovey 0:439354122597 18 typedef unsigned int mem_ptr_t;
pehrhovey 0:439354122597 19
pehrhovey 0:439354122597 20 #ifndef NULL
pehrhovey 0:439354122597 21 #define NULL 0
pehrhovey 0:439354122597 22 #endif
pehrhovey 0:439354122597 23
pehrhovey 0:439354122597 24 #ifndef TRUE
pehrhovey 0:439354122597 25 #define TRUE 1
pehrhovey 0:439354122597 26 #endif
pehrhovey 0:439354122597 27
pehrhovey 0:439354122597 28 #ifndef FALSE
pehrhovey 0:439354122597 29 #define FALSE 0
pehrhovey 0:439354122597 30 #endif
pehrhovey 0:439354122597 31
pehrhovey 0:439354122597 32 #define LWIP_PLATFORM_DIAG(x) printf x
pehrhovey 0:439354122597 33 #define LWIP_PLATFORM_ASSERT(x)
pehrhovey 0:439354122597 34
pehrhovey 0:439354122597 35 #define LWIP_PROVIDE_ERRNO
pehrhovey 0:439354122597 36
pehrhovey 0:439354122597 37 #define U16_F "hu"
pehrhovey 0:439354122597 38 #define S16_F "hd"
pehrhovey 0:439354122597 39 #define X16_F "hx"
pehrhovey 0:439354122597 40 #define U32_F "lu"
pehrhovey 0:439354122597 41 #define S32_F "ld"
pehrhovey 0:439354122597 42 #define X32_F "lx"
pehrhovey 0:439354122597 43
pehrhovey 0:439354122597 44 #define PACK_STRUCT_FIELD(x) __packed x
pehrhovey 0:439354122597 45 #define PACK_STRUCT_STRUCT
pehrhovey 0:439354122597 46 #define PACK_STRUCT_BEGIN __packed
pehrhovey 0:439354122597 47 #define PACK_STRUCT_END
pehrhovey 0:439354122597 48
pehrhovey 0:439354122597 49
pehrhovey 0:439354122597 50 #endif /* __LWIP_ARCH_CC_H__ */