To get started with Seeed Tiny BLE, include detecting motion, button and battery level.
Dependencies: BLE_API eMPL_MPU6050 mbed nRF51822
nRF51822/nordic-sdk/components/drivers_nrf/hal/nrf.h@1:fc2f9d636751, 2015-04-22 (annotated)
- Committer:
- yihui
- Date:
- Wed Apr 22 07:47:17 2015 +0000
- Revision:
- 1:fc2f9d636751
update libraries; ; delete nRF51822/nordic-sdk/components/gpiote/app_gpiote.c to solve GPIOTE_IRQHandler multiply defined issue. temperarily change nRF51822 library to folder
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yihui | 1:fc2f9d636751 | 1 | /* Copyright (c) 2013, Nordic Semiconductor ASA |
yihui | 1:fc2f9d636751 | 2 | * All rights reserved. |
yihui | 1:fc2f9d636751 | 3 | * |
yihui | 1:fc2f9d636751 | 4 | * Redistribution and use in source and binary forms, with or without |
yihui | 1:fc2f9d636751 | 5 | * modification, are permitted provided that the following conditions are met: |
yihui | 1:fc2f9d636751 | 6 | * |
yihui | 1:fc2f9d636751 | 7 | * * Redistributions of source code must retain the above copyright notice, this |
yihui | 1:fc2f9d636751 | 8 | * list of conditions and the following disclaimer. |
yihui | 1:fc2f9d636751 | 9 | * |
yihui | 1:fc2f9d636751 | 10 | * * Redistributions in binary form must reproduce the above copyright notice, |
yihui | 1:fc2f9d636751 | 11 | * this list of conditions and the following disclaimer in the documentation |
yihui | 1:fc2f9d636751 | 12 | * and/or other materials provided with the distribution. |
yihui | 1:fc2f9d636751 | 13 | * |
yihui | 1:fc2f9d636751 | 14 | * * Neither the name of Nordic Semiconductor ASA nor the names of its |
yihui | 1:fc2f9d636751 | 15 | * contributors may be used to endorse or promote products derived from |
yihui | 1:fc2f9d636751 | 16 | * this software without specific prior written permission. |
yihui | 1:fc2f9d636751 | 17 | * |
yihui | 1:fc2f9d636751 | 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
yihui | 1:fc2f9d636751 | 19 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
yihui | 1:fc2f9d636751 | 20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
yihui | 1:fc2f9d636751 | 21 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
yihui | 1:fc2f9d636751 | 22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
yihui | 1:fc2f9d636751 | 23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
yihui | 1:fc2f9d636751 | 24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
yihui | 1:fc2f9d636751 | 25 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
yihui | 1:fc2f9d636751 | 26 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
yihui | 1:fc2f9d636751 | 27 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
yihui | 1:fc2f9d636751 | 28 | * |
yihui | 1:fc2f9d636751 | 29 | */ |
yihui | 1:fc2f9d636751 | 30 | #ifndef NRF_H |
yihui | 1:fc2f9d636751 | 31 | #define NRF_H |
yihui | 1:fc2f9d636751 | 32 | |
yihui | 1:fc2f9d636751 | 33 | #ifndef _WIN32 |
yihui | 1:fc2f9d636751 | 34 | |
yihui | 1:fc2f9d636751 | 35 | /* Family selection for main includes. NRF51 must be selected. */ |
yihui | 1:fc2f9d636751 | 36 | #ifdef NRF51 |
yihui | 1:fc2f9d636751 | 37 | #include "nrf51.h" |
yihui | 1:fc2f9d636751 | 38 | #include "nrf51_bitfields.h" |
yihui | 1:fc2f9d636751 | 39 | #include "nrf51_deprecated.h" |
yihui | 1:fc2f9d636751 | 40 | #else |
yihui | 1:fc2f9d636751 | 41 | #error "Device family must be defined. See nrf.h." |
yihui | 1:fc2f9d636751 | 42 | #endif /* NRF51 */ |
yihui | 1:fc2f9d636751 | 43 | |
yihui | 1:fc2f9d636751 | 44 | #include "compiler_abstraction.h" |
yihui | 1:fc2f9d636751 | 45 | |
yihui | 1:fc2f9d636751 | 46 | #endif /* _WIN32 */ |
yihui | 1:fc2f9d636751 | 47 | |
yihui | 1:fc2f9d636751 | 48 | #endif /* NRF_H */ |
yihui | 1:fc2f9d636751 | 49 |