HW layer for the Nucleo board, it only work with old BLE_API
Dependents: Hello_BLE F446RE-BLE
Fork of X_NUCLEO_IDB0XA1 by
Diff: BlueNRGDevice.cpp
- Revision:
- 58:027c65a54097
- Parent:
- 45:1fff7d7d5ce7
- Child:
- 61:929885305c17
--- a/BlueNRGDevice.cpp Wed Oct 01 11:47:54 2014 +0000 +++ b/BlueNRGDevice.cpp Tue Oct 07 10:13:02 2014 +0000 @@ -1,18 +1,18 @@ /* mbed Microcontroller Library - * Copyright (c) 2006-2013 ARM Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +* Copyright (c) 2006-2013 ARM Limited +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ #include "mbed.h" #include "BlueNRGDevice.h" @@ -24,14 +24,14 @@ #include "osal.h" /** - * The singleton which represents the BlueNRG transport for the BLEDevice. - */ +* The singleton which represents the BlueNRG transport for the BLEDevice. +*/ static BlueNRGDevice deviceInstance; /** - * BLE-API requires an implementation of the following function in order to - * obtain its transport handle. - */ +* BLE-API requires an implementation of the following function in order to +* obtain its transport handle. +*/ BLEDeviceInstanceBase * createBLEDeviceInstance(void) { @@ -106,7 +106,7 @@ /* Reset BlueNRG SPI interface */ BlueNRG_RST(); - + /* Wait for the radio to come back up */ wait(1); @@ -181,7 +181,7 @@ /**************************************************************************/ Gap &BlueNRGDevice::getGap() { - return BlueNRGGap::getInstance(); + return BlueNRGGap::getInstance(); } /**************************************************************************/ @@ -201,7 +201,7 @@ /**************************************************************************/ GattServer &BlueNRGDevice::getGattServer() { - return BlueNRGGattServer::getInstance(); + return BlueNRGGattServer::getInstance(); } /**************************************************************************/