UCOS_TI_LM3S_Keil
 全部 结构体 文件 函数 变量 类型定义 宏定义 
bsp_ser.h
浏览该文件的文档.
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 * UART SERVICES
19 *
20 * LUMINARY MICRO LM3S1968 on the EK-LM3S1968
21 *
22 * Filename : bsp_ser.h
23 * Version : V1.02
24 * Programmer(s) : BAN
25 *********************************************************************************************************
26 */
27 
28 
29 /*
30 *********************************************************************************************************
31 * MODULE
32 *
33 * Note(s) : (1) This header file is protected from multiple pre-processor inclusion through use of the
34 * BSP present pre-processor macro definition.
35 *********************************************************************************************************
36 */
37 
38 #ifndef BSP_SER_PRESENT
39 #define BSP_SER_PRESENT
40 
41 
42 /*
43 *********************************************************************************************************
44 * EXTERNS
45 *********************************************************************************************************
46 */
47 
48 #ifdef BSP_SER_MODULE
49 #define BSP_SER_EXT
50 #else
51 #define BSP_SER_EXT extern
52 #endif
53 
54 
55 /*
56 *********************************************************************************************************
57 * INCLUDE FILES
58 *********************************************************************************************************
59 */
60 
61 #include <bsp.h>
62 #include <stdarg.h>
63 
64 
65 /*
66 *********************************************************************************************************
67 * DEFINES
68 *********************************************************************************************************
69 */
70 
71 #define BSP_SER_ID_UART0 0u
72 #define BSP_SER_ID_UART1 1u
73 #define BSP_SER_ID_UART2 2u
74 
75 
76 /*
77 *********************************************************************************************************
78 * DATA TYPES
79 *********************************************************************************************************
80 */
81 
82 
83 /*
84 *********************************************************************************************************
85 * GLOBAL VARIABLES
86 *********************************************************************************************************
87 */
88 
89 
90 /*
91 *********************************************************************************************************
92 * MACRO'S
93 *********************************************************************************************************
94 */
95 
96 
97 /*
98 *********************************************************************************************************
99 * FUNCTION PROTOTYPES
100 *********************************************************************************************************
101 */
102 
104  CPU_INT32U baudrate);
105 
106 
107 CPU_SIZE_T BSP_SerRd (CPU_DATA port_id,
108  void *p_dest,
109  CPU_SIZE_T size);
110 
112  void *p_src,
113  CPU_SIZE_T size);
114 
115 
116 CPU_SIZE_T BSP_SerWr (CPU_DATA port_id,
117  void *p_src,
118  CPU_SIZE_T size);
119 
121  CPU_CHAR *fmt,
122  ...);
123 
124 int BSP_Print (char const *fmt,
125  ...);
126 
127 /*
128 *********************************************************************************************************
129 * CONFIGURATION ERRORS
130 *********************************************************************************************************
131 */
132 
133 
134 
135 /*
136 *********************************************************************************************************
137 * MODULE END
138 *********************************************************************************************************
139 */
140 
141 #endif /* End of module include. */