Counter

Dependencies:   EthernetInterface NTPClient SDFileSystem TextLCD WebSocketClient mbed-rtos mbed Socket lwip-eth lwip-sys lwip FATFileSystem

Committer:
Tuxitheone
Date:
Mon Feb 29 18:59:15 2016 +0000
Revision:
0:ecaf3e593122
TankCounter

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Tuxitheone 0:ecaf3e593122 1 /*****************************************************************************
Tuxitheone 0:ecaf3e593122 2 * magic.h - Network Random Number Generator header file.
Tuxitheone 0:ecaf3e593122 3 *
Tuxitheone 0:ecaf3e593122 4 * Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc.
Tuxitheone 0:ecaf3e593122 5 * portions Copyright (c) 1997 Global Election Systems Inc.
Tuxitheone 0:ecaf3e593122 6 *
Tuxitheone 0:ecaf3e593122 7 * The authors hereby grant permission to use, copy, modify, distribute,
Tuxitheone 0:ecaf3e593122 8 * and license this software and its documentation for any purpose, provided
Tuxitheone 0:ecaf3e593122 9 * that existing copyright notices are retained in all copies and that this
Tuxitheone 0:ecaf3e593122 10 * notice and the following disclaimer are included verbatim in any
Tuxitheone 0:ecaf3e593122 11 * distributions. No written agreement, license, or royalty fee is required
Tuxitheone 0:ecaf3e593122 12 * for any of the authorized uses.
Tuxitheone 0:ecaf3e593122 13 *
Tuxitheone 0:ecaf3e593122 14 * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR
Tuxitheone 0:ecaf3e593122 15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
Tuxitheone 0:ecaf3e593122 16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
Tuxitheone 0:ecaf3e593122 17 * IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
Tuxitheone 0:ecaf3e593122 18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
Tuxitheone 0:ecaf3e593122 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Tuxitheone 0:ecaf3e593122 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Tuxitheone 0:ecaf3e593122 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Tuxitheone 0:ecaf3e593122 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
Tuxitheone 0:ecaf3e593122 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Tuxitheone 0:ecaf3e593122 24 *
Tuxitheone 0:ecaf3e593122 25 ******************************************************************************
Tuxitheone 0:ecaf3e593122 26 * REVISION HISTORY
Tuxitheone 0:ecaf3e593122 27 *
Tuxitheone 0:ecaf3e593122 28 * 03-01-01 Marc Boucher <marc@mbsi.ca>
Tuxitheone 0:ecaf3e593122 29 * Ported to lwIP.
Tuxitheone 0:ecaf3e593122 30 * 97-12-04 Guy Lancaster <glanca@gesn.com>, Global Election Systems Inc.
Tuxitheone 0:ecaf3e593122 31 * Original derived from BSD codes.
Tuxitheone 0:ecaf3e593122 32 *****************************************************************************/
Tuxitheone 0:ecaf3e593122 33 /*
Tuxitheone 0:ecaf3e593122 34 * magic.h - PPP Magic Number definitions.
Tuxitheone 0:ecaf3e593122 35 *
Tuxitheone 0:ecaf3e593122 36 * Copyright (c) 1989 Carnegie Mellon University.
Tuxitheone 0:ecaf3e593122 37 * All rights reserved.
Tuxitheone 0:ecaf3e593122 38 *
Tuxitheone 0:ecaf3e593122 39 * Redistribution and use in source and binary forms are permitted
Tuxitheone 0:ecaf3e593122 40 * provided that the above copyright notice and this paragraph are
Tuxitheone 0:ecaf3e593122 41 * duplicated in all such forms and that any documentation,
Tuxitheone 0:ecaf3e593122 42 * advertising materials, and other materials related to such
Tuxitheone 0:ecaf3e593122 43 * distribution and use acknowledge that the software was developed
Tuxitheone 0:ecaf3e593122 44 * by Carnegie Mellon University. The name of the
Tuxitheone 0:ecaf3e593122 45 * University may not be used to endorse or promote products derived
Tuxitheone 0:ecaf3e593122 46 * from this software without specific prior written permission.
Tuxitheone 0:ecaf3e593122 47 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
Tuxitheone 0:ecaf3e593122 48 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
Tuxitheone 0:ecaf3e593122 49 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Tuxitheone 0:ecaf3e593122 50 *
Tuxitheone 0:ecaf3e593122 51 * $Id: magic.h,v 1.3 2010/01/18 20:49:43 goldsimon Exp $
Tuxitheone 0:ecaf3e593122 52 */
Tuxitheone 0:ecaf3e593122 53
Tuxitheone 0:ecaf3e593122 54 #ifndef MAGIC_H
Tuxitheone 0:ecaf3e593122 55 #define MAGIC_H
Tuxitheone 0:ecaf3e593122 56
Tuxitheone 0:ecaf3e593122 57 /* Initialize the magic number generator */
Tuxitheone 0:ecaf3e593122 58 void magicInit(void);
Tuxitheone 0:ecaf3e593122 59
Tuxitheone 0:ecaf3e593122 60 /* Returns the next magic number */
Tuxitheone 0:ecaf3e593122 61 u32_t magic(void);
Tuxitheone 0:ecaf3e593122 62
Tuxitheone 0:ecaf3e593122 63 #endif /* MAGIC_H */