embox
55 строк · 1.1 Кб
1package embox.driver.serial
2
3module stm_usart_l0x0 extends embox.driver.serial.diag {
4option number baud_rate
5option number usartx=2
6
7option number port_tx
8option number port_rx
9option number pin_tx
10option number pin_rx
11option number pin_tx_af
12option number pin_rx_af
13
14option number usart2_irq=28
15
16source "stm32_usart_conf_l0x0.h"
17source "stm_usart_l0x0.c"
18
19depends embox.driver.serial.core
20//depends embox.driver.serial.diag
21}
22
23
24module stm_usart_f0 extends embox.driver.serial.diag {
25option number baud_rate
26option number usartx=1
27
28option number port_tx
29option number port_rx
30option number pin_tx
31option number pin_rx
32option number pin_tx_af
33option number pin_rx_af
34
35option number usart1_irq=27
36option number usart2_irq=28
37option number usart3_4_5_6_irq=29
38
39source "stm32_usart_conf_f0.h"
40source "stm_usart_f0.c"
41
42depends embox.driver.serial.core
43//depends embox.driver.serial.diag
44}
45
46module stm32_usart_vl extends embox.driver.serial.diag {
47option number baud_rate
48/*option boolean hw_flow = false*/
49
50source "stm32_usart_vl.c"
51
52depends embox.driver.gpio.stm32_vl
53depends core
54//depends diag
55}
56