-
Notifications
You must be signed in to change notification settings - Fork 33
/
Kconfig
112 lines (95 loc) · 2.83 KB
/
Kconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
menu "Zigbee Network Co-processor"
choice NCP_BUS_MODE
bool "Host Connection Mode"
default NCP_BUS_MODE_UART
help
Select which mode does the device connection with the host, support UART/SPI/USB.
config NCP_BUS_MODE_UART
bool "UART"
config NCP_BUS_MODE_SPI
bool "SPI"
config NCP_BUS_MODE_USB
bool "USB"
endchoice
config NCP_BUS_MODE
int
default 0 if NCP_BUS_MODE_UART
default 1 if NCP_BUS_MODE_SPI
default 2 if NCP_BUS_MODE_USB
if NCP_BUS_MODE_UART
config NCP_BUS_UART_BAUD_RATE
int
default 115200
range 9600 891200
prompt "UART baud rate"
help
Set UART baud rate.
config NCP_BUS_UART_BYTE_SIZE
int
default 3
range 0 3
prompt "UART word length"
help
Set UART word length are defined as follows:
- 0x0: 5bits
- 0x1: 6bits
- 0x2: 7bits
- 0x3: 8bits
config NCP_BUS_UART_STOP_BITS
int
default 1
range 1 3
prompt "UART stop bits"
help
Set UART stop bits are defined as follows:
- 0x1, 1bit
- 0x2, 1.5bits
- 0x3, 2bits
config NCP_BUS_UART_FLOW_CONTROL
int
default 0
range 0 3
prompt "UART HW flow control mode"
help
Set UART HW flow control mode are defined as follows:
- 0x0, disable hardware flow control
- 0x1, enable RX hardware flow control (rts)
- 0x2, enable TX hardware flow control (cts)
- 0x3, enable hardware flow control
config NCP_BUS_UART_NUM
int
range 0 2
default 1
prompt "UART number"
help
Set UART number.
config NCP_BUS_UART_RX_PIN
int
default -1
range -1 30
prompt "UART RX pin"
help
Set UART RX pin.
config NCP_BUS_UART_TX_PIN
int
default -1
range -1 30
prompt "UART TX pin"
help
Set UART TX pin.
config NCP_BUS_UART_RTS_PIN
int
default -1
range -1 30
prompt "UART rts pin"
help
Set UART rts pin.
config NCP_BUS_UART_CTS_PIN
int
default -1
range -1 30
prompt "UART cts pin"
help
Set UART cts pin.
endif # NCP_BUS_MODE_UART
endmenu