embox
191 строка · 3.7 Кб
1package embox.driver.serial
2
3abstract module stm32_usart_ops {
4
5}
6
7@BuildDepends(third_party.bsp.st_bsp_api)
8module stm_usart_f1 extends stm32_usart_ops {
9
10@IncludeExport(path="drivers/serial", target_name="stm_usart.h")
11source "stm32_usart_conf_f1.h"
12
13source "stm_hal_msp.c"
14source "stm_usart.c"
15
16depends embox.driver.serial.core
17
18depends third_party.bsp.st_bsp_api
19}
20
21@BuildDepends(third_party.bsp.st_bsp_api)
22module stm_usart_f2 extends stm32_usart_ops {
23
24@IncludeExport(path="drivers/serial", target_name="stm_usart.h")
25source "stm32_usart_conf_f2.h"
26
27source "stm_hal_msp.c"
28source "stm_usart.c"
29
30depends embox.driver.serial.core
31
32depends third_party.bsp.st_bsp_api
33}
34
35@BuildDepends(third_party.bsp.st_bsp_api)
36module stm_usart_f3 extends stm32_usart_ops {
37
38@IncludeExport(path="drivers/serial", target_name="stm_usart.h")
39source "stm32_usart_conf_f3.h"
40
41source "stm_hal_msp.c"
42source "stm_usart.c"
43
44depends embox.driver.serial.core
45
46depends third_party.bsp.st_bsp_api
47}
48
49@BuildDepends(third_party.bsp.st_bsp_api)
50module stm_usart_f4 extends stm32_usart_ops {
51
52@IncludeExport(path="drivers/serial", target_name="stm_usart.h")
53source "stm32_usart_conf_f4.h"
54
55source "stm_hal_msp.c"
56source "stm_usart.c"
57
58depends embox.driver.serial.core
59
60depends third_party.bsp.st_bsp_api
61}
62
63@BuildDepends(third_party.bsp.st_bsp_api)
64module stm_usart_f7 extends stm32_usart_ops {
65
66@IncludeExport(path="drivers/serial", target_name="stm_usart.h")
67source "stm32_usart_conf_f7.h"
68
69source "stm_hal_msp.c"
70source "stm_usart.c"
71
72depends embox.driver.serial.core
73
74depends third_party.bsp.st_bsp_api
75}
76
77@BuildDepends(third_party.bsp.st_bsp_api)
78module stm_usart_h7 extends stm32_usart_ops {
79
80@IncludeExport(path="drivers/serial", target_name="stm_usart.h")
81source "stm32_usart_conf_h7.h"
82
83source "stm_hal_msp.c"
84source "stm_usart.c"
85
86depends embox.driver.serial.core
87
88depends third_party.bsp.st_bsp_api
89}
90
91@BuildDepends(third_party.bsp.st_bsp_api)
92module stm_usart_l1 extends stm32_usart_ops {
93
94@IncludeExport(path="drivers/serial", target_name="stm_usart.h")
95source "stm32_usart_conf_l1.h"
96
97source "stm_hal_msp.c"
98source "stm_usart.c"
99
100depends embox.driver.serial.core
101
102depends third_party.bsp.st_bsp_api
103}
104
105@BuildDepends(third_party.bsp.st_bsp_api)
106module stm_usart_l4 extends stm32_usart_ops {
107
108@IncludeExport(path="drivers/serial", target_name="stm_usart.h")
109source "stm32_usart_conf_l4.h"
110
111source "stm_hal_msp.c"
112source "stm_usart.c"
113
114depends embox.driver.serial.core
115
116depends third_party.bsp.st_bsp_api
117}
118
119@BuildDepends(stm32_usart_ops)
120module stm_diag extends embox.driver.serial.diag {
121option number baud_rate
122option number usartx
123
124source "stm_diag.c"
125}
126
127@BuildDepends(stm32_usart_ops)
128module stm_ttyS0 {
129option number baud_rate
130option number usartx
131
132source "stm_ttyS0.c"
133option string ttys_name = "ttyS0"
134
135depends stm32_usart_ops
136}
137
138@BuildDepends(stm32_usart_ops)
139module stm_ttyS1 {
140option number baud_rate
141option number usartx
142
143source "stm_ttyS1.c"
144option string ttys_name = "ttyS1"
145
146depends stm32_usart_ops
147}
148
149@BuildDepends(stm32_usart_ops)
150module stm_ttyS2 {
151option number baud_rate
152option number usartx
153
154source "stm_ttyS2.c"
155option string ttys_name = "ttyS2"
156
157depends stm32_usart_ops
158}
159
160@BuildDepends(stm32_usart_ops)
161module stm_ttyS3 {
162option number baud_rate
163option number usartx
164
165source "stm_ttyS3.c"
166option string ttys_name = "ttyS3"
167
168depends stm32_usart_ops
169}
170
171@BuildDepends(stm32_usart_ops)
172module stm_ttyS4 {
173option number baud_rate
174option number usartx
175
176source "stm_ttyS4.c"
177option string ttys_name = "ttyS4"
178
179depends stm32_usart_ops
180}
181
182@BuildDepends(stm32_usart_ops)
183module stm_ttyS5 {
184option number baud_rate
185option number usartx
186
187source "stm_ttyS5.c"
188option string ttys_name = "ttyS5"
189
190depends stm32_usart_ops
191}
192