format sconscript Kconfig files

This commit is contained in:
Meco Man 2023-03-18 19:28:58 -04:00 committed by Man, Jianting (Meco)
parent dd2f1a795a
commit c3820a2c1b
21 changed files with 32 additions and 32 deletions

View File

@ -33,7 +33,7 @@ if rtconfig.PLATFORM in ['gcc']:
elif rtconfig.PLATFORM in ['armclang']:
src += [startup_path_prefix +
'/IFX_PSOC6_HAL/mtb-pdl-cat1/drivers/source/TOOLCHAIN_ARM/cy_syslib_mdk.S']
CPPDEFINES = ['CY8C6247BZI_D54', 'CY_USING_HAL', 'COMPONENT_CAT1A', 'COMPONENT_CAT1', 'COMPONENT_BSP_DESIGN_MODUS']
group = DefineGroup('Drivers', src, depend=[''], CPPPATH=path, CPPDEFINES=CPPDEFINES)

View File

@ -145,7 +145,7 @@ menu "On-chip Peripheral Drivers"
config BSP_USING_TMR15
bool "Enable TMR15"
default n
config BSP_USING_TMR16
bool "Enable TMR16"
default n

View File

@ -26,7 +26,7 @@ menu "On-chip Peripheral Drivers"
config BSP_USING_ON_CHIP_FLASH
bool "Enable on-chip FLASH"
default n
default n
config BSP_USING_USBD
bool "Enable USB BUS"

View File

@ -26,7 +26,7 @@ menu "On-chip Peripheral Drivers"
config BSP_USING_ON_CHIP_FLASH
bool "Enable on-chip FLASH"
default n
default n
config BSP_USING_USBD
bool "Enable USB BUS"

View File

@ -26,7 +26,7 @@ menu "On-chip Peripheral Drivers"
config BSP_USING_ON_CHIP_FLASH
bool "Enable on-chip FLASH"
default n
default n
menuconfig BSP_USING_USBFS
bool "Enable USB BUS"

View File

@ -26,7 +26,7 @@ menu "On-chip Peripheral Drivers"
config BSP_USING_ON_CHIP_FLASH
bool "Enable on-chip FLASH"
default n
default n
menuconfig BSP_USING_USBFS
bool "Enable USB BUS"

View File

@ -30,7 +30,7 @@ menu "On-chip Peripheral Drivers"
config BSP_USING_ON_CHIP_FLASH
bool "Enable on-chip FLASH"
default n
default n
menuconfig BSP_USING_USBFS
bool "Enable USB BUS"

View File

