BLE UART example

Fork of Nucleo_BLE_BlueNRG by ST Americas mbed Team

Committer:
sjallouli
Date:
Sun Jan 03 16:05:38 2016 +0000
Revision:
3:104f1bba39ca
Parent:
0:a948f5f3904c
test

Who changed what in which revision?

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