![](/media/cache/profiles/bf201d5407a6509fa536afc4b380577e.50x50_q85.jpg)
BLE demo for mbed Ported RunningElectronics's SBDBT firmware for BLE. It can communicate with iOS
Dependencies: FatFileSystem mbed
Fork of BTstack by
uvc/uvcsub.cpp@6:cf06ba884429, 2013-02-20 (annotated)
- Committer:
- todotani
- Date:
- Wed Feb 20 14:18:38 2013 +0000
- Revision:
- 6:cf06ba884429
- Parent:
- 0:1ed23ab1345f
Change tick timer to 1ms. Change attribute 0xFFF1 as read of DigitalIn p5
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
va009039 | 0:1ed23ab1345f | 1 | #include "mbed.h" |
va009039 | 0:1ed23ab1345f | 2 | #include "uvc.h" |
va009039 | 0:1ed23ab1345f | 3 | |
va009039 | 0:1ed23ab1345f | 4 | void uvc::wait(float s) |
va009039 | 0:1ed23ab1345f | 5 | { |
va009039 | 0:1ed23ab1345f | 6 | Timer t; |
va009039 | 0:1ed23ab1345f | 7 | t.start(); |
va009039 | 0:1ed23ab1345f | 8 | while(t.read() < s) { |
va009039 | 0:1ed23ab1345f | 9 | poll(); |
va009039 | 0:1ed23ab1345f | 10 | } |
va009039 | 0:1ed23ab1345f | 11 | } |
va009039 | 0:1ed23ab1345f | 12 | |
va009039 | 0:1ed23ab1345f | 13 | void uvc::wait_ms(int ms) |
va009039 | 0:1ed23ab1345f | 14 | { |
va009039 | 0:1ed23ab1345f | 15 | Timer t; |
va009039 | 0:1ed23ab1345f | 16 | t.start(); |
va009039 | 0:1ed23ab1345f | 17 | while(t.read_ms() < ms) { |
va009039 | 0:1ed23ab1345f | 18 | poll(); |
va009039 | 0:1ed23ab1345f | 19 | } |
va009039 | 0:1ed23ab1345f | 20 | } |
va009039 | 0:1ed23ab1345f | 21 |