Andriy Makukha / Mbed 2 deprecated football_project_wo_output

Dependencies:   mbed

Fork of football_project by MZJ

Committer:
AntonLS
Date:
Sat Jul 11 01:57:40 2015 +0000
Revision:
16:3c873f2c8a27
Converted BLE_API lib to folder so the version stays frozen.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AntonLS 16:3c873f2c8a27 1 /* mbed Microcontroller Library
AntonLS 16:3c873f2c8a27 2 * Copyright (c) 2006-2013 ARM Limited
AntonLS 16:3c873f2c8a27 3 *
AntonLS 16:3c873f2c8a27 4 * Licensed under the Apache License, Version 2.0 (the "License");
AntonLS 16:3c873f2c8a27 5 * you may not use this file except in compliance with the License.
AntonLS 16:3c873f2c8a27 6 * You may obtain a copy of the License at
AntonLS 16:3c873f2c8a27 7 *
AntonLS 16:3c873f2c8a27 8 * http://www.apache.org/licenses/LICENSE-2.0
AntonLS 16:3c873f2c8a27 9 *
AntonLS 16:3c873f2c8a27 10 * Unless required by applicable law or agreed to in writing, software
AntonLS 16:3c873f2c8a27 11 * distributed under the License is distributed on an "AS IS" BASIS,
AntonLS 16:3c873f2c8a27 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
AntonLS 16:3c873f2c8a27 13 * See the License for the specific language governing permissions and
AntonLS 16:3c873f2c8a27 14 * limitations under the License.
AntonLS 16:3c873f2c8a27 15 */
AntonLS 16:3c873f2c8a27 16
AntonLS 16:3c873f2c8a27 17 #include "BLEDevice.h"
AntonLS 16:3c873f2c8a27 18
AntonLS 16:3c873f2c8a27 19 #if defined(TARGET_OTA_ENABLED)
AntonLS 16:3c873f2c8a27 20 #include "DFUService.h"
AntonLS 16:3c873f2c8a27 21 #endif
AntonLS 16:3c873f2c8a27 22
AntonLS 16:3c873f2c8a27 23 ble_error_t
AntonLS 16:3c873f2c8a27 24 BLEDevice::init()
AntonLS 16:3c873f2c8a27 25 {
AntonLS 16:3c873f2c8a27 26 ble_error_t err = transport->init();
AntonLS 16:3c873f2c8a27 27 if (err != BLE_ERROR_NONE) {
AntonLS 16:3c873f2c8a27 28 return err;
AntonLS 16:3c873f2c8a27 29 }
AntonLS 16:3c873f2c8a27 30
AntonLS 16:3c873f2c8a27 31 /* Platforms enabled for DFU should introduce the DFU Service into
AntonLS 16:3c873f2c8a27 32 * applications automatically. */
AntonLS 16:3c873f2c8a27 33 #if defined(TARGET_OTA_ENABLED)
AntonLS 16:3c873f2c8a27 34 static DFUService dfu(*this); // defined static so that the object remains alive
AntonLS 16:3c873f2c8a27 35 #endif // TARGET_OTA_ENABLED
AntonLS 16:3c873f2c8a27 36
AntonLS 16:3c873f2c8a27 37 return BLE_ERROR_NONE;
AntonLS 16:3c873f2c8a27 38 }