UVC host library
Dependents: LifeCam WebcamServer
Diff: uvc/uvcsub.cpp
- Revision:
- 0:b0f04c137829
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uvc/uvcsub.cpp Tue Jul 31 13:58:03 2012 +0000 @@ -0,0 +1,21 @@ +#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(); + } +} +