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
uvc/uvcsub.cpp@0:de03cbbcd0ff, 2015-11-30 (annotated)
- Committer:
- mbed_Cookbook_SE
- Date:
- Mon Nov 30 09:32:15 2015 +0000
- Revision:
- 0:de03cbbcd0ff
??
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 1 | #include "mbed.h" |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 2 | #include "uvc.h" |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 3 | |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 4 | void uvc::wait(float s) |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 5 | { |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 6 | Timer t; |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 7 | t.start(); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 8 | while(t.read() < s) { |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 9 | poll(); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 10 | } |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 11 | } |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 12 | |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 13 | void uvc::wait_ms(int ms) |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 14 | { |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 15 | Timer t; |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 16 | t.start(); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 17 | while(t.read_ms() < ms) { |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 18 | poll(); |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 19 | } |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 20 | } |
| mbed_Cookbook_SE | 0:de03cbbcd0ff | 21 |