Devchannel Team / X_NUCLEO_IDB0XA1

Dependents:   Hello_BLE F446RE-BLE

Fork of X_NUCLEO_IDB0XA1 by ST

Committer:
Wolfgang Betz
Date:
Wed Jul 22 11:25:50 2015 +0200
Revision:
90:26c0c9807ab4
Child:
107:5cc5ac5bfbbb
Preparing ble_wb

- new gitmodule for BLE_API
- updating ReadMe.txt
- synching X_NUCLEO_IDB0XA1 with mbed
- synching test application

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Wolfgang Betz 90:26c0c9807ab4 1 /**
Wolfgang Betz 90:26c0c9807ab4 2 ******************************************************************************
Wolfgang Betz 90:26c0c9807ab4 3 * @file stm32_bluenrg_ble.h
Wolfgang Betz 90:26c0c9807ab4 4 * @author CL
Wolfgang Betz 90:26c0c9807ab4 5 * @version V1.0.1
Wolfgang Betz 90:26c0c9807ab4 6 * @date 15-June-2014
Wolfgang Betz 90:26c0c9807ab4 7 * @brief
Wolfgang Betz 90:26c0c9807ab4 8 ******************************************************************************
Wolfgang Betz 90:26c0c9807ab4 9 * @attention
Wolfgang Betz 90:26c0c9807ab4 10 *
Wolfgang Betz 90:26c0c9807ab4 11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
Wolfgang Betz 90:26c0c9807ab4 12 *
Wolfgang Betz 90:26c0c9807ab4 13 * Redistribution and use in source and binary forms, with or without modification,
Wolfgang Betz 90:26c0c9807ab4 14 * are permitted provided that the following conditions are met:
Wolfgang Betz 90:26c0c9807ab4 15 * 1. Redistributions of source code must retain the above copyright notice,
Wolfgang Betz 90:26c0c9807ab4 16 * this list of conditions and the following disclaimer.
Wolfgang Betz 90:26c0c9807ab4 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
Wolfgang Betz 90:26c0c9807ab4 18 * this list of conditions and the following disclaimer in the documentation
Wolfgang Betz 90:26c0c9807ab4 19 * and/or other materials provided with the distribution.
Wolfgang Betz 90:26c0c9807ab4 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
Wolfgang Betz 90:26c0c9807ab4 21 * may be used to endorse or promote products derived from this software
Wolfgang Betz 90:26c0c9807ab4 22 * without specific prior written permission.
Wolfgang Betz 90:26c0c9807ab4 23 *
Wolfgang Betz 90:26c0c9807ab4 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Wolfgang Betz 90:26c0c9807ab4 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Wolfgang Betz 90:26c0c9807ab4 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Wolfgang Betz 90:26c0c9807ab4 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
Wolfgang Betz 90:26c0c9807ab4 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Wolfgang Betz 90:26c0c9807ab4 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Wolfgang Betz 90:26c0c9807ab4 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
Wolfgang Betz 90:26c0c9807ab4 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
Wolfgang Betz 90:26c0c9807ab4 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Wolfgang Betz 90:26c0c9807ab4 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Wolfgang Betz 90:26c0c9807ab4 34 *
Wolfgang Betz 90:26c0c9807ab4 35 ******************************************************************************
Wolfgang Betz 90:26c0c9807ab4 36 */
Wolfgang Betz 90:26c0c9807ab4 37
Wolfgang Betz 90:26c0c9807ab4 38 /* Define to prevent recursive inclusion -------------------------------------*/
Wolfgang Betz 90:26c0c9807ab4 39 #ifndef __STM32_BLUENRG_BLE_H
Wolfgang Betz 90:26c0c9807ab4 40 #define __STM32_BLUENRG_BLE_H
Wolfgang Betz 90:26c0c9807ab4 41
Wolfgang Betz 90:26c0c9807ab4 42 #ifdef __cplusplus
Wolfgang Betz 90:26c0c9807ab4 43 extern "C" {
Wolfgang Betz 90:26c0c9807ab4 44 #endif
Wolfgang Betz 90:26c0c9807ab4 45
Wolfgang Betz 90:26c0c9807ab4 46
Wolfgang Betz 90:26c0c9807ab4 47 #include <stdint.h>
Wolfgang Betz 90:26c0c9807ab4 48 #include "gp_timer.h"
Wolfgang Betz 90:26c0c9807ab4 49 #include "hal.h"
Wolfgang Betz 90:26c0c9807ab4 50
Wolfgang Betz 90:26c0c9807ab4 51 /** @addtogroup BSP
Wolfgang Betz 90:26c0c9807ab4 52 * @{
Wolfgang Betz 90:26c0c9807ab4 53 */
Wolfgang Betz 90:26c0c9807ab4 54
Wolfgang Betz 90:26c0c9807ab4 55 /** @addtogroup X-NUCLEO-IDB04A1
Wolfgang Betz 90:26c0c9807ab4 56 * @{
Wolfgang Betz 90:26c0c9807ab4 57 */
Wolfgang Betz 90:26c0c9807ab4 58
Wolfgang Betz 90:26c0c9807ab4 59 /** @addtogroup STM32_BLUENRG_BLE
Wolfgang Betz 90:26c0c9807ab4 60 * @{
Wolfgang Betz 90:26c0c9807ab4 61 */
Wolfgang Betz 90:26c0c9807ab4 62
Wolfgang Betz 90:26c0c9807ab4 63 /** @defgroup STM32_BLUENRG_BLE_Exported_Functions
Wolfgang Betz 90:26c0c9807ab4 64 * @{
Wolfgang Betz 90:26c0c9807ab4 65 */
Wolfgang Betz 90:26c0c9807ab4 66
Wolfgang Betz 90:26c0c9807ab4 67 // FIXME: add prototypes for BlueNRG here
Wolfgang Betz 90:26c0c9807ab4 68 void BlueNRG_RST(void);
Wolfgang Betz 90:26c0c9807ab4 69 uint8_t BlueNRG_DataPresent(void);
Wolfgang Betz 90:26c0c9807ab4 70 void BlueNRG_HW_Bootloader(void);
Wolfgang Betz 90:26c0c9807ab4 71 int32_t BlueNRG_SPI_Read_All(uint8_t *buffer,
Wolfgang Betz 90:26c0c9807ab4 72 uint8_t buff_size);
Wolfgang Betz 90:26c0c9807ab4 73 int32_t BlueNRG_SPI_Write(uint8_t* data1,
Wolfgang Betz 90:26c0c9807ab4 74 uint8_t* data2,
Wolfgang Betz 90:26c0c9807ab4 75 uint8_t Nb_bytes1,
Wolfgang Betz 90:26c0c9807ab4 76 uint8_t Nb_bytes2);
Wolfgang Betz 90:26c0c9807ab4 77 void Clear_SPI_EXTI_Flag(void);
Wolfgang Betz 90:26c0c9807ab4 78
Wolfgang Betz 90:26c0c9807ab4 79 /**
Wolfgang Betz 90:26c0c9807ab4 80 * @}
Wolfgang Betz 90:26c0c9807ab4 81 */
Wolfgang Betz 90:26c0c9807ab4 82
Wolfgang Betz 90:26c0c9807ab4 83 /**
Wolfgang Betz 90:26c0c9807ab4 84 * @}
Wolfgang Betz 90:26c0c9807ab4 85 */
Wolfgang Betz 90:26c0c9807ab4 86
Wolfgang Betz 90:26c0c9807ab4 87 /**
Wolfgang Betz 90:26c0c9807ab4 88 * @}
Wolfgang Betz 90:26c0c9807ab4 89 */
Wolfgang Betz 90:26c0c9807ab4 90
Wolfgang Betz 90:26c0c9807ab4 91 /**
Wolfgang Betz 90:26c0c9807ab4 92 * @}
Wolfgang Betz 90:26c0c9807ab4 93 */
Wolfgang Betz 90:26c0c9807ab4 94
Wolfgang Betz 90:26c0c9807ab4 95 #ifdef __cplusplus
Wolfgang Betz 90:26c0c9807ab4 96 }
Wolfgang Betz 90:26c0c9807ab4 97 #endif
Wolfgang Betz 90:26c0c9807ab4 98
Wolfgang Betz 90:26c0c9807ab4 99 #endif /* __STM32_BLUENRG_BLE_H */
Wolfgang Betz 90:26c0c9807ab4 100
Wolfgang Betz 90:26c0c9807ab4 101 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Wolfgang Betz 90:26c0c9807ab4 102