[k210] 调整Kconfig结构

This commit is contained in:
Meco Man 2022-08-03 20:13:40 -04:00 committed by Man, Jianting (Meco)
parent 067315ff40
commit 16ceacda80
27 changed files with 24 additions and 19 deletions

View File

@ -578,7 +578,7 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# CONFIG_PKG_USING_ADT74XX is not set
# CONFIG_PKG_USING_AS7341 is not set
# CONFIG_PKG_USING_STM32_SDIO is not set
# CONFIG_PKG_USING_RTT_ESP_IDF is not set
# CONFIG_PKG_USING_ESP_IDF is not set
# CONFIG_PKG_USING_ICM20608 is not set
# CONFIG_PKG_USING_BUTTON is not set
# CONFIG_PKG_USING_PCF8574 is not set
@ -592,7 +592,7 @@ CONFIG_ULOG_BACKEND_USING_CONSOLE=y
# CONFIG_PKG_USING_WM_LIBRARIES is not set
#
# kendryte-sdk: Kendryte SDK
# Kendryte SDK
#
CONFIG_PKG_USING_K210_SDK=y
CONFIG_PKG_K210_SDK_PATH="/packages/peripherals/kendryte-sdk/K210-SDK"
@ -660,6 +660,7 @@ CONFIG_PKG_K210_SDK_VER="latest"
# CONFIG_PKG_USING_CW2015 is not set
# CONFIG_PKG_USING_RFM300 is not set
# CONFIG_PKG_USING_IO_INPUT_FILTER is not set
# CONFIG_PKG_USING_RASPBERRYPI_PICO_SDK is not set
#
# AI packages
@ -735,6 +736,7 @@ CONFIG_PKG_K210_SDK_VER="latest"
# CONFIG_PKG_USING_MFBD is not set
# CONFIG_PKG_USING_SLCAN2RTT is not set
# CONFIG_PKG_USING_SOEM is not set
CONFIG_SOC_K210=y
CONFIG_BOARD_K210_EVB=y
#

View File

@ -17,17 +17,7 @@ config PKGS_DIR
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
config BOARD_K210_EVB
bool
select ARCH_RISCV64
select ARCH_RISCV_FPU_S
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
select PKG_USING_K210_SDK
default y
source "driver/Kconfig"
source "drivers/Kconfig"
config __STACKSIZE__
int "stack size for interrupt"

View File

@ -1,3 +1,16 @@
config SOC_K210
bool
select ARCH_RISCV64
select ARCH_RISCV_FPU_S
select PKG_USING_K210_SDK
config BOARD_K210_EVB
bool
select SOC_K210
select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN
default y
menu "Hardware Drivers Config"
config BSP_USING_UART_HS
@ -58,17 +71,17 @@ if BSP_USING_SPI1
default n
config BSP_SPI1_CLK_PIN
int "spi1 clk pin number"
default 29
default 29
config BSP_SPI1_D0_PIN
int "spi1 d0 pin number"
default 30
default 30
config BSP_SPI1_D1_PIN
int "spi1 d1 pin number"
default 31
default 31
if BSP_USING_SPI1_AS_QSPI
config BSP_SPI1_D2_PIN
int "spi1 d2 pin number"
default 32
default 32
config BSP_SPI1_D3_PIN
int "spi1 d3 pin number"
default 33
@ -199,4 +212,3 @@ if BSP_USING_CAMERA
endif
endmenu

View File

@ -216,7 +216,7 @@
/* peripheral libraries and drivers */
/* kendryte-sdk: Kendryte SDK */
/* Kendryte SDK */
#define PKG_USING_K210_SDK
#define PKG_USING_K210_SDK_LATEST_VERSION
@ -233,6 +233,7 @@
/* entertainment: terminal games and other interesting software packages */
#define SOC_K210
#define BOARD_K210_EVB
/* Hardware Drivers Config */