1.新增Kconfig。

This commit is contained in:
MacRsh
2023-11-27 23:17:23 +08:00
parent 416a1f9714
commit e1b040b09c
5 changed files with 613 additions and 0 deletions

View File

@@ -0,0 +1,203 @@
menu "Board configure"
menu "ADC"
config MR_USING_ADC1
bool "Enable ADC1 driver"
default n
config MR_USING_ADC2
bool "Enable ADC2 driver"
default n
endmenu
menu "I2C"
config MR_USING_I2C1
bool "Enable I2C1 driver"
default n
menu "I2C1 driver configure"
depends on MR_USING_I2C1
config MR_CFG_I2C1_GROUP
int "I2C1 Group"
default 1
range 1 2
endmenu
config MR_USING_I2C2
bool "Enable I2C2 driver"
default n
menu "I2C2 driver configure"
depends on MR_USING_I2C2
config MR_CFG_I2C2_GROUP
int "I2C2 Group"
default 1
range 1 1
endmenu
endmenu
menu "GPIO"
config MR_USING_GPIOA
bool "Enable GPIOA driver"
default n
config MR_USING_GPIOB
bool "Enable GPIOB driver"
default n
config MR_USING_GPIOC
bool "Enable GPIOC driver"
default n
config MR_USING_GPIOD
bool "Enable GPIOD driver"
default n
endmenu
menu "UART"
config MR_USING_UART1
bool "Enable UART1 driver"
default n
menu "UART1 driver configure"
depends on MR_USING_UART1
config MR_CFG_UART1_GROUP
int "UART1 Group"
default 1
range 1 4
endmenu
config MR_USING_UART2
bool "Enable UART2 driver"
default n
menu "UART2 driver configure"
depends on MR_USING_UART2
config MR_CFG_UART2_GROUP
int "UART2 Group"
default 1
range 1 2
endmenu
config MR_USING_UART3
bool "Enable UART3 driver"
default n
menu "UART3 driver configure"
depends on MR_USING_UART3
config MR_CFG_UART3_GROUP
int "UART3 Group"
default 1
range 1 4
endmenu
config MR_USING_UART4
bool "Enable UART4 driver"
default n
menu "UART4 driver configure"
depends on MR_USING_UART4
config MR_CFG_UART4_GROUP
int "UART4 Group"
default 1
range 1 3
endmenu
config MR_USING_UART5
bool "Enable UART5 driver"
default n
menu "UART5 driver configure"
depends on MR_USING_UART5
config MR_CFG_UART5_GROUP
int "UART5 Group"
default 1
range 1 3
endmenu
config MR_USING_UART6
bool "Enable UART6 driver"
default n
menu "UART6 driver configure"
depends on MR_USING_UART6
config MR_CFG_UART6_GROUP
int "UART6 Group"
default 1
range 1 3
endmenu
config MR_USING_UART7
bool "Enable UART7 driver"
default n
menu "UART7 driver configure"
depends on MR_USING_UART7
config MR_CFG_UART7_GROUP
int "UART7 Group"
default 1
range 1 3
endmenu
config MR_USING_UART8
bool "Enable UART8 driver"
default n
menu "UART8 driver configure"
depends on MR_USING_UART8
config MR_CFG_UART8_GROUP
int "UART8 Group"
default 1
range 1 3
endmenu
endmenu
menu "SPI"
config MR_USING_SPI1
bool "Enable SPI1 driver"
default n
menu "SPI1 driver configure"
depends on MR_USING_SPI1
config MR_CFG_SPI1_GROUP
int "SPI1 Group"
default 1
range 1 2
endmenu
config MR_USING_SPI2
bool "Enable SPI2 driver"
default n
menu "SPI2 driver configure"
depends on MR_USING_SPI2
config MR_CFG_SPI2_GROUP
int "SPI2 Group"
default 1
range 1 1
endmenu
endmenu
endmenu

View File

