cc3100_Socket_Wifi_Server with Ethernet Interface not working

Dependencies:   EthernetInterface mbed-rtos mbed

Fork of cc3100_Test_Demo by David Fletcher

Committer:
artpes
Date:
Fri May 26 10:03:00 2017 +0000
Revision:
9:fd9f64918306
Parent:
0:e89ba455dbcf
Wifi Server

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dflet 0:e89ba455dbcf 1 /*
dflet 0:e89ba455dbcf 2 * spawn.h - CC31xx/CC32xx Host Driver Implementation
dflet 0:e89ba455dbcf 3 *
dflet 0:e89ba455dbcf 4 * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
dflet 0:e89ba455dbcf 5 *
dflet 0:e89ba455dbcf 6 *
dflet 0:e89ba455dbcf 7 * Redistribution and use in source and binary forms, with or without
dflet 0:e89ba455dbcf 8 * modification, are permitted provided that the following conditions
dflet 0:e89ba455dbcf 9 * are met:
dflet 0:e89ba455dbcf 10 *
dflet 0:e89ba455dbcf 11 * Redistributions of source code must retain the above copyright
dflet 0:e89ba455dbcf 12 * notice, this list of conditions and the following disclaimer.
dflet 0:e89ba455dbcf 13 *
dflet 0:e89ba455dbcf 14 * Redistributions in binary form must reproduce the above copyright
dflet 0:e89ba455dbcf 15 * notice, this list of conditions and the following disclaimer in the
dflet 0:e89ba455dbcf 16 * documentation and/or other materials provided with the
dflet 0:e89ba455dbcf 17 * distribution.
dflet 0:e89ba455dbcf 18 *
dflet 0:e89ba455dbcf 19 * Neither the name of Texas Instruments Incorporated nor the names of
dflet 0:e89ba455dbcf 20 * its contributors may be used to endorse or promote products derived
dflet 0:e89ba455dbcf 21 * from this software without specific prior written permission.
dflet 0:e89ba455dbcf 22 *
dflet 0:e89ba455dbcf 23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
dflet 0:e89ba455dbcf 24 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
dflet 0:e89ba455dbcf 25 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
dflet 0:e89ba455dbcf 26 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
dflet 0:e89ba455dbcf 27 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
dflet 0:e89ba455dbcf 28 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
dflet 0:e89ba455dbcf 29 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
dflet 0:e89ba455dbcf 30 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
dflet 0:e89ba455dbcf 31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
dflet 0:e89ba455dbcf 32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
dflet 0:e89ba455dbcf 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
dflet 0:e89ba455dbcf 34 *
dflet 0:e89ba455dbcf 35 */
dflet 0:e89ba455dbcf 36
dflet 0:e89ba455dbcf 37 #ifndef SPAWN_H_
dflet 0:e89ba455dbcf 38 #define SPAWN_H_
dflet 0:e89ba455dbcf 39
dflet 0:e89ba455dbcf 40
dflet 0:e89ba455dbcf 41 namespace mbed_cc3100 {
dflet 0:e89ba455dbcf 42
dflet 0:e89ba455dbcf 43 class cc3100_spawn
dflet 0:e89ba455dbcf 44 {
dflet 0:e89ba455dbcf 45
dflet 0:e89ba455dbcf 46 public:
dflet 0:e89ba455dbcf 47
dflet 0:e89ba455dbcf 48 cc3100_spawn() {
dflet 0:e89ba455dbcf 49
dflet 0:e89ba455dbcf 50 }
dflet 0:e89ba455dbcf 51
dflet 0:e89ba455dbcf 52 ~cc3100_spawn() {
dflet 0:e89ba455dbcf 53
dflet 0:e89ba455dbcf 54 }
dflet 0:e89ba455dbcf 55
dflet 0:e89ba455dbcf 56 #if (defined (SL_PLATFORM_MULTI_THREADED)) && (!defined (SL_PLATFORM_EXTERNAL_SPAWN))
dflet 0:e89ba455dbcf 57
dflet 0:e89ba455dbcf 58 void _SlInternalSpawnTaskEntry();
dflet 0:e89ba455dbcf 59 int16_t _SlInternalSpawn(_SlSpawnEntryFunc_t pEntry , void* pValue , uint32_t flags);
dflet 0:e89ba455dbcf 60
dflet 0:e89ba455dbcf 61 #undef sl_Spawn
dflet 0:e89ba455dbcf 62 #define sl_Spawn(pEntry,pValue,flags) _SlInternalSpawn(pEntry,pValue,flags)
dflet 0:e89ba455dbcf 63
dflet 0:e89ba455dbcf 64 #undef _SlTaskEntry
dflet 0:e89ba455dbcf 65 #define _SlTaskEntry _SlInternalSpawnTaskEntry
dflet 0:e89ba455dbcf 66
dflet 0:e89ba455dbcf 67
dflet 0:e89ba455dbcf 68 #endif
dflet 0:e89ba455dbcf 69
dflet 0:e89ba455dbcf 70 };//class
dflet 0:e89ba455dbcf 71
dflet 0:e89ba455dbcf 72 }//namespace mbed_cc3100
dflet 0:e89ba455dbcf 73
dflet 0:e89ba455dbcf 74 #endif
dflet 0:e89ba455dbcf 75