-
Notifications
You must be signed in to change notification settings - Fork 20
/
kcnf
187 lines (136 loc) · 3.34 KB
/
kcnf
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
config DEBUGGING_VERBOSITY
int "Debugging level (See help)"
help
See README.compiling for detals on how to enable debug
Without early console enabled this will affect nothing
if !ROLE_USERSPACE && !ARCH_NATIVE
comment "Userspace app requires ARCH_NATIVE"
endif
if !ROLE_UISP && !ARCH_AVR
comment "uISP/vUSB app requires ARCH_AVR"
endif
choice
prompt "Target"
config ROLE_SLAVE
bool "Bootloader for device"
config ROLE_UISP
bool "uISP/vUSB USB dongle"
depends on ARCH_AVR
config ROLE_SENDER
bool "Dummy packet flooder"
depends on ARCH_AVR
config ROLE_LISTENER
bool "Packet listener"
depends on ARCH_AVR
config ROLE_USERSPACE
bool "Native app"
depends on ARCH_NATIVE
endchoice
if ROLE_UISP
config USB_CFG_SERIAL_NUMBER
string "Device identifier"
endif
menu "Wireless settings"
depends on ROLE_SLAVE || ROLE_SENDER || ROLE_LISTENER
config RF_CHANNEL
int "RF Channel"
default 76
config RF_ADDR_0
hex "RF Device Adress byte 0"
range 0 0xff
config RF_ADDR_1
hex "RF Device Adress byte 1"
range 0 0xff
config RF_ADDR_2
hex "RF Device Adress byte 2"
range 0 0xff
config RF_ADDR_3
hex "RF Device Adress byte 3"
range 0 0xff
config RF_ADDR_4
hex "RF Device Adress byte 4"
range 0 0xff
choice
prompt "RF Data rate"
config RF_RATE_250KBPS
bool "250KBPS"
config RF_RATE_1MBPS
bool "1MBPS"
config RF_RATE_2MBPS
bool "2MBPS"
endchoice
endmenu
if ARCH_AVR
source src/avr/kcnf
endif
if ROLE_SLAVE
config SLAVE_ID
string "Device Name"
default "rfboot"
config HAVE_DEADTIME
bool "Reboot on stalled outgoing transfers (see help)"
default n
help
With this option on the device will reboot if
the outgoing transfer get stuck for more than N seconds.
e.g. The host program gets interrupted.
Disabling this saves a few bytes.
Consider using hardware watchdog instead
config DEADTIME_TIMEOUT
int "Deadtime timeout, seconds"
default 5
depends on HAVE_DEADTIME
config WDT_ENABLE
bool "Enable hardware watchdog on start"
depends on ARCH_AVR
config WDT_DISABLE
bool "Disable hadrware watchdog when executing application"
depends on ARCH_AVR
choice
prompt "Bootloader leave condition"
config BOOTCOND_FOREVER
bool "Stay in bootloader until host instructs to boot"
config BOOTCOND_TIMED
depends on !ARCH_AVR
bool "Stay in bootloader for a specified amount of time"
config BOOTCOND_TIMED_AVR
bool "Stay in bootloader for a specified amount of time (AVR)"
depends on ARCH_AVR
endchoice
if BOOTCOND_TIMED || BOOTCOND_TIMED_AVR
config DEFAULT_BOOTPART
string "Default boot partition"
default "flash"
config BOOTCOND_TIMEOUT
int "Timeout in ms"
help
If no commands are received for this time
the bootloader will start user application
A valid 'hello' from remote target will stop
this timer.
endif
menuconfig PART_DUMMY
bool "Dummy partition (for benchmarks)"
if PART_DUMMY
config DUMMYPART_SIZE
int "Size"
default 131072
config DUMMYPART_IOSIZE
int "IO Size"
default 16
config DUMMYPART_PAD
int "Padding"
default 0
endif
menu "Project-specific hacks"
source "src/hacks/kcnf"
endmenu
endif
if ROLE_UISP
config HW_BUFFER_SIZE
int "SRAM buffer size (in packets)"
default 16
help
This value must be power of 2. e.g.
1, 2, 4, 8, 16, etc..
endif