BLE demo for mbed Ported RunningElectronics's SBDBT firmware for BLE. It can communicate with iOS

Dependencies:   FatFileSystem mbed

Fork of BTstack by Norimasa Okamoto

Committer:
todotani
Date:
Wed Feb 20 14:18:38 2013 +0000
Revision:
6:cf06ba884429
Parent:
0:1ed23ab1345f
Change tick timer to 1ms. Change attribute 0xFFF1 as read of DigitalIn p5

Who changed what in which revision?

UserRevisionLine numberNew contents of line
va009039 0:1ed23ab1345f 1 #include "mbed.h"
va009039 0:1ed23ab1345f 2 #include "uvc.h"
va009039 0:1ed23ab1345f 3
va009039 0:1ed23ab1345f 4 void uvc::wait(float s)
va009039 0:1ed23ab1345f 5 {
va009039 0:1ed23ab1345f 6 Timer t;
va009039 0:1ed23ab1345f 7 t.start();
va009039 0:1ed23ab1345f 8 while(t.read() < s) {
va009039 0:1ed23ab1345f 9 poll();
va009039 0:1ed23ab1345f 10 }
va009039 0:1ed23ab1345f 11 }
va009039 0:1ed23ab1345f 12
va009039 0:1ed23ab1345f 13 void uvc::wait_ms(int ms)
va009039 0:1ed23ab1345f 14 {
va009039 0:1ed23ab1345f 15 Timer t;
va009039 0:1ed23ab1345f 16 t.start();
va009039 0:1ed23ab1345f 17 while(t.read_ms() < ms) {
va009039 0:1ed23ab1345f 18 poll();
va009039 0:1ed23ab1345f 19 }
va009039 0:1ed23ab1345f 20 }
va009039 0:1ed23ab1345f 21