source: asp3_tinet_ecnl_arm/trunk/asp3_dcre/mbed/platform/mbed_wait_api.h@ 352

Last change on this file since 352 was 352, checked in by coas-nagasima, 6 years ago

arm向けASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 1.5 KB
Line 
1
2/** \addtogroup platform */
3/** @{*/
4/* mbed Microcontroller Library
5 * Copyright (c) 2006-2013 ARM Limited
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19#ifndef MBED_WAIT_API_H
20#define MBED_WAIT_API_H
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26/** Generic wait functions.
27 *
28 * These provide simple NOP type wait capabilities.
29 *
30 * Example:
31 * @code
32 * #include "mbed.h"
33 *
34 * DigitalOut heartbeat(LED1);
35 *
36 * int main() {
37 * while (1) {
38 * heartbeat = 1;
39 * wait(0.5);
40 * heartbeat = 0;
41 * wait(0.5);
42 * }
43 * }
44 */
45
46/** Waits for a number of seconds, with microsecond resolution (within
47 * the accuracy of single precision floating point).
48 *
49 * @param s number of seconds to wait
50 */
51void wait(float s);
52
53/** Waits a number of milliseconds.
54 *
55 * @param ms the whole number of milliseconds to wait
56 */
57void wait_ms(int ms);
58
59/** Waits a number of microseconds.
60 *
61 * @param us the whole number of microseconds to wait
62 */
63void wait_us(int us);
64
65#ifdef __cplusplus
66}
67#endif
68
69#endif
70
71/** @}*/
Note: See TracBrowser for help on using the repository browser.