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