xref: /btstack/src/classic/core.h (revision 59c6af158dbc40c703cd6422bc90ce91f2efa168)
1*59c6af15SMatthias Ringwald /*
2*59c6af15SMatthias Ringwald  * Copyright (C) 2014 BlueKitchen GmbH
3*59c6af15SMatthias Ringwald  *
4*59c6af15SMatthias Ringwald  * Redistribution and use in source and binary forms, with or without
5*59c6af15SMatthias Ringwald  * modification, are permitted provided that the following conditions
6*59c6af15SMatthias Ringwald  * are met:
7*59c6af15SMatthias Ringwald  *
8*59c6af15SMatthias Ringwald  * 1. Redistributions of source code must retain the above copyright
9*59c6af15SMatthias Ringwald  *    notice, this list of conditions and the following disclaimer.
10*59c6af15SMatthias Ringwald  * 2. Redistributions in binary form must reproduce the above copyright
11*59c6af15SMatthias Ringwald  *    notice, this list of conditions and the following disclaimer in the
12*59c6af15SMatthias Ringwald  *    documentation and/or other materials provided with the distribution.
13*59c6af15SMatthias Ringwald  * 3. Neither the name of the copyright holders nor the names of
14*59c6af15SMatthias Ringwald  *    contributors may be used to endorse or promote products derived
15*59c6af15SMatthias Ringwald  *    from this software without specific prior written permission.
16*59c6af15SMatthias Ringwald  * 4. Any redistribution, use, or modification is done solely for
17*59c6af15SMatthias Ringwald  *    personal benefit and not for any commercial purpose or for
18*59c6af15SMatthias Ringwald  *    monetary gain.
19*59c6af15SMatthias Ringwald  *
20*59c6af15SMatthias Ringwald  * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS
21*59c6af15SMatthias Ringwald  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22*59c6af15SMatthias Ringwald  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23*59c6af15SMatthias Ringwald  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MATTHIAS
24*59c6af15SMatthias Ringwald  * RINGWALD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25*59c6af15SMatthias Ringwald  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26*59c6af15SMatthias Ringwald  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
27*59c6af15SMatthias Ringwald  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
28*59c6af15SMatthias Ringwald  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29*59c6af15SMatthias Ringwald  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
30*59c6af15SMatthias Ringwald  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31*59c6af15SMatthias Ringwald  * SUCH DAMAGE.
32*59c6af15SMatthias Ringwald  *
33*59c6af15SMatthias Ringwald  * Please inquire about commercial licensing options at
34*59c6af15SMatthias Ringwald  * [email protected]
35*59c6af15SMatthias Ringwald  *
36*59c6af15SMatthias Ringwald  */
37*59c6af15SMatthias Ringwald 
38*59c6af15SMatthias Ringwald // *****************************************************************************
39*59c6af15SMatthias Ringwald //  Core header for all Classic protocols and profiles
40*59c6af15SMatthias Ringwald // *****************************************************************************
41*59c6af15SMatthias Ringwald 
42*59c6af15SMatthias Ringwald #ifndef __CLASSIC_CORE
43*59c6af15SMatthias Ringwald #define __CLASSIC_CORE
44*59c6af15SMatthias Ringwald 
45*59c6af15SMatthias Ringwald #include "btstack_config.h"
46*59c6af15SMatthias Ringwald 
47*59c6af15SMatthias Ringwald #ifndef ENABLE_CLASSIC
48*59c6af15SMatthias Ringwald #error "ENABLE_CLASSIC not defined but Classic protocol or profile include. Please add ENABLE_CLASSIC in btstack_config.h, or remove all Classic protocols and profiles"
49*59c6af15SMatthias Ringwald #endif
50*59c6af15SMatthias Ringwald 
51*59c6af15SMatthias Ringwald #endif
52