Previous version which works for my stm32f401 Nucleo board
Fork of X_NUCLEO_IDB0XA1 by
platform/inc/btle.h@90:26c0c9807ab4, 2015-07-22 (annotated)
- Committer:
- Wolfgang Betz
- Date:
- Wed Jul 22 11:25:50 2015 +0200
- Revision:
- 90:26c0c9807ab4
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?
User | Revision | Line number | New contents of line |
---|---|---|---|
Wolfgang Betz |
90:26c0c9807ab4 | 1 | /* mbed Microcontroller Library |
Wolfgang Betz |
90:26c0c9807ab4 | 2 | * Copyright (c) 2006-2013 ARM Limited |
Wolfgang Betz |
90:26c0c9807ab4 | 3 | * |
Wolfgang Betz |
90:26c0c9807ab4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Wolfgang Betz |
90:26c0c9807ab4 | 5 | * you may not use this file except in compliance with the License. |
Wolfgang Betz |
90:26c0c9807ab4 | 6 | * You may obtain a copy of the License at |
Wolfgang Betz |
90:26c0c9807ab4 | 7 | * |
Wolfgang Betz |
90:26c0c9807ab4 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Wolfgang Betz |
90:26c0c9807ab4 | 9 | * |
Wolfgang Betz |
90:26c0c9807ab4 | 10 | * Unless required by applicable law or agreed to in writing, software |
Wolfgang Betz |
90:26c0c9807ab4 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
Wolfgang Betz |
90:26c0c9807ab4 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Wolfgang Betz |
90:26c0c9807ab4 | 13 | * See the License for the specific language governing permissions and |
Wolfgang Betz |
90:26c0c9807ab4 | 14 | * limitations under the License. |
Wolfgang Betz |
90:26c0c9807ab4 | 15 | */ |
Wolfgang Betz |
90:26c0c9807ab4 | 16 | |
Wolfgang Betz |
90:26c0c9807ab4 | 17 | |
Wolfgang Betz |
90:26c0c9807ab4 | 18 | #ifndef _BTLE_H_ |
Wolfgang Betz |
90:26c0c9807ab4 | 19 | #define _BTLE_H_ |
Wolfgang Betz |
90:26c0c9807ab4 | 20 | |
Wolfgang Betz |
90:26c0c9807ab4 | 21 | |
Wolfgang Betz |
90:26c0c9807ab4 | 22 | #ifdef __cplusplus |
Wolfgang Betz |
90:26c0c9807ab4 | 23 | extern "C" { |
Wolfgang Betz |
90:26c0c9807ab4 | 24 | #endif |
Wolfgang Betz |
90:26c0c9807ab4 | 25 | |
Wolfgang Betz |
90:26c0c9807ab4 | 26 | #include <stdio.h> |
Wolfgang Betz |
90:26c0c9807ab4 | 27 | #include <string.h> |
Wolfgang Betz |
90:26c0c9807ab4 | 28 | |
Wolfgang Betz |
90:26c0c9807ab4 | 29 | #include "hci.h" |
Wolfgang Betz |
90:26c0c9807ab4 | 30 | #include "bluenrg_aci.h" |
Wolfgang Betz |
90:26c0c9807ab4 | 31 | #include "hci_const.h" |
Wolfgang Betz |
90:26c0c9807ab4 | 32 | #include "bluenrg_hal_aci.h" |
Wolfgang Betz |
90:26c0c9807ab4 | 33 | #include "stm32_bluenrg_ble.h" |
Wolfgang Betz |
90:26c0c9807ab4 | 34 | #include "bluenrg_gap.h" |
Wolfgang Betz |
90:26c0c9807ab4 | 35 | #include "bluenrg_gatt_server.h" |
Wolfgang Betz |
90:26c0c9807ab4 | 36 | |
Wolfgang Betz |
90:26c0c9807ab4 | 37 | extern uint16_t g_gap_service_handle; |
Wolfgang Betz |
90:26c0c9807ab4 | 38 | extern uint16_t g_appearance_char_handle; |
Wolfgang Betz |
90:26c0c9807ab4 | 39 | extern uint16_t g_device_name_char_handle; |
Wolfgang Betz |
90:26c0c9807ab4 | 40 | |
Wolfgang Betz |
90:26c0c9807ab4 | 41 | void btle_init(bool isSetAddress); |
Wolfgang Betz |
90:26c0c9807ab4 | 42 | void SPI_Poll(void); |
Wolfgang Betz |
90:26c0c9807ab4 | 43 | void User_Process(void); |
Wolfgang Betz |
90:26c0c9807ab4 | 44 | void setConnectable(void); |
Wolfgang Betz |
90:26c0c9807ab4 | 45 | |
Wolfgang Betz |
90:26c0c9807ab4 | 46 | #ifdef __cplusplus |
Wolfgang Betz |
90:26c0c9807ab4 | 47 | } |
Wolfgang Betz |
90:26c0c9807ab4 | 48 | #endif |
Wolfgang Betz |
90:26c0c9807ab4 | 49 | |
Wolfgang Betz |
90:26c0c9807ab4 | 50 | #endif |