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