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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers uvcsub.cpp Source File

uvcsub.cpp

00001 #include "mbed.h"
00002 #include "uvc.h"
00003 
00004 void uvc::wait(float s)
00005 {
00006     Timer t;
00007     t.start();
00008     while(t.read() < s) {
00009         poll();
00010     }
00011 }
00012 
00013 void uvc::wait_ms(int ms)
00014 {
00015     Timer t;
00016     t.start();
00017     while(t.read_ms() < ms) {
00018         poll();
00019     }
00020 }
00021