1e25b4a2fSMatthias Ringwald /* 2e25b4a2fSMatthias Ringwald * Copyright (C) 2014 BlueKitchen GmbH 3e25b4a2fSMatthias Ringwald * 4e25b4a2fSMatthias Ringwald * Redistribution and use in source and binary forms, with or without 5e25b4a2fSMatthias Ringwald * modification, are permitted provided that the following conditions 6e25b4a2fSMatthias Ringwald * are met: 7e25b4a2fSMatthias Ringwald * 8e25b4a2fSMatthias Ringwald * 1. Redistributions of source code must retain the above copyright 9e25b4a2fSMatthias Ringwald * notice, this list of conditions and the following disclaimer. 10e25b4a2fSMatthias Ringwald * 2. Redistributions in binary form must reproduce the above copyright 11e25b4a2fSMatthias Ringwald * notice, this list of conditions and the following disclaimer in the 12e25b4a2fSMatthias Ringwald * documentation and/or other materials provided with the distribution. 13e25b4a2fSMatthias Ringwald * 3. Neither the name of the copyright holders nor the names of 14e25b4a2fSMatthias Ringwald * contributors may be used to endorse or promote products derived 15e25b4a2fSMatthias Ringwald * from this software without specific prior written permission. 16e25b4a2fSMatthias Ringwald * 4. Any redistribution, use, or modification is done solely for 17e25b4a2fSMatthias Ringwald * personal benefit and not for any commercial purpose or for 18e25b4a2fSMatthias Ringwald * monetary gain. 19e25b4a2fSMatthias Ringwald * 20e25b4a2fSMatthias Ringwald * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS 21e25b4a2fSMatthias Ringwald * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22e25b4a2fSMatthias Ringwald * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 23*2fca4dadSMilanka Ringwald * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BLUEKITCHEN 24*2fca4dadSMilanka Ringwald * GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 25e25b4a2fSMatthias Ringwald * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 26e25b4a2fSMatthias Ringwald * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 27e25b4a2fSMatthias Ringwald * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 28e25b4a2fSMatthias Ringwald * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 29e25b4a2fSMatthias Ringwald * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 30e25b4a2fSMatthias Ringwald * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31e25b4a2fSMatthias Ringwald * SUCH DAMAGE. 32e25b4a2fSMatthias Ringwald * 33e25b4a2fSMatthias Ringwald * Please inquire about commercial licensing options at 34e25b4a2fSMatthias Ringwald * [email protected] 35e25b4a2fSMatthias Ringwald * 36e25b4a2fSMatthias Ringwald */ 37e25b4a2fSMatthias Ringwald 38e25b4a2fSMatthias Ringwald /* 39e25b4a2fSMatthias Ringwald * btstack_run_loop_wiced.h 40e25b4a2fSMatthias Ringwald * 41e25b4a2fSMatthias Ringwald * Functions relevant for BTstack WICED port 42e25b4a2fSMatthias Ringwald */ 43e25b4a2fSMatthias Ringwald 4462b02606SMatthias Ringwald #ifndef BTSTACK_RUN_LOOP_WICED_H 4562b02606SMatthias Ringwald #define BTSTACK_RUN_LOOP_WICED_H 46e25b4a2fSMatthias Ringwald 47e25b4a2fSMatthias Ringwald #include "btstack_config.h" 48e25b4a2fSMatthias Ringwald #include "btstack_run_loop.h" 49e25b4a2fSMatthias Ringwald #include "wiced.h" 50e25b4a2fSMatthias Ringwald 51e25b4a2fSMatthias Ringwald #if defined __cplusplus 52e25b4a2fSMatthias Ringwald extern "C" { 53e25b4a2fSMatthias Ringwald #endif 54e25b4a2fSMatthias Ringwald 55e25b4a2fSMatthias Ringwald /** 5662b02606SMatthias Ringwald * @brief Provide btstack_run_loop_wiced instance for use with btstack_run_loop_init 57e25b4a2fSMatthias Ringwald */ 58e25b4a2fSMatthias Ringwald const btstack_run_loop_t * btstack_run_loop_wiced_get_instance(void); 59e25b4a2fSMatthias Ringwald 60e25b4a2fSMatthias Ringwald /* 61e25b4a2fSMatthias Ringwald * @brief Execute code on BTstack run loop. Can be used to control BTstack from a different thread 6262b02606SMatthias Ringwald * @deprecated use btstack_run_loop_execute_on_main_thread instead 63e25b4a2fSMatthias Ringwald */ 64e25b4a2fSMatthias Ringwald void btstack_run_loop_wiced_execute_code_on_main_thread(wiced_result_t (*fn)(void *arg), void * arg); 65e25b4a2fSMatthias Ringwald 66e25b4a2fSMatthias Ringwald /* API_END */ 67e25b4a2fSMatthias Ringwald 68e25b4a2fSMatthias Ringwald #if defined __cplusplus 69e25b4a2fSMatthias Ringwald } 70e25b4a2fSMatthias Ringwald #endif 71e25b4a2fSMatthias Ringwald 7262b02606SMatthias Ringwald #endif // BTSTACK_RUN_LOOP_WICED_H 73