mbed(SerialHalfDuplex入り)
Fork of mbed by
wait.h@0:82220227f4fa, 2008-04-08 (annotated)
- Committer:
- simon.ford@mbed.co.uk
- Date:
- Tue Apr 08 14:12:21 2008 +0000
- Revision:
- 0:82220227f4fa
- Child:
- 1:6b7f447ca868
A first develoment release of the mbed libraries
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 | 0:82220227f4fa | 31 | #endif |