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 * randm.h - Random number generator header file.
helmut 0:5150b09127e3 3 *
helmut 0:5150b09127e3 4 * Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc.
helmut 0:5150b09127e3 5 * Copyright (c) 1998 Global Election Systems Inc.
helmut 0:5150b09127e3 6 *
helmut 0:5150b09127e3 7 * The authors hereby grant permission to use, copy, modify, distribute,
helmut 0:5150b09127e3 8 * and license this software and its documentation for any purpose, provided
helmut 0:5150b09127e3 9 * that existing copyright notices are retained in all copies and that this
helmut 0:5150b09127e3 10 * notice and the following disclaimer are included verbatim in any
helmut 0:5150b09127e3 11 * distributions. No written agreement, license, or royalty fee is required
helmut 0:5150b09127e3 12 * for any of the authorized uses.
helmut 0:5150b09127e3 13 *
helmut 0:5150b09127e3 14 * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR
helmut 0:5150b09127e3 15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
helmut 0:5150b09127e3 16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
helmut 0:5150b09127e3 17 * IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
helmut 0:5150b09127e3 18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
helmut 0:5150b09127e3 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
helmut 0:5150b09127e3 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
helmut 0:5150b09127e3 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
helmut 0:5150b09127e3 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
helmut 0:5150b09127e3 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
helmut 0:5150b09127e3 24 *
helmut 0:5150b09127e3 25 ******************************************************************************
helmut 0:5150b09127e3 26 * REVISION HISTORY
helmut 0:5150b09127e3 27 *
helmut 0:5150b09127e3 28 * 03-01-01 Marc Boucher <marc@mbsi.ca>
helmut 0:5150b09127e3 29 * Ported to lwIP.
helmut 0:5150b09127e3 30 * 98-05-29 Guy Lancaster <glanca@gesn.com>, Global Election Systems Inc.
helmut 0:5150b09127e3 31 * Extracted from avos.
helmut 0:5150b09127e3 32 *****************************************************************************/
helmut 0:5150b09127e3 33
helmut 0:5150b09127e3 34 #ifndef RANDM_H
helmut 0:5150b09127e3 35 #define RANDM_H
helmut 0:5150b09127e3 36
helmut 0:5150b09127e3 37 /***********************
helmut 0:5150b09127e3 38 *** PUBLIC FUNCTIONS ***
helmut 0:5150b09127e3 39 ***********************/
helmut 0:5150b09127e3 40 /*
helmut 0:5150b09127e3 41 * Initialize the random number generator.
helmut 0:5150b09127e3 42 */
helmut 0:5150b09127e3 43 void avRandomInit(void);
helmut 0:5150b09127e3 44
helmut 0:5150b09127e3 45 /*
helmut 0:5150b09127e3 46 * Churn the randomness pool on a random event. Call this early and often
helmut 0:5150b09127e3 47 * on random and semi-random system events to build randomness in time for
helmut 0:5150b09127e3 48 * usage. For randomly timed events, pass a null pointer and a zero length
helmut 0:5150b09127e3 49 * and this will use the system timer and other sources to add randomness.
helmut 0:5150b09127e3 50 * If new random data is available, pass a pointer to that and it will be
helmut 0:5150b09127e3 51 * included.
helmut 0:5150b09127e3 52 */
helmut 0:5150b09127e3 53 void avChurnRand(char *randData, u32_t randLen);
helmut 0:5150b09127e3 54
helmut 0:5150b09127e3 55 /*
helmut 0:5150b09127e3 56 * Randomize our random seed value. To be called for truely random events
helmut 0:5150b09127e3 57 * such as user operations and network traffic.
helmut 0:5150b09127e3 58 */
helmut 0:5150b09127e3 59 #if MD5_SUPPORT
helmut 0:5150b09127e3 60 #define avRandomize() avChurnRand(NULL, 0)
helmut 0:5150b09127e3 61 #else /* MD5_SUPPORT */
helmut 0:5150b09127e3 62 void avRandomize(void);
helmut 0:5150b09127e3 63 #endif /* MD5_SUPPORT */
helmut 0:5150b09127e3 64
helmut 0:5150b09127e3 65 /*
helmut 0:5150b09127e3 66 * Use the random pool to generate random data. This degrades to pseudo
helmut 0:5150b09127e3 67 * random when used faster than randomness is supplied using churnRand().
helmut 0:5150b09127e3 68 * Thus it's important to make sure that the results of this are not
helmut 0:5150b09127e3 69 * published directly because one could predict the next result to at
helmut 0:5150b09127e3 70 * least some degree. Also, it's important to get a good seed before
helmut 0:5150b09127e3 71 * the first use.
helmut 0:5150b09127e3 72 */
helmut 0:5150b09127e3 73 void avGenRand(char *buf, u32_t bufLen);
helmut 0:5150b09127e3 74
helmut 0:5150b09127e3 75 /*
helmut 0:5150b09127e3 76 * Return a new random number.
helmut 0:5150b09127e3 77 */
helmut 0:5150b09127e3 78 u32_t avRandom(void);
helmut 0:5150b09127e3 79
helmut 0:5150b09127e3 80
helmut 0:5150b09127e3 81 #endif /* RANDM_H */