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

uvc/uvcsub.cpp

Committer:
todotani
Date:
2013-02-20
Revision:
6:cf06ba884429
Parent:
0:1ed23ab1345f

File content as of revision 6:cf06ba884429:

#include "mbed.h"
#include "uvc.h"

void uvc::wait(float s)
{
    Timer t;
    t.start();
    while(t.read() < s) {
        poll();
    }
}

void uvc::wait_ms(int ms)
{
    Timer t;
    t.start();
    while(t.read_ms() < ms) {
        poll();
    }
}