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