UCOS_TI_LM3S_Keil
 全部 结构体 文件 函数 变量 类型定义 宏定义 
bsp_os.c
浏览该文件的文档.
1 /*
2 *********************************************************************************************************
3 * MICIRUM BOARD SUPPORT PACKAGE
4 *
5 * (c) Copyright 2009; Micrium, Inc.; Weston, FL
6 *
7 * All rights reserved. Protected by international copyright laws.
8 * Knowledge of the source code may not be used to write a similar
9 * product. This file may only be used in accordance with a license
10 * and should not be redistributed in any way.
11 *********************************************************************************************************
12 */
13 
14 /*
15 *********************************************************************************************************
16 *
17 * BOARD SUPPORT PACKAGE
18 * OS SERVICES
19 *
20 * LUMINARY MICRO LM3S1968 on the EK-LM3S1968
21 *
22 * Filename : bsp_os.c
23 * Version : V1.02
24 * Programmer(s) : BAN
25 *********************************************************************************************************
26 */
27 
28 
29 /*
30 *********************************************************************************************************
31 * INCLUDE FILES
32 *********************************************************************************************************
33 */
34 
35 #define BSP_OS_MODULE
36 #include <bsp.h>
37 
38 
39 /*
40 *********************************************************************************************************
41 * LOCAL DEFINES
42 *********************************************************************************************************
43 */
44 
45 
46 /*
47 *********************************************************************************************************
48 * LOCAL CONSTANTS
49 *********************************************************************************************************
50 */
51 
52 
53 /*
54 *********************************************************************************************************
55 * LOCAL DATA TYPES
56 *********************************************************************************************************
57 */
58 
59 
60 /*
61 *********************************************************************************************************
62 * LOCAL TABLES
63 *********************************************************************************************************
64 */
65 
66 
67 /*
68 *********************************************************************************************************
69 * LOCAL GLOBAL VARIABLES
70 *********************************************************************************************************
71 */
72 
73 
74 /*
75 *********************************************************************************************************
76 * LOCAL FUNCTION PROTOTYPES
77 *********************************************************************************************************
78 */
79 
80 
81 /*
82 *********************************************************************************************************
83 * LOCAL CONFIGURATION ERRORS
84 *********************************************************************************************************
85 */
86 
87 
88 /*
89 *********************************************************************************************************
90 * BSP_OS_Dly_ms()
91 *
92 * Description : Delay for specified time, in milliseconds.
93 *
94 * Argument(s) : ms Time delay value, in milliseconds.
95 *
96 * Return(s) : none.
97 *
98 * Caller(s) : various.
99 *
100 * Note(s) : none.
101 *********************************************************************************************************
102 */
103 
105 {
106  CPU_INT32U dly_ticks;
107 
108 
109  dly_ticks = (CPU_INT32U)(((((CPU_INT32U)ms * OS_TICKS_PER_SEC) + (DEF_TIME_NBR_mS_PER_SEC - 1u)) / DEF_TIME_NBR_mS_PER_SEC) + 1u);
110 
111  OSTimeDly(dly_ticks);
112 }