embox

Форк
0
55 строк · 1.1 Кб
1
package embox.driver.serial
2

3
module stm_usart_l0x0 extends embox.driver.serial.diag {
4
	option number baud_rate
5
	option number usartx=2
6

7
	option number port_tx
8
	option number port_rx
9
	option number pin_tx
10
	option number pin_rx
11
	option number pin_tx_af
12
	option number pin_rx_af
13

14
	option number usart2_irq=28
15

16
	source "stm32_usart_conf_l0x0.h"
17
	source "stm_usart_l0x0.c"
18

19
	depends embox.driver.serial.core
20
	//depends embox.driver.serial.diag
21
}
22

23

24
module stm_usart_f0 extends embox.driver.serial.diag {
25
	option number baud_rate
26
	option number usartx=1
27

28
	option number port_tx
29
	option number port_rx
30
	option number pin_tx
31
	option number pin_rx
32
	option number pin_tx_af
33
	option number pin_rx_af
34

35
	option number usart1_irq=27
36
	option number usart2_irq=28
37
	option number usart3_4_5_6_irq=29
38

39
	source "stm32_usart_conf_f0.h"
40
	source "stm_usart_f0.c"
41

42
	depends embox.driver.serial.core
43
	//depends embox.driver.serial.diag
44
}
45

46
module stm32_usart_vl extends embox.driver.serial.diag {
47
	option number baud_rate
48
	/*option boolean hw_flow = false*/
49

50
	source "stm32_usart_vl.c"
51

52
	depends embox.driver.gpio.stm32_vl
53
	depends core
54
	//depends diag
55
}
56

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

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

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

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