-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathKconfig
178 lines (160 loc) · 3.98 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
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
mainmenu "CANopen Bootloader Configuration"
config C2000_UID_LSW_ADDR
hex
default 0x000900
config C2000_UID_MSW_ADDR
hex
default 0x000901
config BOOTLOADER_RUN_VAL
hex
default 0x364C71F3
config BOOTLOADER_JUMP_VAL
hex
default 0xD489B4BB
config APPLICATION_RUN_VAL
hex
default 0x248B2ADC
config BOOT_FLAG_ADDRESS
hex
default 0x00FFFC
help
Refer to linker memory definition of BOOT_FLAG
choice
prompt "Core Oscillator"
default CRYSTAL_30MHZ
config CRYSTAL_20MHZ
bool "20MHz"
config CRYSTAL_30MHZ
bool "30MHz"
endchoice
choice
prompt "Core Frequency"
default CORE_FREQ_150MHZ
config CORE_FREQ_150MHZ
bool "150MHz"
config CORE_FREQ_100MHZ
depends on !CRYSTAL_30MHZ
bool "100MHz"
endchoice
menu "CAN Configuration"
choice
prompt "CAN Peripheral"
default USE_CAN_A
config USE_CAN_A
bool "CAN-A"
config USE_CAN_B
bool "CAN-B"
endchoice
choice
prompt "CAN-TX IO"
config CAN_TX_GPIO19
depends on USE_CAN_A
bool "GPIO19"
config CAN_TX_GPIO31
depends on USE_CAN_A
bool "GPIO31"
config CAN_TX_GPIO16
depends on USE_CAN_B
bool "GPIO16"
endchoice
choice
prompt "CAN-RX IO"
config CAN_RX_GPIO18
depends on USE_CAN_A
bool "GPIO18"
config CAN_RX_GPIO30
depends on USE_CAN_A
bool "GPIO30"
config CAN_RX_GPIO17
depends on USE_CAN_B
bool "GPIO17"
endchoice
endmenu #"CAN Configuration"
config NODE_ID
hex "Node ID"
range 0x01 0xFF
default 0xFF
choice
prompt "Baud rate"
default BITRATE_1000KBPS
config BITRATE_1000KBPS
bool "1000 kbps"
config BITRATE_800KBPS
bool "800 kbps"
config BITRATE_500KBPS
bool "500 kbps"
config BITRATE_250KBPS
bool "250 kbps"
config BITRATE_125KBPS
bool "125 kbps"
config BITRATE_50KBPS
bool "50 kbps"
config BITRATE_20KBPS
bool "20 kbps"
config BITRATE_10KBPS
bool "10 kbps"
endchoice
config BITRATE
int
default 1000 if BITRATE_1000KBPS
default 800 if BITRATE_800KBPS
default 500 if BITRATE_500KBPS
default 250 if BITRATE_250KBPS
default 125 if BITRATE_125KBPS
default 50 if BITRATE_50KBPS
default 20 if BITRATE_20KBPS
default 10 if BITRATE_10KBPS
menuconfig HAS_EEPROM
bool "EEPROM"
default n
if HAS_EEPROM
choice
prompt "EEPROM Size"
config EEPROM_SIZE_32KB
bool "32kB"
endchoice
config EEPROM_SIZE
int
default 32768 if EEPROM_SIZE_32KB
choice
prompt "Page Size"
config EEPROM_PAGE_SIZE_64
bool "64"
endchoice
config EEPROM_PAGE_SIZE
int
default 64 if EEPROM_PAGE_SIZE_64
config EEPROM_DEV_ADDR
hex "EEPROM I2C Address"
default 0x50
config I2C_FIFO_BUFFER_SIZE
int
default 16
help
This is the I2C FIFO buffer size
config LSS_ENTRY_SIGNATURE_ADDR
hex "LSS Entry Signature Address"
default 0x0000
config LSS_DATA_BLOCK_ADDR
hex "LSS Data Block Address"
default 0x0040
endif # HAS_EEPROM
menuconfig CANOPEN_LED
bool "LED indicator"
default n
if CANOPEN_LED
config CANOPEN_LED_RED_GPIO
int "Red LED GPIO"
range 0 87
default 31
config CANOPEN_LED_RED_ACTIVE_HIGH
bool "Red LED Active High"
default n
config CANOPEN_LED_GREEN_GPIO
int "Green LED GPIO"
range 0 87
default 34
config CANOPEN_LED_GREEN_ACTIVE_HIGH
bool "Green LED Active High"
default n
endif # CANOPEN_LED