Give water to plants if dry amd pla meanwhile music the music vou can define with note length bind and breake also select several instruments for the sound

Dependencies:   mbed

Committer:
helmut
Date:
Wed Sep 19 14:16:56 2012 +0000
Revision:
0:5150b09127e3
plays mostly music that you can do with notes length breakes and bind; Some already defined; Tool is to start a pump for water to give plant is too dry.; Meanwhie plays music the most part of all

Who changed what in which revision?

UserRevisionLine numberNew contents of line
helmut 0:5150b09127e3 1 /*
helmut 0:5150b09127e3 2 * Author: Adam Dunkels <adam@sics.se>
helmut 0:5150b09127e3 3 *
helmut 0:5150b09127e3 4 */
helmut 0:5150b09127e3 5 #ifndef __LWIP_ARCH_CC_H__
helmut 0:5150b09127e3 6 #define __LWIP_ARCH_CC_H__
helmut 0:5150b09127e3 7
helmut 0:5150b09127e3 8 #define LITTLE_ENDIAN 1234
helmut 0:5150b09127e3 9
helmut 0:5150b09127e3 10 #define BYTE_ORDER LITTLE_ENDIAN
helmut 0:5150b09127e3 11
helmut 0:5150b09127e3 12 typedef unsigned char u8_t;
helmut 0:5150b09127e3 13 typedef signed char s8_t;
helmut 0:5150b09127e3 14 typedef unsigned short u16_t;
helmut 0:5150b09127e3 15 typedef signed short s16_t;
helmut 0:5150b09127e3 16 typedef unsigned int u32_t;
helmut 0:5150b09127e3 17 typedef signed int s32_t;
helmut 0:5150b09127e3 18 typedef unsigned int mem_ptr_t;
helmut 0:5150b09127e3 19
helmut 0:5150b09127e3 20 #ifndef NULL
helmut 0:5150b09127e3 21 #define NULL 0
helmut 0:5150b09127e3 22 #endif
helmut 0:5150b09127e3 23
helmut 0:5150b09127e3 24 #ifndef TRUE
helmut 0:5150b09127e3 25 #define TRUE 1
helmut 0:5150b09127e3 26 #endif
helmut 0:5150b09127e3 27
helmut 0:5150b09127e3 28 #ifndef FALSE
helmut 0:5150b09127e3 29 #define FALSE 0
helmut 0:5150b09127e3 30 #endif
helmut 0:5150b09127e3 31
helmut 0:5150b09127e3 32 #include <stdlib.h>
helmut 0:5150b09127e3 33 #define LWIP_RAND rand
helmut 0:5150b09127e3 34
helmut 0:5150b09127e3 35 #define LWIP_PLATFORM_DIAG(x) DBG x
helmut 0:5150b09127e3 36 #define LWIP_PLATFORM_ASSERT(x) DBG(x)
helmut 0:5150b09127e3 37
helmut 0:5150b09127e3 38 #define LWIP_PROVIDE_ERRNO
helmut 0:5150b09127e3 39
helmut 0:5150b09127e3 40 #define U16_F "hu"
helmut 0:5150b09127e3 41 #define S16_F "hd"
helmut 0:5150b09127e3 42 #define X16_F "hx"
helmut 0:5150b09127e3 43 #define U32_F "lu"
helmut 0:5150b09127e3 44 #define S32_F "ld"
helmut 0:5150b09127e3 45 #define X32_F "lx"
helmut 0:5150b09127e3 46
helmut 0:5150b09127e3 47 #if 0
helmut 0:5150b09127e3 48 /*Create compilation problems, and according to http://www.mail-archive.com/lwip-users@nongnu.org/msg06786.html,
helmut 0:5150b09127e3 49 lwIP uses packed structures, so packing the field is not really a good idea ;) */
helmut 0:5150b09127e3 50 #define PACK_STRUCT_FIELD(x) __packed x
helmut 0:5150b09127e3 51 #else
helmut 0:5150b09127e3 52 #define PACK_STRUCT_FIELD(x) x
helmut 0:5150b09127e3 53 #endif
helmut 0:5150b09127e3 54
helmut 0:5150b09127e3 55 #define PACK_STRUCT_STRUCT
helmut 0:5150b09127e3 56 #define PACK_STRUCT_BEGIN __packed
helmut 0:5150b09127e3 57 #define PACK_STRUCT_END
helmut 0:5150b09127e3 58
helmut 0:5150b09127e3 59 #define LWIP_CHKSUM_ALGORITHM 3
helmut 0:5150b09127e3 60
helmut 0:5150b09127e3 61
helmut 0:5150b09127e3 62 #endif /* __LWIP_ARCH_CC_H__ */