To get started with Seeed Tiny BLE, include detecting motion, button and battery level.

Dependencies:   BLE_API eMPL_MPU6050 mbed nRF51822

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?

UserRevisionLine numberNew contents of line
yihui 1:fc2f9d636751 1 /* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
yihui 1:fc2f9d636751 2 *
yihui 1:fc2f9d636751 3 * The information contained herein is property of Nordic Semiconductor ASA.
yihui 1:fc2f9d636751 4 * Terms and conditions of usage are described in detail in NORDIC
yihui 1:fc2f9d636751 5 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
yihui 1:fc2f9d636751 6 *
yihui 1:fc2f9d636751 7 * Licensees are granted free, non-transferable use of the information. NO
yihui 1:fc2f9d636751 8 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
yihui 1:fc2f9d636751 9 * the file.
yihui 1:fc2f9d636751 10 *
yihui 1:fc2f9d636751 11 */
yihui 1:fc2f9d636751 12
yihui 1:fc2f9d636751 13 #include <stdio.h>
yihui 1:fc2f9d636751 14 #include "compiler_abstraction.h"
yihui 1:fc2f9d636751 15 #include "nrf.h"
yihui 1:fc2f9d636751 16 #include "nrf_delay.h"
yihui 1:fc2f9d636751 17
yihui 1:fc2f9d636751 18 /*lint --e{438} "Variable not used" */
yihui 1:fc2f9d636751 19 void nrf_delay_ms(uint32_t volatile number_of_ms)
yihui 1:fc2f9d636751 20 {
yihui 1:fc2f9d636751 21 while(number_of_ms != 0)
yihui 1:fc2f9d636751 22 {
yihui 1:fc2f9d636751 23 number_of_ms--;
yihui 1:fc2f9d636751 24 nrf_delay_us(999);
yihui 1:fc2f9d636751 25 }
yihui 1:fc2f9d636751 26 }