UCOS_TI_LM3S_Keil
首页
相关页面
结构体
文件
文件列表
全局定义
全部
结构体
文件
函数
变量
类型定义
宏定义
页
bsp.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
*
19
* LUMINARY MICRO LM3S1968 on the EK-LM3S1968
20
*
21
* Filename : bsp.h
22
* Version : V1.02
23
* Programmer(s) : BAN
24
*********************************************************************************************************
25
*/
26
27
28
/*
29
*********************************************************************************************************
30
* MODULE
31
*
32
* Note(s) : (1) This header file is protected from multiple pre-processor inclusion through use of the
33
* BSP present pre-processor macro definition.
34
*********************************************************************************************************
35
*/
36
37
#ifndef BSP_PRESENT
38
#define BSP_PRESENT
39
40
41
/*
42
*********************************************************************************************************
43
* EXTERNS
44
*********************************************************************************************************
45
*/
46
47
#ifdef BSP_MODULE
48
#define BSP_EXT
49
#else
50
#define BSP_EXT extern
51
#endif
52
53
54
/*
55
*********************************************************************************************************
56
* INCLUDE FILES
57
*********************************************************************************************************
58
*/
59
60
#include <
cpu.h
>
61
#include <
cpu_core.h
>
62
63
//comment by mim, i think the bsp should use uc_lib, since the relation is compx, the knownlege is poor
64
//#include <lib_def.h>
65
//#include <lib_mem.h>
66
//#include <lib_str.h>
67
68
//#include <app_cfg.h>
69
70
#include <
bsp_int.h
>
71
#include <
bsp_ser.h
>
72
#include <
bsp_os.h
>
73
74
#include <hw_ints.h>
75
#include <hw_memmap.h>
76
#include <hw_types.h>
77
78
#include <gpio.h>
79
#include <interrupt.h>
80
#include <sysctl.h>
81
#include <uart.h>
82
83
#include <rit128x96x4.h>
84
85
86
/*
87
*********************************************************************************************************
88
* DEFINES
89
*********************************************************************************************************
90
*/
91
92
93
/*
94
*********************************************************************************************************
95
* DATA TYPES
96
*********************************************************************************************************
97
*/
98
99
100
/*
101
*********************************************************************************************************
102
* GLOBAL VARIABLES
103
*********************************************************************************************************
104
*/
105
106
107
/*
108
*********************************************************************************************************
109
* MACRO'S
110
*********************************************************************************************************
111
*/
112
113
114
/*
115
*********************************************************************************************************
116
* FUNCTION PROTOTYPES
117
*********************************************************************************************************
118
*/
119
120
void
BSP_Init
(
void
);
121
122
CPU_INT32U
BSP_CPU_ClkFreq
(
void
);
123
124
/*
125
*********************************************************************************************************
126
* LED SERVICES
127
*********************************************************************************************************
128
*/
129
130
void
BSP_LED_Off
(
CPU_INT08U
led);
131
132
void
BSP_LED_On
(
CPU_INT08U
led);
133
134
void
BSP_LED_Toggle
(
CPU_INT08U
led);
135
136
/*
137
*********************************************************************************************************
138
* PUSH BUTTON SERVICES
139
*********************************************************************************************************
140
*/
141
142
CPU_BOOLEAN
BSP_PB_GetStatus
(
CPU_INT08U
pb);
143
144
145
/*
146
*********************************************************************************************************
147
* CONFIGURATION ERRORS
148
*********************************************************************************************************
149
*/
150
151
152
/*
153
*********************************************************************************************************
154
* MODULE END
155
*********************************************************************************************************
156
*/
157
158
#endif
/* End of module include. */
UCOS_TI_LM3S_Keil
BSP
bsp.h
生成于 2013年 十月 1日 星期二 12:18:39 , 为 UCOS_TI_LM3S_Keil使用
1.8.4