Antonio Vilei / X_NUCLEO_IDB0XA1

Fork of X_NUCLEO_IDB0XA1 by ST Expansion SW Team

Committer:
Wolfgang Betz
Date:
Tue Oct 06 14:25:08 2015 +0200
Revision:
130:770ce14d3d15
Include mbed-classic version

Derived from
- repo (on Codex): gitolite@codex.cro.st.com:x-nucleodev/X-NUCLEO-IKC01A1-MBED.git
- branch: ble_wb
- SHA1 ID: 5ccc73e35868169e42132c0d1c056f908a6d70c0

Who changed what in which revision?

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