@@ -0,0 +1,228 @@
menu "Board configure"
menu "ADC"
config MR_USING_ADC1
bool "Enable ADC1 driver"
default n
config MR_USING_ADC2
bool "Enable ADC2 driver"
default n
endmenu
menu "DAC"
config MR_USING_DAC1
bool "Enable DAC1 driver"
default n
endmenu
menu "I2C"
config MR_USING_I2C1
bool "Enable I2C1 driver"
default n
menu "I2C1 driver configure"
depends on MR_USING_I2C1
config MR_CFG_I2C1_GROUP
int "I2C1 Group"
default 1
range 1 2
endmenu
config MR_USING_I2C2
bool "Enable I2C2 driver"
default n
menu "I2C2 driver configure"
depends on MR_USING_I2C2
config MR_CFG_I2C2_GROUP
int "I2C2 Group"
default 1
range 1 1
endmenu
endmenu
menu "GPIO"
config MR_USING_GPIOA
bool "Enable GPIOA driver"
default n
config MR_USING_GPIOB
bool "Enable GPIOB driver"
default n
config MR_USING_GPIOC
bool "Enable GPIOC driver"
default n
config MR_USING_GPIOD
bool "Enable GPIOD driver"
default n
config MR_USING_GPIOE
bool "Enable GPIOE driver"
default n
endmenu
menu "UART"
config MR_USING_UART1
bool "Enable UART1 driver"
default n
menu "UART1 driver configure"
depends on MR_USING_UART1
config MR_CFG_UART1_GROUP
int "UART1 Group"
default 1
range 1 4
endmenu
config MR_USING_UART2
bool "Enable UART2 driver"
default n
menu "UART2 driver configure"
depends on MR_USING_UART2
config MR_CFG_UART2_GROUP
int "UART2 Group"
default 1
range 1 2
endmenu
config MR_USING_UART3
bool "Enable UART3 driver"
default n
menu "UART3 driver configure"
depends on MR_USING_UART3
config MR_CFG_UART3_GROUP
int "UART3 Group"
default 1
range 1 4
endmenu
config MR_USING_UART4
bool "Enable UART4 driver"
default n
menu "UART4 driver configure"
depends on MR_USING_UART4
config MR_CFG_UART4_GROUP
int "UART4 Group"
default 1
range 1 3
endmenu
config MR_USING_UART5
bool "Enable UART5 driver"
default n
menu "UART5 driver configure"
depends on MR_USING_UART5
config MR_CFG_UART5_GROUP
int "UART5 Group"
default 1
range 1 3
endmenu
config MR_USING_UART6
bool "Enable UART6 driver"
default n
menu "UART6 driver configure"
depends on MR_USING_UART6
config MR_CFG_UART6_GROUP
int "UART6 Group"
default 1
range 1 3
endmenu
config MR_USING_UART7
bool "Enable UART7 driver"
default n
menu "UART7 driver configure"
depends on MR_USING_UART7
config MR_CFG_UART7_GROUP
int "UART7 Group"
default 1
range 1 3
endmenu
config MR_USING_UART8
bool "Enable UART8 driver"
default n
menu "UART8 driver configure"
depends on MR_USING_UART8
config MR_CFG_UART8_GROUP
int "UART8 Group"
default 1
range 1 3
endmenu
endmenu
menu "SPI"
config MR_USING_SPI1
bool "Enable SPI1 driver"
default n
menu "SPI1 driver configure"
depends on MR_USING_SPI1
config MR_CFG_SPI1_GROUP
int "SPI1 Group"
default 1
range 1 2
endmenu
config MR_USING_SPI2
bool "Enable SPI2 driver"
default n
menu "SPI2 driver configure"
depends on MR_USING_SPI2
config MR_CFG_SPI2_GROUP
int "SPI2 Group"
default 1
range 1 1
endmenu
config MR_USING_SPI3
bool "Enable SPI3 driver"
default n
menu "SPI3 driver configure"
depends on MR_USING_SPI3
config MR_CFG_SPI3_GROUP
int "SPI3 Group"
default 1
range 1 2
endmenu
endmenu
endmenu