@@ -3,27 +3,27 @@ menu "Hardware Drivers"
33config BSP_USING_QSPIFLASH
44 bool
55 default y
6-
6+
77config SOC_IMXRT1021DAG5A
8- bool
8+ bool
99 select SOC_MIMXRT1020_SERIES
10- select RT_USING_COMPONENTS_INIT
10+ select RT_USING_COMPONENTS_INIT
1111 select RT_USING_USER_MAIN
12- select SOC_IMXRT1020_SERIES
12+ select SOC_IMXRT1020_SERIES
1313 default y
1414
1515
1616menu "On-chip Peripheral Drivers"
1717
18- config BSP_USING_DMA
18+ config BSP_USING_DMA
1919 bool "Enable DMA"
2020 default n
2121
2222 config BSP_USING_GPIO
2323 bool "Enable GPIO"
2424 select RT_USING_PIN
2525 default y
26-
26+
2727 menuconfig BSP_USING_CAN
2828 bool "Enable CAN"
2929 select RT_USING_CAN
@@ -39,7 +39,7 @@ menu "On-chip Peripheral Drivers"
3939 bool "Enable UART"
4040 select RT_USING_SERIAL
4141 default y
42-
42+
4343 if BSP_USING_LPUART
4444 config BSP_USING_LPUART1
4545 bool "Enable LPUART1"
@@ -69,19 +69,19 @@ menu "On-chip Peripheral Drivers"
6969 int "Set LPUART1 TX DMA channel (0-32)"
7070 default 1
7171 endif
72- menuconfig BSP_USING_HWTIMER
73- bool "Enable GPT"
74- default n
75- select RT_USING_HWTIMER
76- if BSP_USING_TIM
77- config BSP_USING_HWTIMER1
78- bool "Enable GPT1"
79- default n
80-
81- config BSP_USING_HWTIMER2
82- bool "Enable GPT2"
83- default n
84- endif
72+ menuconfig BSP_USING_HWTIMER
73+ bool "Enable GPT"
74+ default n
75+ select RT_USING_HWTIMER
76+ if BSP_USING_TIM
77+ config BSP_USING_HWTIMER1
78+ bool "Enable GPT1"
79+ default n
80+
81+ config BSP_USING_HWTIMER2
82+ bool "Enable GPT2"
83+ default n
84+ endif
8585 menuconfig BSP_USING_PWM
8686 bool "Enable PWM"
8787 default n
@@ -138,7 +138,7 @@ menu "On-chip Peripheral Drivers"
138138 config BSP_USING_ADC1
139139 bool "Enable ADC1"
140140 default n
141- endif
141+ endif
142142 config BSP_USING_RTC
143143 bool "Enable RTC"
144144 select RT_USING_RTC
@@ -147,47 +147,47 @@ menu "On-chip Peripheral Drivers"
147147endmenu
148148
149149menu "Onboard Peripheral Drivers"
150- config BSP_USING_RGB
151- bool "Enable RGB LED (PWM1_CH3A, PWM4_CH0A and PWM4_CH1A)"
152- select BSP_USING_PWM1
153- select BSP_USING_PWM4
154- select BSP_USING_PWM1_CH3
155- select BSP_USING_PWM4_CH0
156- select BSP_USING_PWM4_CH1
157- default n
158-
159- config BSP_USING_MPU6050
160- bool "Enable MPU6050 (I2C1:J11 --> SCL; K11 --> SDA)"
161- select BSP_USING_I2C1
162- select PKG_USING_MPU6XXX
163- default n
164-
165- menuconfig BSP_USING_AP3216C
166- bool "Enable AP3216C (I2C1:J11 --> SCL; K11 --> SDA)"
167- select BSP_USING_I2C1
168- select PKG_USING_AP3216C
169- default n
170- if BSP_USING_AP3216C
171- config AP3216C_USING_HW_INT
172- bool "Enable interrupt"
173- default n
174- endif
175-
176- config BSP_USING_EEPROM
177- bool "Enable I2C EEPROM (I2C1:J11 --> SCL; K11 --> SDA)"
178- select BSP_USING_I2C1
179- select PKG_USING_AT24CXX
180- default n
181-
182- config BSP_USING_RS232
183- bool "Enable RS232"
184- select BSP_USING_LPUART2
185- default n
186-
187- config BSP_USING_RS485
188- bool "Enable RS485"
189- select BSP_USING_LPUART5
190- default n
150+ config BSP_USING_RGB
151+ bool "Enable RGB LED (PWM1_CH3A, PWM4_CH0A and PWM4_CH1A)"
152+ select BSP_USING_PWM1
153+ select BSP_USING_PWM4
154+ select BSP_USING_PWM1_CH3
155+ select BSP_USING_PWM4_CH0
156+ select BSP_USING_PWM4_CH1
157+ default n
158+
159+ config BSP_USING_MPU6050
160+ bool "Enable MPU6050 (I2C1:J11 --> SCL; K11 --> SDA)"
161+ select BSP_USING_I2C1
162+ select PKG_USING_MPU6XXX
163+ default n
164+
165+ menuconfig BSP_USING_AP3216C
166+ bool "Enable AP3216C (I2C1:J11 --> SCL; K11 --> SDA)"
167+ select BSP_USING_I2C1
168+ select PKG_USING_AP3216C
169+ default n
170+ if BSP_USING_AP3216C
171+ config AP3216C_USING_HW_INT
172+ bool "Enable interrupt"
173+ default n
174+ endif
175+
176+ config BSP_USING_EEPROM
177+ bool "Enable I2C EEPROM (I2C1:J11 --> SCL; K11 --> SDA)"
178+ select BSP_USING_I2C1
179+ select PKG_USING_AT24CXX
180+ default n
181+
182+ config BSP_USING_RS232
183+ bool "Enable RS232"
184+ select BSP_USING_LPUART2
185+ default n
186+
187+ config BSP_USING_RS485
188+ bool "Enable RS485"
189+ select BSP_USING_LPUART5
190+ default n
191191
192192endmenu
193193
0 commit comments