• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* ----------------------------------------------------------------------------
2  * Copyright (c) Huawei Technologies Co., Ltd. 2015-2018. All rights reserved.
3  * Description: System time
4  * Redistribution and use in source and binary forms, with or without modification,
5  * are permitted provided that the following conditions are met:
6  * 1. Redistributions of source code must retain the above copyright notice, this list of
7  * conditions and the following disclaimer.
8  * 2. Redistributions in binary form must reproduce the above copyright notice, this list
9  * of conditions and the following disclaimer in the documentation and/or other materials
10  * provided with the distribution.
11  * 3. Neither the name of the copyright holder nor the names of its contributors may be used
12  * to endorse or promote products derived from this software without specific prior written
13  * permission.
14  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
16  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
18  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
21  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
22  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
23  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
24  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25  * --------------------------------------------------------------------------- */
26 
27 #ifndef _LOS_SYS_PRI_H
28 #define _LOS_SYS_PRI_H
29 
30 #include "los_base_pri.h"
31 #include "los_sys.h"
32 #include "los_tick_pri.h"
33 
34 #ifdef __cplusplus
35 #if __cplusplus
36 extern "C" {
37 #endif /* __cplusplus */
38 #endif /* __cplusplus */
39 
40 /**
41  * @ingroup los_sys
42  * Number of operable bits of a 32-bit operand
43  */
44 #define OS_SYS_MV_32_BIT       32
45 
46 /**
47  * @ingroup los_sys
48  * Number of milliseconds in one second.
49  */
50 #define OS_SYS_MS_PER_SECOND   1000
51 
52 /**
53  * @ingroup los_sys
54  * Number of microseconds in one second.
55  */
56 #define OS_SYS_US_PER_SECOND   1000000
57 
58 /**
59  * @ingroup los_sys
60  * The maximum length of name.
61  */
62 #define OS_SYS_APPVER_NAME_MAX 64
63 
64 /**
65  * @ingroup los_sys
66  * The magic word.
67  */
68 #define OS_SYS_MAGIC_WORD      0xAAAAAAAA
69 
70 /**
71  * @ingroup los_sys
72  * The initialization value of stack space.
73  */
74 #define OS_SYS_EMPTY_STACK     0xCACACACA
75 
76 #ifdef __cplusplus
77 #if __cplusplus
78 }
79 #endif /* __cplusplus */
80 #endif /* __cplusplus */
81 
82 #endif /* _LOS_SYS_PRI_H */
83