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