Integrating the ublox LISA C200 modem

Fork of SprintUSBModemHTTPClientTest by Donatien Garnier

Committer:
sam_grove
Date:
Thu Sep 26 00:44:20 2013 -0500
Revision:
5:3f93dd1d4cb3
Exported program and replaced contents of the repo with the source
to build and debug using keil mdk. Libs NOT upto date are lwip, lwip-sys
and socket. these have newer versions under mbed_official but were starting
from a know working point

Who changed what in which revision?

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