BLE_DEMO_SPI_HARDCODE
Dependencies: BLE_API mbed nRF51822
Fork of BLE_Central_Light_Demo_23 by
Revision 7:66586d2d7cb5, committed 2017-01-20
- Comitter:
- hmiot
- Date:
- Fri Jan 20 17:59:26 2017 +0000
- Parent:
- 6:71e7a446ae6a
- Child:
- 8:285ebd0e83fb
- Commit message:
- BLE Central for Magic Light
Changed in this revision
Light_Header/hm_config.h | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Light_Header/hm_config.h Fri Jan 20 17:59:26 2017 +0000 @@ -0,0 +1,13 @@ + + +#ifndef __HM_CONFIG_H__ +#define __HM_CONFIG_H__ + +#include "mbed.h" +#include "ble/BLE.h" +#include "ble/DiscoveredCharacteristic.h" +#include "ble/DiscoveredService.h" +#include "ble/Gap.h" + + +#endif /* ifndef __BLE_H__ */ \ No newline at end of file
--- 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))