embox

Форк
0
191 строка · 3.7 Кб
1
package embox.driver.serial
2

3
abstract module stm32_usart_ops {
4

5
}
6

7
@BuildDepends(third_party.bsp.st_bsp_api)
8
module stm_usart_f1 extends stm32_usart_ops {
9

10
	@IncludeExport(path="drivers/serial", target_name="stm_usart.h")
11
	source "stm32_usart_conf_f1.h"
12

13
	source "stm_hal_msp.c"
14
	source "stm_usart.c"
15

16
	depends embox.driver.serial.core
17

18
	depends third_party.bsp.st_bsp_api
19
}
20

21
@BuildDepends(third_party.bsp.st_bsp_api)
22
module stm_usart_f2 extends stm32_usart_ops {
23

24
	@IncludeExport(path="drivers/serial", target_name="stm_usart.h")
25
	source "stm32_usart_conf_f2.h"
26

27
	source "stm_hal_msp.c"
28
	source "stm_usart.c"
29

30
	depends embox.driver.serial.core
31

32
	depends third_party.bsp.st_bsp_api
33
}
34

35
@BuildDepends(third_party.bsp.st_bsp_api)
36
module stm_usart_f3 extends stm32_usart_ops {
37

38
	@IncludeExport(path="drivers/serial", target_name="stm_usart.h")
39
	source "stm32_usart_conf_f3.h"
40

41
	source "stm_hal_msp.c"
42
	source "stm_usart.c"
43

44
	depends embox.driver.serial.core
45

46
	depends third_party.bsp.st_bsp_api
47
}
48

49
@BuildDepends(third_party.bsp.st_bsp_api)
50
module stm_usart_f4 extends stm32_usart_ops {
51

52
	@IncludeExport(path="drivers/serial", target_name="stm_usart.h")
53
	source "stm32_usart_conf_f4.h"
54

55
	source "stm_hal_msp.c"
56
	source "stm_usart.c"
57

58
	depends embox.driver.serial.core
59

60
	depends third_party.bsp.st_bsp_api
61
}
62

63
@BuildDepends(third_party.bsp.st_bsp_api)
64
module stm_usart_f7 extends stm32_usart_ops {
65

66
	@IncludeExport(path="drivers/serial", target_name="stm_usart.h")
67
	source "stm32_usart_conf_f7.h"
68

69
	source "stm_hal_msp.c"
70
	source "stm_usart.c"
71

72
	depends embox.driver.serial.core
73

74
	depends third_party.bsp.st_bsp_api
75
}
76

77
@BuildDepends(third_party.bsp.st_bsp_api)
78
module stm_usart_h7 extends stm32_usart_ops {
79

80
	@IncludeExport(path="drivers/serial", target_name="stm_usart.h")
81
	source "stm32_usart_conf_h7.h"
82

83
	source "stm_hal_msp.c"
84
	source "stm_usart.c"
85

86
	depends embox.driver.serial.core
87

88
	depends third_party.bsp.st_bsp_api
89
}
90

91
@BuildDepends(third_party.bsp.st_bsp_api)
92
module stm_usart_l1 extends stm32_usart_ops {
93

94
	@IncludeExport(path="drivers/serial", target_name="stm_usart.h")
95
	source "stm32_usart_conf_l1.h"
96

97
	source "stm_hal_msp.c"
98
	source "stm_usart.c"
99

100
	depends embox.driver.serial.core
101

102
	depends third_party.bsp.st_bsp_api
103
}
104

105
@BuildDepends(third_party.bsp.st_bsp_api)
106
module stm_usart_l4 extends stm32_usart_ops {
107

108
	@IncludeExport(path="drivers/serial", target_name="stm_usart.h")
109
	source "stm32_usart_conf_l4.h"
110

111
	source "stm_hal_msp.c"
112
	source "stm_usart.c"
113

114
	depends embox.driver.serial.core
115

116
	depends third_party.bsp.st_bsp_api
117
}
118

119
@BuildDepends(stm32_usart_ops)
120
module stm_diag extends embox.driver.serial.diag {
121
	option number baud_rate
122
	option number usartx
123
	
124
	source "stm_diag.c"
125
}
126

127
@BuildDepends(stm32_usart_ops)
128
module stm_ttyS0 {
129
	option number baud_rate
130
	option number usartx
131

132
	source "stm_ttyS0.c"
133
	option string ttys_name = "ttyS0"
134

135
	depends stm32_usart_ops
136
}
137

138
@BuildDepends(stm32_usart_ops)
139
module stm_ttyS1 {
140
	option number baud_rate
141
	option number usartx
142

143
	source "stm_ttyS1.c"
144
	option string ttys_name = "ttyS1"
145

146
	depends stm32_usart_ops
147
}
148

149
@BuildDepends(stm32_usart_ops)
150
module stm_ttyS2 {
151
	option number baud_rate
152
	option number usartx
153

154
	source "stm_ttyS2.c"
155
	option string ttys_name = "ttyS2"
156

157
	depends stm32_usart_ops
158
}
159

160
@BuildDepends(stm32_usart_ops)
161
module stm_ttyS3 {
162
	option number baud_rate
163
	option number usartx
164

165
	source "stm_ttyS3.c"
166
	option string ttys_name = "ttyS3"
167

168
	depends stm32_usart_ops
169
}
170
	
171
@BuildDepends(stm32_usart_ops)
172
module stm_ttyS4 {
173
	option number baud_rate
174
	option number usartx
175

176
	source "stm_ttyS4.c"
177
	option string ttys_name = "ttyS4"
178

179
	depends stm32_usart_ops
180
}
181

182
@BuildDepends(stm32_usart_ops)
183
module stm_ttyS5 {
184
	option number baud_rate
185
	option number usartx
186

187
	source "stm_ttyS5.c"
188
	option string ttys_name = "ttyS5"
189

190
	depends stm32_usart_ops
191
}
192

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.