@ -10,7 +10,7 @@ src = Split("""
# The set of source files associated with this SConscript file.
if GetDepend('RT_USING_USB_DEVICE'):
src += ['src/usbd_core.c', 'src/usbd_int.c', 'src/usbd_sdr.c']
src += ['src/usbd_core.c', 'src/usbd_int.c', 'src/usbd_sdr.c']
CPPPATH = [cwd + '/inc']

View File

@ -15,10 +15,10 @@ if GetDepend('BSP_USING_USBFS'):
src += ['src/usb_core.c']
if GetDepend('RT_USING_USB_DEVICE'):
src += ['src/usbd_core.c', 'src/usbd_int.c', 'src/usbd_sdr.c']
src += ['src/usbd_core.c', 'src/usbd_int.c', 'src/usbd_sdr.c']
if GetDepend('RT_USING_USB_HOST'):
src += ['src/usbh_core.c', 'src/usbh_int.c', 'src/usbh_ctrl.c']
src += ['src/usbh_core.c', 'src/usbh_int.c', 'src/usbh_ctrl.c']
CPPPATH = [cwd + '/inc']

View File

@ -184,15 +184,15 @@ menu "On-chip Peripheral Drivers"
config CODE_STORED_ON_SDCARD
bool "Enable Code STORED On SDCARD"
default n
help
"SD CARD work as boot devive"
help
"SD CARD work as boot devive"
endif
config BSP_USING_USB
bool "Enable USB"
select RT_USING_USB_HOST
default n
if BSP_USING_USB
config BSP_USB0_HOST
bool "Enable USB0"
@ -200,7 +200,7 @@ menu "On-chip Peripheral Drivers"
config BSP_USB1_HOST
bool "Enable USB1"
default n
default n
endif
menuconfig BSP_USING_I2C

View File

@ -17,11 +17,11 @@ if GetDepend(['BSP_USING_TOUCHPAD']):
CPPPATH = [cwd,cwd + '/MCUX_Config',cwd + '/ports']
# CPPDEFINES = ['CPU_MIMXRT1062DVL6A', 'SKIP_SYSCLK_INIT', 'EVK_MCIMXRM', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1',
# CPPDEFINES = ['CPU_MIMXRT1062DVL6A', 'SKIP_SYSCLK_INIT', 'EVK_MCIMXRM', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1',
# 'FSL_SDK_DRIVER_QUICK_ACCESS_ENABLE=1','DATA_SECTION_IS_CACHEABLE=1']
CPPDEFINES = ['CPU_MIMXRT1062DVL6A', 'SKIP_SYSCLK_INIT', 'EVK_MCIMXRM', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1',
CPPDEFINES = ['CPU_MIMXRT1062DVL6A', 'SKIP_SYSCLK_INIT', 'EVK_MCIMXRM', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1',
'FSL_SDK_DRIVER_QUICK_ACCESS_ENABLE=1','DATA_SECTION_IS_CACHEABLE=0', 'XIP_EXTERNAL_FLASH=1', 'XIP_BOOT_HEADER_ENABLE=1']
if rtconfig.PLATFORM in ['armcc', 'armclang']:

View File

@ -152,7 +152,7 @@ menu "On-chip Peripheral Drivers"
bool "Enable ADC0 Channel8"
default n
config BSP_USING_ADC0_CH13
bool "Enable ADC0 Channel13"
default n

View File

@ -11,4 +11,4 @@ group = []
# USB driver constrain
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
Return('group')
Return('group')

View File

@ -10,4 +10,4 @@ src = Glob('*.c') + Glob('*.cpp') + Glob('*.S')
CPPPATH = [ cwd ]
group = DefineGroup('board', src, depend = [''], CPPPATH = CPPPATH)
Return('group')
Return('group')

View File

@ -16,4 +16,4 @@ CPPPATH = [cwd, cwd + '/NuPinConfig']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')
Return('group')

View File

@ -10,4 +10,4 @@ src = Glob('*.c') + Glob('*.cpp') + Glob('*.S')
CPPPATH = [ cwd ]
group = DefineGroup('board', src, depend = [''], CPPPATH = CPPPATH)
Return('group')
Return('group')

View File

@ -54,11 +54,11 @@ menu "Hardware Drivers Config"
bool "Enable SPI BUS"
default n
select RT_USING_SPI
if BSP_USING_SPI
if BSP_USING_SPI
config BSP_USING_SPI0
bool "Enable SPI0 BUS"
default n
config BSP_USING_SPI1
bool "Enable SPI1 BUS"
default n
@ -68,7 +68,7 @@ menu "Hardware Drivers Config"
bool "Enable File System"
select RT_USING_DFS
default n
if BSP_USING_FS
config BSP_USING_SDCARD_FATFS
bool "Enable SDCARD (FATFS)"
@ -105,7 +105,7 @@ menu "Hardware Drivers Config"
bool "Enable LVGL for LCD"
select PKG_USING_LVGL
default n
if BSP_USING_LVGL
if BSP_USING_LVGL
config BSP_USING_LCD_ILI9431
bool "Enable LVGL for LCD_ILI9431"
select BSP_USING_SPI_LCD

View File

@ -459,7 +459,7 @@ menu "Hardware Drivers Config"
bool "Enable LVGL for LCD"
select PKG_USING_LVGL
default n
if BSP_USING_LVGL
if BSP_USING_LVGL
config BSP_USING_LCD_ILI9431
bool "Enable LVGL for LCD_ILI9431"
select BSP_USING_SPI_LCD

View File

@ -14,7 +14,7 @@ config PKGS_DIR
string
option env="PKGS_ROOT"
default "packages"
source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig"
source "../libraries/Kconfig"

View File

@ -32,13 +32,13 @@ menu "On-chip Peripheral Drivers"
depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
default n
endif
source "../libraries/HAL_Drivers/Kconfig"
source "../libraries/HAL_Drivers/Kconfig"
endmenu
menu "Board extended module Drivers"
endmenu
endmenu

View File

@ -24,7 +24,7 @@ env = Environment(tools = ['mingw'],
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS,
AR = rtconfig.AR, ARFLAGS = '-rc',
CXX = rtconfig.CXX,
CXX = rtconfig.CXX,
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)