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