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.
Dependents: NervousPuppySprintOne NervousPuppySprint2602 Robot WarehouseBot1 ... more
Fork of mbed by
wait.h@10:fcb9359f0959, 2009-05-14 (annotated)
- Committer:
- simon.ford@mbed.co.uk
- Date:
- Thu May 14 14:44:00 2009 +0000
- Revision:
- 10:fcb9359f0959
- Parent:
- 1:6b7f447ca868
Minor fix: Modified rtc time() functions to be in std namespace
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| simon.ford@mbed.co.uk | 0:82220227f4fa | 1 | /* mbed Microcontroller Library - wait |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 2 | * Copyright (c) 2007-2008, sford |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 3 | */ |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 4 | |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 5 | #ifndef MBED_WAIT_H |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 6 | #define MBED_WAIT_H |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 7 | |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 8 | namespace mbed { |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 9 | |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 10 | /* Section: wait |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 11 | * Useful waiting around functions |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 12 | */ |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 13 | |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 14 | /* Function: wait |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 15 | * Wait the specified number of seconds (float) |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 16 | */ |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 17 | void wait(float s); |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 18 | |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 19 | /* Function: wait_ms |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 20 | * Wait the specified number of milli-seconds (int) |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 21 | */ |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 22 | void wait_ms(int ms); |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 23 | |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 24 | /* Function: wait_us |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 25 | * Wait the specified number of micro-seconds (int) |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 26 | */ |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 27 | void wait_us(int us); |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 28 | |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 29 | } |
| simon.ford@mbed.co.uk | 0:82220227f4fa | 30 | |
| simon.ford@mbed.co.uk | 1:6b7f447ca868 | 31 | #endif |
| simon.ford@mbed.co.uk | 1:6b7f447ca868 | 32 |
