Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed nRF51822
Fork of BLE_Central_Light_Demo_23 by
Diff: main.cpp
- Revision:
- 7:66586d2d7cb5
- Parent:
- 6:71e7a446ae6a
- Child:
- 8:285ebd0e83fb
--- a/main.cpp Fri Jan 20 14:22:56 2017 +0000 +++ b/main.cpp Fri Jan 20 17:59:26 2017 +0000 @@ -1,25 +1,10 @@ -/* mbed Microcontroller Library - * Copyright (c) 2006-2015 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 "ble/BLE.h" -#include "ble/DiscoveredCharacteristic.h" -#include "ble/DiscoveredService.h" -#include "ble/Gap.h" -#include "nRF5xGap.h" +#include "hm_config.h" + static const uint16_t UNIT_1_25_MS = 1250; static const uint16_t UNIT_10_MS = 10000; #define MSEC_TO_UNITS(TIME, RESOLUTION) (((TIME) * 1000) / (RESOLUTION))
