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