Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FatFileSystem TB6612FNG2 mbed
Diff: uvc/uvcsub.cpp
- Revision:
- 0:de03cbbcd0ff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/uvc/uvcsub.cpp Mon Nov 30 09:32:15 2015 +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();
+ }
+}
+