diff --git a/bsp/CME_M7/CMSIS/SConscript b/bsp/CME_M7/CMSIS/SConscript index a6467b658e..fc11c6c234 100644 --- a/bsp/CME_M7/CMSIS/SConscript +++ b/bsp/CME_M7/CMSIS/SConscript @@ -10,7 +10,7 @@ src = Split(""" CME_M7/system_cmem7.c """) -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: src += ['CME_M7/startup/gcc/startup_CME_M7.c'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: diff --git a/bsp/CME_M7/Kconfig b/bsp/CME_M7/Kconfig index 541d45b4c1..02bef1c357 100644 --- a/bsp/CME_M7/Kconfig +++ b/bsp/CME_M7/Kconfig @@ -22,7 +22,7 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" config SOC_CME_M7 - bool + bool select ARCH_ARM_CORTEX_M3 select RT_USING_COMPONENTS_INIT default y diff --git a/bsp/CME_M7/SConstruct b/bsp/CME_M7/SConstruct index 2a4dd7ac50..19e3fb1d94 100644 --- a/bsp/CME_M7/SConstruct +++ b/bsp/CME_M7/SConstruct @@ -10,16 +10,16 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: - env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) - env.Replace(ARFLAGS = ['']) - env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) + env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) + env.Replace(ARFLAGS = ['']) + env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) Export('RTT_ROOT') Export('rtconfig') diff --git a/bsp/CME_M7/drivers/SConscript b/bsp/CME_M7/drivers/SConscript index f7a1246922..52ec48cbeb 100644 --- a/bsp/CME_M7/drivers/SConscript +++ b/bsp/CME_M7/drivers/SConscript @@ -4,10 +4,10 @@ from building import * cwd = os.path.join(str(Dir('#')), 'drivers') -src = ['board.c'] +src = ['board.c'] # add uart driver. -src += ['uart.c'] +src += ['uart.c'] # add EMAC driver for Lwip. if GetDepend('RT_USING_LWIP') == True: diff --git a/bsp/ESP32_C3/drivers/Kconfig b/bsp/ESP32_C3/drivers/Kconfig index 2d4afd0f30..20e042af38 100644 --- a/bsp/ESP32_C3/drivers/Kconfig +++ b/bsp/ESP32_C3/drivers/Kconfig @@ -1,6 +1,6 @@ config SOC_ESPRESSIF - bool + bool config SOC_ESP32_C3 bool @@ -24,7 +24,7 @@ choice bool "LUATOS ESP32C3 board" config BSP_BOARD_HX_EXP32C3 - bool "HONGXU ESP32C3 board" + bool "HONGXU ESP32C3 board" endchoice menu "Onboard Peripheral Drivers" @@ -57,9 +57,9 @@ menu "On-chip Peripheral Drivers" bool "Enable GPIO" select RT_USING_PIN default y - + config BSP_USING_UART - bool "Enable UART" + bool "Enable UART" select RT_USING_SERIAL select RT_USING_SERIAL_V1 default y diff --git a/bsp/ESP32_C3/drivers/SConscript b/bsp/ESP32_C3/drivers/SConscript index a67eba3b0f..f0a2ec1123 100644 --- a/bsp/ESP32_C3/drivers/SConscript +++ b/bsp/ESP32_C3/drivers/SConscript @@ -2,7 +2,7 @@ import os from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] diff --git a/bsp/ESP32_C3/main/SConscript b/bsp/ESP32_C3/main/SConscript index 08cf86dd8e..284e033584 100644 --- a/bsp/ESP32_C3/main/SConscript +++ b/bsp/ESP32_C3/main/SConscript @@ -2,7 +2,7 @@ import os from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [] diff --git a/bsp/Infineon/libraries/HAL_Drivers/SConscript b/bsp/Infineon/libraries/HAL_Drivers/SConscript index 4552c5babf..74d05cac7d 100644 --- a/bsp/Infineon/libraries/HAL_Drivers/SConscript +++ b/bsp/Infineon/libraries/HAL_Drivers/SConscript @@ -49,12 +49,12 @@ if GetDepend('BSP_USING_ON_CHIP_FLASH'): if GetDepend(['RT_USING_WDT']): src += ['drv_wdt.c'] - + if GetDepend(['RT_USING_DAC']): - src += ['drv_dac.c'] - + src += ['drv_dac.c'] + if GetDepend(['BSP_USING_TIM']): - src += ['drv_hwtimer.c'] + src += ['drv_hwtimer.c'] path = [cwd] path += [cwd + '/config'] diff --git a/bsp/Infineon/libraries/IFX_PSOC6_HAL/SConscript b/bsp/Infineon/libraries/IFX_PSOC6_HAL/SConscript index a01506affb..53bbb37b2c 100644 --- a/bsp/Infineon/libraries/IFX_PSOC6_HAL/SConscript +++ b/bsp/Infineon/libraries/IFX_PSOC6_HAL/SConscript @@ -19,7 +19,7 @@ src = Split(''' mtb-hal-cat1/source/cyhal_utils_psoc.c mtb-hal-cat1/source/cyhal_utils.c mtb-hal-cat1/source/cyhal_lptimer.c - mtb-hal-cat1/source/cyhal_irq_psoc.c + mtb-hal-cat1/source/cyhal_irq_psoc.c mtb-hal-cat1/COMPONENT_CAT1A/source/triggers/cyhal_triggers_psoc6_02.c mtb-hal-cat1/COMPONENT_CAT1A/source/pin_packages/cyhal_psoc6_02_124_bga.c mtb-pdl-cat1/devices/COMPONENT_CAT1A/source/cy_device.c @@ -36,7 +36,7 @@ src = Split(''' mtb-pdl-cat1/drivers/source/cy_ipc_sema.c mtb-pdl-cat1/drivers/source/cy_ipc_drv.c mtb-pdl-cat1/drivers/source/cy_trigmux.c - mtb-pdl-cat1/drivers/source/cy_prot.c + mtb-pdl-cat1/drivers/source/cy_prot.c TARGET_CY8CKIT-062S2-43012/cybsp.c TARGET_CY8CKIT-062S2-43012/COMPONENT_CM4/system_psoc6_cm4.c TARGET_CY8CKIT-062S2-43012/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg.c @@ -44,7 +44,7 @@ src = Split(''' TARGET_CY8CKIT-062S2-43012/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_system.c TARGET_CY8CKIT-062S2-43012/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_clocks.c TARGET_CY8CKIT-062S2-43012/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_routing.c - TARGET_CY8CKIT-062S2-43012/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_peripherals.c + TARGET_CY8CKIT-062S2-43012/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_peripherals.c lib/cy_capsense.lib ''') @@ -130,10 +130,10 @@ if GetDepend(['RT_USING_WDT']): src += ['mtb-hal-cat1/source/cyhal_wdt.c'] if GetDepend(['RT_USING_DAC']): - src += ['mtb_shared/csdidac/cy_csdidac.c'] + src += ['mtb_shared/csdidac/cy_csdidac.c'] if GetDepend(['RT_USING_HWTIMER']): - src += ['mtb-hal-cat1/source/cyhal_timer.c'] + src += ['mtb-hal-cat1/source/cyhal_timer.c'] path = [cwd + '/capsense', cwd + '/psoc6cm0p', diff --git a/bsp/Infineon/libraries/templates/PSOC62/Kconfig b/bsp/Infineon/libraries/templates/PSOC62/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/Infineon/libraries/templates/PSOC62/Kconfig +++ b/bsp/Infineon/libraries/templates/PSOC62/Kconfig @@ -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" diff --git a/bsp/Infineon/libraries/templates/PSOC62/applications/SConscript b/bsp/Infineon/libraries/templates/PSOC62/applications/SConscript index fe708e67c8..034056eca7 100644 --- a/bsp/Infineon/libraries/templates/PSOC62/applications/SConscript +++ b/bsp/Infineon/libraries/templates/PSOC62/applications/SConscript @@ -13,4 +13,4 @@ for item in list: if os.path.isfile(os.path.join(cwd, item, 'SConscript')): group = group + SConscript(os.path.join(item, 'SConscript')) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/Infineon/libraries/templates/PSOC62/board/Kconfig b/bsp/Infineon/libraries/templates/PSOC62/board/Kconfig index 6264b8b300..b186c44a0d 100644 --- a/bsp/Infineon/libraries/templates/PSOC62/board/Kconfig +++ b/bsp/Infineon/libraries/templates/PSOC62/board/Kconfig @@ -45,7 +45,7 @@ menu "On-chip Peripheral Drivers" default n config BSP_USING_UART5 bool "Enable UART5" - default y + default y endif menuconfig BSP_USING_PWM @@ -112,7 +112,7 @@ menu "On-chip Peripheral Drivers" if BSP_USING_SPI3 config BSP_USING_SPI3_SAMPLE bool "Enable SPI3 BUS Sample" - default n + default n endif endif @@ -178,7 +178,7 @@ menu "On-chip Peripheral Drivers" int "i2c6 SDA pin number" range 1 113 default 105 - endif + endif endif menuconfig BSP_USING_I2C @@ -234,7 +234,7 @@ menu "On-chip Peripheral Drivers" bool "Enable Watchdog Timer" select RT_USING_WDT default n - + menuconfig BSP_USING_DAC bool "Enable DAC" default n @@ -278,7 +278,7 @@ menu "Board extended module Drivers" select PKG_USING_RW007 select BSP_USING_SPI select RW007_NOT_USE_EXAMPLE_DRIVERS - + if BSP_USING_RW007 comment "Notice: P5_7 --> 47; P6_2 -->50; P6_5 --> 53; P12_0 --> 96" config IFX_RW007_SPI_BUS_NAME diff --git a/bsp/Infineon/libraries/templates/PSOC62/board/SConscript b/bsp/Infineon/libraries/templates/PSOC62/board/SConscript index a6cdd0eedc..a8db6b8b1e 100644 --- a/bsp/Infineon/libraries/templates/PSOC62/board/SConscript +++ b/bsp/Infineon/libraries/templates/PSOC62/board/SConscript @@ -41,4 +41,4 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: CPPDEFINES = ['CY8C624ABZI_S2D44', 'IFX_PSOC6_43012', 'CY_USING_HAL', 'COMPONENT_CAT1A', 'COMPONENT_CAT1', 'COMPONENT_BSP_DESIGN_MODUS'] group = DefineGroup('Drivers', src, depend=[''], CPPPATH=path, CPPDEFINES=CPPDEFINES) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/Infineon/psoc6-cy8ckit-062S2-43012/Kconfig b/bsp/Infineon/psoc6-cy8ckit-062S2-43012/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/Infineon/psoc6-cy8ckit-062S2-43012/Kconfig +++ b/bsp/Infineon/psoc6-cy8ckit-062S2-43012/Kconfig @@ -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" diff --git a/bsp/Infineon/psoc6-cy8ckit-062S2-43012/applications/SConscript b/bsp/Infineon/psoc6-cy8ckit-062S2-43012/applications/SConscript index fe708e67c8..034056eca7 100644 --- a/bsp/Infineon/psoc6-cy8ckit-062S2-43012/applications/SConscript +++ b/bsp/Infineon/psoc6-cy8ckit-062S2-43012/applications/SConscript @@ -13,4 +13,4 @@ for item in list: if os.path.isfile(os.path.join(cwd, item, 'SConscript')): group = group + SConscript(os.path.join(item, 'SConscript')) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/Infineon/psoc6-cy8ckit-062S2-43012/board/Kconfig b/bsp/Infineon/psoc6-cy8ckit-062S2-43012/board/Kconfig index 6264b8b300..b186c44a0d 100644 --- a/bsp/Infineon/psoc6-cy8ckit-062S2-43012/board/Kconfig +++ b/bsp/Infineon/psoc6-cy8ckit-062S2-43012/board/Kconfig @@ -45,7 +45,7 @@ menu "On-chip Peripheral Drivers" default n config BSP_USING_UART5 bool "Enable UART5" - default y + default y endif menuconfig BSP_USING_PWM @@ -112,7 +112,7 @@ menu "On-chip Peripheral Drivers" if BSP_USING_SPI3 config BSP_USING_SPI3_SAMPLE bool "Enable SPI3 BUS Sample" - default n + default n endif endif @@ -178,7 +178,7 @@ menu "On-chip Peripheral Drivers" int "i2c6 SDA pin number" range 1 113 default 105 - endif + endif endif menuconfig BSP_USING_I2C @@ -234,7 +234,7 @@ menu "On-chip Peripheral Drivers" bool "Enable Watchdog Timer" select RT_USING_WDT default n - + menuconfig BSP_USING_DAC bool "Enable DAC" default n @@ -278,7 +278,7 @@ menu "Board extended module Drivers" select PKG_USING_RW007 select BSP_USING_SPI select RW007_NOT_USE_EXAMPLE_DRIVERS - + if BSP_USING_RW007 comment "Notice: P5_7 --> 47; P6_2 -->50; P6_5 --> 53; P12_0 --> 96" config IFX_RW007_SPI_BUS_NAME diff --git a/bsp/Infineon/psoc6-cy8ckit-062S2-43012/board/SConscript b/bsp/Infineon/psoc6-cy8ckit-062S2-43012/board/SConscript index a6cdd0eedc..a8db6b8b1e 100644 --- a/bsp/Infineon/psoc6-cy8ckit-062S2-43012/board/SConscript +++ b/bsp/Infineon/psoc6-cy8ckit-062S2-43012/board/SConscript @@ -41,4 +41,4 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: CPPDEFINES = ['CY8C624ABZI_S2D44', 'IFX_PSOC6_43012', 'CY_USING_HAL', 'COMPONENT_CAT1A', 'COMPONENT_CAT1', 'COMPONENT_BSP_DESIGN_MODUS'] group = DefineGroup('Drivers', src, depend=[''], CPPPATH=path, CPPDEFINES=CPPDEFINES) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/Vango/v85xx/Kconfig b/bsp/Vango/v85xx/Kconfig index db71795081..75f1bfd03b 100644 --- a/bsp/Vango/v85xx/Kconfig +++ b/bsp/Vango/v85xx/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default: "rt-thread" # example : default "F:/git_repositories/rt-thread" diff --git a/bsp/Vango/v85xxp/Kconfig b/bsp/Vango/v85xxp/Kconfig index 4adc43f033..a30de51f9a 100644 --- a/bsp/Vango/v85xxp/Kconfig +++ b/bsp/Vango/v85xxp/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default: "rt-thread" # example : default "F:/git_repositories/rt-thread" diff --git a/bsp/acm32/acm32f4xx-nucleo/SConstruct b/bsp/acm32/acm32f4xx-nucleo/SConstruct index 3167763f54..160697d0f2 100644 --- a/bsp/acm32/acm32f4xx-nucleo/SConstruct +++ b/bsp/acm32/acm32f4xx-nucleo/SConstruct @@ -13,16 +13,16 @@ from building import * TARGET = 'rtthread_acm32f4xx.' + rtconfig.TARGET_EXT env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: - env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) - env.Replace(ARFLAGS = ['']) - env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) + env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) + env.Replace(ARFLAGS = ['']) + env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) Export('RTT_ROOT') Export('rtconfig') diff --git a/bsp/airm2m/air105/Kconfig b/bsp/airm2m/air105/Kconfig index bb3c3adb17..3640eaa0ed 100644 --- a/bsp/airm2m/air105/Kconfig +++ b/bsp/airm2m/air105/Kconfig @@ -14,7 +14,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" source "board/Kconfig" diff --git a/bsp/airm2m/air105/board/Kconfig b/bsp/airm2m/air105/board/Kconfig index 24a8415127..770b11a040 100644 --- a/bsp/airm2m/air105/board/Kconfig +++ b/bsp/airm2m/air105/board/Kconfig @@ -35,9 +35,9 @@ menu "Onboard Peripheral Drivers" config WIZ_SPI_BUS string "WIZ SPI bus name" default "spi2" - config WIZ_SPI_CS + config WIZ_SPI_CS int "WIZ SPI bus cs pin" - default 19 + default 19 endif endmenu @@ -129,7 +129,7 @@ menu "On-chip Peripheral Drivers" if BSP_USING_I2C config I2C_BUS_NAME string "HW I2C bus name" - default "i2c" + default "i2c" endif menuconfig BSP_USING_SPI @@ -151,8 +151,8 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n - + default n + config BSP_USING_SPI0S bool "Enable SPI0S BUS" default n @@ -162,7 +162,7 @@ menu "On-chip Peripheral Drivers" bool "Enable HW onchip rtc" select RT_USING_ONCHIP_RTC default n - + config BSP_USING_WDT bool "Enable Watchdog Timer" select RT_USING_WDT diff --git a/bsp/airm2m/air32f103/Kconfig b/bsp/airm2m/air32f103/Kconfig index bb3c3adb17..3640eaa0ed 100644 --- a/bsp/airm2m/air32f103/Kconfig +++ b/bsp/airm2m/air32f103/Kconfig @@ -14,7 +14,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" source "board/Kconfig" diff --git a/bsp/airm2m/air32f103/board/Kconfig b/bsp/airm2m/air32f103/board/Kconfig index 718e924f9b..dd74fdd571 100644 --- a/bsp/airm2m/air32f103/board/Kconfig +++ b/bsp/airm2m/air32f103/board/Kconfig @@ -82,8 +82,8 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n - + default n + config BSP_USING_SPI3 bool "Enable SPI3 BUS" default n @@ -122,7 +122,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_ON_CHIP_FLASH bool "Enable on-chip FLASH" - default n + default n config BSP_USING_WDT bool "Enable Watchdog Timer" diff --git a/bsp/allwinner/d1/applications/SConscript b/bsp/allwinner/d1/applications/SConscript index 743ad207ab..82d340ca3b 100644 --- a/bsp/allwinner/d1/applications/SConscript +++ b/bsp/allwinner/d1/applications/SConscript @@ -1,7 +1,7 @@ from building import * cwd = GetCurrentDir() -src = Glob('*.c') + Glob('*.cpp') +src = Glob('*.c') + Glob('*.cpp') CPPPATH = [cwd] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/allwinner/d1s/applications/SConscript b/bsp/allwinner/d1s/applications/SConscript index 743ad207ab..82d340ca3b 100644 --- a/bsp/allwinner/d1s/applications/SConscript +++ b/bsp/allwinner/d1s/applications/SConscript @@ -1,7 +1,7 @@ from building import * cwd = GetCurrentDir() -src = Glob('*.c') + Glob('*.cpp') +src = Glob('*.c') + Glob('*.cpp') CPPPATH = [cwd] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/allwinner/libraries/Kconfig b/bsp/allwinner/libraries/Kconfig index d491d1a0c3..9f374e4613 100644 --- a/bsp/allwinner/libraries/Kconfig +++ b/bsp/allwinner/libraries/Kconfig @@ -14,5 +14,5 @@ if RT_USING_SUNXI_HAL source "$BSP_DIR/../libraries/sunxi-hal/hal/source/g2d_rcq/Kconfig" source "$BSP_DIR/../libraries/sunxi-hal/hal/source/usb/Kconfig" source "$BSP_DIR/../libraries/sunxi-hal/hal/source/ce/Kconfig" - source "$BSP_DIR/../libraries/sunxi-hal/hal/source/efuse/Kconfig" + source "$BSP_DIR/../libraries/sunxi-hal/hal/source/efuse/Kconfig" endif diff --git a/bsp/allwinner/libraries/drivers/Kconfig b/bsp/allwinner/libraries/drivers/Kconfig index da0d6d7840..36cef4f2d6 100644 --- a/bsp/allwinner/libraries/drivers/Kconfig +++ b/bsp/allwinner/libraries/drivers/Kconfig @@ -279,5 +279,5 @@ menu "Board extended module Drivers" select BSP_USING_SPI select BSP_USING_SPI0 endmenu - + endmenu diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/ccmu/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/ccmu/Kconfig index 2bf5a1a79c..a40865d1c4 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/ccmu/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/ccmu/Kconfig @@ -6,22 +6,22 @@ config DRIVERS_CCMU config DRIVERS_SUNXI_CLK bool "enable sunxi ccmu driver" - depends on DRIVERS_CCMU + depends on DRIVERS_CCMU default y config DRIVERS_SUNXI_CCU bool "enable sunxi-ng ccmu driver" - depends on DRIVERS_CCMU + depends on DRIVERS_CCMU default n config HAL_TEST_CLK bool "enable sunxi ccmu hal APIs test command" - depends on DRIVERS_SUNXI_CLK + depends on DRIVERS_SUNXI_CLK default n config HAL_TEST_CCU bool "enable sunxi-ng ccmu hal APIs test command" - depends on DRIVERS_SUNXI_CCU + depends on DRIVERS_SUNXI_CCU default n endmenu diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/ce/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/ce/Kconfig index c365c1f123..d9a36635e5 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/ce/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/ce/Kconfig @@ -6,7 +6,7 @@ config DRIVERS_CE config HAL_TEST_CE bool "enable ce hal APIs test command" - depends on DRIVERS_CE + depends on DRIVERS_CE default n diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/cir/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/cir/Kconfig index a81efc4441..f6db3f6a7c 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/cir/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/cir/Kconfig @@ -1,25 +1,25 @@ menu "CIR Devices" config DRIVERS_CIR - bool "enable CIR driver" + bool "enable CIR driver" default y menu "CIR option features" config DRIVERS_CIR_DEBUG - bool "support CIR debug" - select DRIVERS_CIR - default n + bool "support CIR debug" + select DRIVERS_CIR + default n config DRIVERS_CIR_TEST - bool "CIR test case" - select DRIVERS_CIR - default n + bool "CIR test case" + select DRIVERS_CIR + default n config HAL_TEST_CIR - bool "CIR TEST CASE" - depends on DRIVERS_CIR - default n + bool "CIR TEST CASE" + depends on DRIVERS_CIR + default n endmenu diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/common/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/common/Kconfig index 3478890cf4..65e7b9350d 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/common/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/common/Kconfig @@ -2,6 +2,6 @@ menu "Common Option" config DRVIER_SYSCONFIG bool "enable sysconfig" - default y + default y endmenu diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/Kconfig index fd7306ac64..0a06f5f748 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/Kconfig @@ -5,61 +5,61 @@ menu "Video support for sunxi" config DISP2_SUNXI - tristate "DISP Driver Support(sunxi-disp2)" - default n - ---help--- - Display driver for sunxi based boards. + tristate "DISP Driver Support(sunxi-disp2)" + default n + ---help--- + Display driver for sunxi based boards. choice prompt "DISP2 Framebuffer rotation support" - default SUNXI_DISP2_FB_DISABLE_ROTATE + default SUNXI_DISP2_FB_DISABLE_ROTATE config SUNXI_DISP2_FB_DISABLE_ROTATE - bool "Disable rotation" - depends on (DISP2_SUNXI) - ---help--- - Do not use framebuffer rotation + bool "Disable rotation" + depends on (DISP2_SUNXI) + ---help--- + Do not use framebuffer rotation config SUNXI_DISP2_FB_ROTATION_SUPPORT - bool "Software rotation support" - depends on (DISP2_SUNXI) - ---help--- - Framebuffer software rotation on the top of disp2. + bool "Software rotation support" + depends on (DISP2_SUNXI) + ---help--- + Framebuffer software rotation on the top of disp2. config SUNXI_DISP2_FB_HW_ROTATION_SUPPORT - bool "Hardware(G2D) rotation support" - depends on (DISP2_SUNXI && SUNXI_G2D) - ---help--- - Framebuffer hardware(G2D) rotation on the top of disp2. + bool "Hardware(G2D) rotation support" + depends on (DISP2_SUNXI && SUNXI_G2D) + ---help--- + Framebuffer hardware(G2D) rotation on the top of disp2. endchoice config HAL_TEST_DISP - bool "DISP2 hal APIs test" - depends on (DISP2_SUNXI) - default n - ---help--- - Enable disp2 hal test command. + bool "DISP2 hal APIs test" + depends on (DISP2_SUNXI) + default n + ---help--- + Enable disp2 hal test command. config FPGA_V7_PLATFORM - bool "FPGA" - depends on (DISP2_SUNXI) - default n - ---help--- - Enable fpga + bool "FPGA" + depends on (DISP2_SUNXI) + default n + ---help--- + Enable fpga config SUNXI_DISP2_FB_DECOMPRESS_LZMA - bool "Framebuffer show bootlogo from lzma file" - depends on (DISP2_SUNXI) - default n - select DECOMPRESS_LZMA - ---help--- - Show bootlogo from lzma file. + bool "Framebuffer show bootlogo from lzma file" + depends on (DISP2_SUNXI) + default n + select DECOMPRESS_LZMA + ---help--- + Show bootlogo from lzma file. config HDMI_DISP2_SUNXI - tristate "HDMI Driver Support(sunxi-disp2)" - depends on (DISP2_SUNXI) - default n - ---help--- - Hdmi driver for sunxi based boards. + tristate "HDMI Driver Support(sunxi-disp2)" + depends on (DISP2_SUNXI) + default n + ---help--- + Hdmi driver for sunxi based boards. menuconfig HDMI2_DISP2_SUNXI tristate "HDMI2.0 Driver Support(sunxi-disp2)" @@ -72,11 +72,11 @@ menuconfig HDMI2_DISP2_SUNXI HDR,4k@60Hz. If unsure, say N. config HDMI_EP952_DISP2_SUNXI - tristate "HDMI EP952 Driver Support(sunxi-disp2)" - depends on (DISP2_SUNXI) - default n - ---help--- - Hdmi ep952 driver for sunxi based boards. + tristate "HDMI EP952 Driver Support(sunxi-disp2)" + depends on (DISP2_SUNXI) + default n + ---help--- + Hdmi ep952 driver for sunxi based boards. menuconfig HDMI2_HDCP_SUNXI tristate "HDMI2.0 HDCP" depends on (HDMI2_DISP2_SUNXI) @@ -114,28 +114,28 @@ config HDMI2_CEC_USER If unsure, say N. config TV_DISP2_SUNXI - tristate "TV Driver Support(sunxi-disp2)" - depends on (DISP2_SUNXI) - default n - ---help--- - TV driver for sunxi based boards. + tristate "TV Driver Support(sunxi-disp2)" + depends on (DISP2_SUNXI) + default n + ---help--- + TV driver for sunxi based boards. config VDPO_DISP2_SUNXI - tristate "VDPO Driver Support(sunxi-disp2)" - depends on (DISP2_SUNXI) - default n - ---help--- - VDPO driver for sunxi based boards. + tristate "VDPO Driver Support(sunxi-disp2)" + depends on (DISP2_SUNXI) + default n + ---help--- + VDPO driver for sunxi based boards. config DISP2_TV_GM7121 - tristate "GM7121 TV module Support(sunxi-disp2)" - depends on (DISP2_SUNXI && TV_DISP2_SUNXI) - default n - ---help--- + tristate "GM7121 TV module Support(sunxi-disp2)" + depends on (DISP2_SUNXI && TV_DISP2_SUNXI) + default n + ---help--- config EDP_DISP2_SUNXI - tristate "EDP Driver Support(sunxi-disp2)" - depends on (DISP2_SUNXI) - default n - ---help--- + tristate "EDP Driver Support(sunxi-disp2)" + depends on (DISP2_SUNXI) + default n + ---help--- EDP 1.2 driver for sunxi. Embedded Display Port is a high speed display interface for embedded device. DisplayPort can be used to transmit audio and video @@ -143,46 +143,46 @@ config EDP_DISP2_SUNXI transmitted without the other. config DISP2_TV_AC200 - tristate "AC200 TV module Support(sunxi-disp2)" - depends on (DISP2_SUNXI && MFD_ACX00) - default n - ---help--- + tristate "AC200 TV module Support(sunxi-disp2)" + depends on (DISP2_SUNXI && MFD_ACX00) + default n + ---help--- config EINK_PANEL_USED - bool "Eink panel used" - depends on (DISP2_SUNXI && (ARCH_SUN8IW10 || ARCH_SUN8IW15)) - default n - ---help--- + bool "Eink panel used" + depends on (DISP2_SUNXI && (ARCH_SUN8IW10 || ARCH_SUN8IW15)) + default n + ---help--- config EINK200_SUNXI - bool "Eink Driver Version 2.0 Support" - depends on (DISP2_SUNXI && ARCH_SUN50IW10) - default n - ---help--- + bool "Eink Driver Version 2.0 Support" + depends on (DISP2_SUNXI && ARCH_SUN50IW10) + default n + ---help--- config DISP2_SUNXI_BOOT_COLORBAR - bool "boot colorbar Support for disp driver(sunxi-disp2)" - depends on DISP2_SUNXI - default n - ---help--- - If true, the framebuffer will be filled by specified data - to display vertical colorbar. + bool "boot colorbar Support for disp driver(sunxi-disp2)" + depends on DISP2_SUNXI + default n + ---help--- + If true, the framebuffer will be filled by specified data + to display vertical colorbar. menu "LCD panels select" - depends on DISP2_SUNXI + depends on DISP2_SUNXI source "$BSP_DIR/../libraries/sunxi-hal/hal/source/disp2/disp/lcd/Kconfig" endmenu menu "Display engine feature select" - depends on DISP2_SUNXI + depends on DISP2_SUNXI source "$BSP_DIR/../libraries/sunxi-hal/hal/source/disp2/disp/Kconfig" endmenu menu "Soc and board select" - depends on DISP2_SUNXI + depends on DISP2_SUNXI source "$BSP_DIR/../libraries/sunxi-hal/hal/source/disp2/soc/Kconfig" endmenu diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/disp/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/disp/Kconfig index 99e9464730..0deaf9b7b1 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/disp/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/disp/Kconfig @@ -1,11 +1,11 @@ config DISP2_SUNXI_SUPPORT_SMBL - bool "Support smart backlight" - default n - ---help--- - If you want to support smart backlight, select it. + bool "Support smart backlight" + default n + ---help--- + If you want to support smart backlight, select it. config DISP2_SUNXI_SUPPORT_ENAHNCE - bool "Support Video Enhance Process" - default y - ---help--- - If you want to support video enhance process, select it. + bool "Support Video Enhance Process" + default y + ---help--- + If you want to support video enhance process, select it. diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/disp/lcd/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/disp/lcd/Kconfig index 22c8c98f3e..66ad6500fd 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/disp/lcd/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/disp/lcd/Kconfig @@ -1,181 +1,181 @@ config LCD_SUPPORT_GG1P4062UTSW - bool "LCD support cpu_gg1p4062utsw panel" - default n - ---help--- - If you want to support cpu_gg1p4062utsw panel for display driver, select it. + bool "LCD support cpu_gg1p4062utsw panel" + default n + ---help--- + If you want to support cpu_gg1p4062utsw panel for display driver, select it. config LCD_SUPPORT_DX0960BE40A1 - bool "LCD support dx0960be40a1 panel" - default n - ---help--- - If you want to support dx0960be40a1 panel for display driver, select it. + bool "LCD support dx0960be40a1 panel" + default n + ---help--- + If you want to support dx0960be40a1 panel for display driver, select it. config LCD_SUPPORT_TFT720X1280 - bool "LCD support dx0960be40a1 panel" - default n - ---help--- - If you want to support dx0960be40a1 panel for display driver, select it. + bool "LCD support dx0960be40a1 panel" + default n + ---help--- + If you want to support dx0960be40a1 panel for display driver, select it. config LCD_SUPPORT_FD055HD003S - bool "LCD support fd055hd003s panel" - default n - ---help--- - If you want to support fd055hd003s panel for display driver, select it. + bool "LCD support fd055hd003s panel" + default n + ---help--- + If you want to support fd055hd003s panel for display driver, select it. config LCD_SUPPORT_HE0801A068 - bool "LCD support he0801a068 panel" - default y - ---help--- - If you want to support he0801a068 panel for display driver, select it. + bool "LCD support he0801a068 panel" + default y + ---help--- + If you want to support he0801a068 panel for display driver, select it. config LCD_SUPPORT_ILI9341 - bool "LCD support ili9341 panel" - default n - ---help--- - If you want to support ili9341 panel for display driver, select it. + bool "LCD support ili9341 panel" + default n + ---help--- + If you want to support ili9341 panel for display driver, select it. config LCD_SUPPORT_LH219WQ1 - bool "LCD support LH219WQ1 panel" - default n - ---help--- - If you want to support LH219WQ1 panel for display driver, select it. + bool "LCD support LH219WQ1 panel" + default n + ---help--- + If you want to support LH219WQ1 panel for display driver, select it. config LCD_SUPPORT_LS029B3SX02 - bool "LCD support ls029b3sx02 panel" - default n - ---help--- - If you want to support ls029b3sx02 panel for display driver, select it. + bool "LCD support ls029b3sx02 panel" + default n + ---help--- + If you want to support ls029b3sx02 panel for display driver, select it. config LCD_SUPPORT_LT070ME05000 - bool "LCD support lt070me05000 panel" - default n - ---help--- - If you want to support lt070me05000 panel for display driver, select it. + bool "LCD support lt070me05000 panel" + default n + ---help--- + If you want to support lt070me05000 panel for display driver, select it. config LCD_SUPPORT_S6D7AA0X01 - bool "LCD support S6D7AA0X01 panel" - default n - ---help--- - If you want to support S6D7AA0X01 panel for display driver, select it. + bool "LCD support S6D7AA0X01 panel" + default n + ---help--- + If you want to support S6D7AA0X01 panel for display driver, select it. config LCD_SUPPORT_T27P06 - bool "LCD support t27p06 panel" - default n - ---help--- - If you want to support t27p06 panel for display driver, select it. + bool "LCD support t27p06 panel" + default n + ---help--- + If you want to support t27p06 panel for display driver, select it. config LCD_SUPPORT_TFT720_1280 - bool "LCD support tft720_1280 panel" - default n - ---help--- - If you want to support tft720_1280 panel for display driver, select it. + bool "LCD support tft720_1280 panel" + default n + ---help--- + If you want to support tft720_1280 panel for display driver, select it. config LCD_SUPPORT_TFT08006 - bool "LCD support tft08006 panel" - default n - ---help--- - If you want to support tft08006 panel for display driver, select it. + bool "LCD support tft08006 panel" + default n + ---help--- + If you want to support tft08006 panel for display driver, select it. config LCD_SUPPORT_TFTRGB - bool "LCD support tft-RGB panel" - default n - ---help--- - If you want to support tft-rgb panel for display driver, select it. + bool "LCD support tft-RGB panel" + default n + ---help--- + If you want to support tft-rgb panel for display driver, select it. config LCD_SUPPORT_WTQ05027D01 - bool "LCD support wtq05027d01 panel" - default n - ---help--- - If you want to support wtq05027d01 panel for display driver, select it. + bool "LCD support wtq05027d01 panel" + default n + ---help--- + If you want to support wtq05027d01 panel for display driver, select it. config LCD_SUPPORT_H245QBN02 - bool "LCD support H245QBN02 panel" - default n - ---help--- - If you want to support H245QBN02 panel for display driver, select it. + bool "LCD support H245QBN02 panel" + default n + ---help--- + If you want to support H245QBN02 panel for display driver, select it. config LCD_SUPPORT_ST7789V - bool "LCD support ST7789V panel" - default n - ---help--- - If you want to support ST7789V panel for display driver, select it. + bool "LCD support ST7789V panel" + default n + ---help--- + If you want to support ST7789V panel for display driver, select it. config LCD_SUPPORT_ST7796S - bool "LCD support ST7796S panel" - default n - ---help--- - If you want to support ST7796S panel for display driver, select it. + bool "LCD support ST7796S panel" + default n + ---help--- + If you want to support ST7796S panel for display driver, select it. config LCD_SUPPORT_ST7701S - bool "LCD support ST7701S panel" - default n - ---help--- - If you want to support ST7701S panel for display driver, select it. + bool "LCD support ST7701S panel" + default n + ---help--- + If you want to support ST7701S panel for display driver, select it. config LCD_SUPPORT_T30P106 - bool "LCD support T30P106 panel" - default n - ---help--- - If you want to support T30P106 panel for display driver, select it. + bool "LCD support T30P106 panel" + default n + ---help--- + If you want to support T30P106 panel for display driver, select it. config LCD_SUPPORT_TO20T20000 - bool "LCD support TO20T20000 panel" - default n - ---help--- - If you want to support TO20T20000 panel for display driver, select it. + bool "LCD support TO20T20000 panel" + default n + ---help--- + If you want to support TO20T20000 panel for display driver, select it. config LCD_SUPPORT_FRD450H40014 - bool "LCD support FRD450H40014 panel" - default n - ---help--- - If you want to support FRD450H40014 panel for display driver, select it. + bool "LCD support FRD450H40014 panel" + default n + ---help--- + If you want to support FRD450H40014 panel for display driver, select it. config LCD_SUPPORT_S2003T46G - bool "LCD support S2003T46G panel" - default n - ---help--- - If you want to support S2003T46G panel for display driver, select it. + bool "LCD support S2003T46G panel" + default n + ---help--- + If you want to support S2003T46G panel for display driver, select it. config LCD_SUPPORT_WILLIAMLCD - bool "LCD support WilliamLcd panel" - default y - ---help--- - If you want to support WilliamLcd panel for display driver, select it. + bool "LCD support WilliamLcd panel" + default y + ---help--- + If you want to support WilliamLcd panel for display driver, select it. config LCD_SUPPORT_LQ101R1SX03 - bool "LCD support lq101r1sx03 panel" - default y - ---help--- - If you want to support lq101r1sx03 panel for display driver, select it. + bool "LCD support lq101r1sx03 panel" + default y + ---help--- + If you want to support lq101r1sx03 panel for display driver, select it. config LCD_SUPPORT_INET_DSI_PANEL - bool "LCD support inet_dsi_panel panel" - default y - ---help--- - If you want to support inet_dsi_panel panel for display driver, select it. + bool "LCD support inet_dsi_panel panel" + default y + ---help--- + If you want to support inet_dsi_panel panel for display driver, select it. config LCD_SUPPORT_WTL096601G03 - bool "LCD support WTL096601G03 panel" - default n - ---help--- - If you want to support WTL096601G03 panel for display driver, select it. + bool "LCD support WTL096601G03 panel" + default n + ---help--- + If you want to support WTL096601G03 panel for display driver, select it. config LCD_SUPPORT_RT13QV005D - bool "LCD support rt13qv005d panel" - default n - ---help--- - If you want to support rt13qv005d panel for display driver, select it. + bool "LCD support rt13qv005d panel" + default n + ---help--- + If you want to support rt13qv005d panel for display driver, select it. config LCD_SUPPORT_ST7789V_CPU - bool "LCD support st7789v_cpu panel" - default n - ---help--- - If you want to support st7789v_cpu panel for display driver, select it. + bool "LCD support st7789v_cpu panel" + default n + ---help--- + If you want to support st7789v_cpu panel for display driver, select it. config LCD_SUPPORT_VVX07H005A10 - bool "LCD support VVX07H005A10 panel" - default n - ---help--- - If you want to support VVX07H005A10 panel for display driver, select it. + bool "LCD support VVX07H005A10 panel" + default n + ---help--- + If you want to support VVX07H005A10 panel for display driver, select it. diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/soc/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/soc/Kconfig index f32b8d6763..b1e7cd7d1f 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/soc/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/soc/Kconfig @@ -3,59 +3,59 @@ menu "Board Select" config V459_PERF1 - bool "board v459 perf1" - default n - ---help--- - board v459 perf1 + bool "board v459 perf1" + default n + ---help--- + board v459 perf1 config F133_FPGA - bool "board fpga f133" - default n - ---help--- - board f133 fpga + bool "board fpga f133" + default n + ---help--- + board f133 fpga config VVX07H005A10_MIPI - bool "board, disp with VVX07H005A10_mipi" - default n - ---help--- - board, disp with VVX07H005A10_mipi + bool "board, disp with VVX07H005A10_mipi" + default n + ---help--- + board, disp with VVX07H005A10_mipi config TFT08006_MIPI - bool "board, disp with TFT08006_mipi" - default n - ---help--- - board, disp with TFT08006_mipi + bool "board, disp with TFT08006_mipi" + default n + ---help--- + board, disp with TFT08006_mipi config TFT_RGB - bool "board, disp with TFT RGB" - default n - ---help--- - board, disp with TFT RGB + bool "board, disp with TFT RGB" + default n + ---help--- + board, disp with TFT RGB config HE0801A068_MIPI - bool "EVB board, disp with HE0801A068_MIPI" - default n - ---help--- - EVB board, disp with HE0801A068_MIPI + bool "EVB board, disp with HE0801A068_MIPI" + default n + ---help--- + EVB board, disp with HE0801A068_MIPI config DEFAULT_LVDS - bool "board, disp with lvds" - default n - ---help--- - board, disp with lvds + bool "board, disp with lvds" + default n + ---help--- + board, disp with lvds endmenu menu "Soc Select" config ARCH_SUN8IW19 - bool "soc sun8iw19 " - default n - ---help--- - soc sun8iw19 + bool "soc sun8iw19 " + default n + ---help--- + soc sun8iw19 config ARCH_SUN20IW1 - bool "soc sun20iw1 " - default n - ---help--- - soc sun20iw1 + bool "soc sun20iw1 " + default n + ---help--- + soc sun20iw1 endmenu diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/dma/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/dma/Kconfig index 292df4c780..ce071d3f8b 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/dma/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/dma/Kconfig @@ -6,7 +6,7 @@ config DRIVERS_DMA config HAL_TEST_DMA bool "enable dma hal APIs test command" - depends on DRIVERS_DMA + depends on DRIVERS_DMA default n endmenu diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/efuse/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/efuse/Kconfig index 1d09a1acfb..058610146b 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/efuse/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/efuse/Kconfig @@ -6,7 +6,7 @@ config DRIVERS_EFUSE config HAL_TEST_EFUSE bool "enable efuse hal APIs test command" - depends on DRIVERS_EFUSE + depends on DRIVERS_EFUSE default n endmenu diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/g2d_rcq/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/g2d_rcq/Kconfig index 37cec4a5a7..538dc1caf4 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/g2d_rcq/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/g2d_rcq/Kconfig @@ -6,7 +6,7 @@ config DRIVERS_G2D config HAL_TEST_G2D bool "enable g2d hal APIs test command" - depends on DRIVERS_G2D + depends on DRIVERS_G2D default n endmenu diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/gpio/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/gpio/Kconfig index 652f78f830..7558bcca88 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/gpio/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/gpio/Kconfig @@ -6,7 +6,7 @@ config DRIVERS_GPIO config HAL_TEST_GPIO bool "enable gpio hal APIs test command" - depends on DRIVERS_GPIO + depends on DRIVERS_GPIO default n endmenu diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/intc/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/intc/Kconfig index 144111435a..f858249237 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/intc/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/intc/Kconfig @@ -1,15 +1,15 @@ menu "INTC driver" config DRIVERS_INTC - bool "enable INTC driver" - default n + bool "enable INTC driver" + default n menu "INTC option features" config DRIVERS_INTC_FEATURE_1 - bool "INTC feature 1" - select DRIVERS_INTC - default n + bool "INTC feature 1" + select DRIVERS_INTC + default n endmenu diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/mbus/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/mbus/Kconfig index 7b2f94d21a..3d975174cd 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/mbus/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/mbus/Kconfig @@ -5,39 +5,39 @@ config DRIVERS_MBUS default y if DRIVERS_MBUS - config DRIVERS_MBUS_GPU_BW - bool "mbus gpu bandwidth" - default n - config DRIVERS_MBUS_RV_SYS_BW - bool "mbus riscv sys bandwidth" - default n - config DRIVERS_MBUS_MAHB_BW - bool "mbus mahb bandwidth" - default n - config DRIVERS_MBUS_DMA_BW - bool "mbus dma bandwidth" - default n - config DRIVERS_MBUS_CE_BW - bool "mbus ce bandwidth" - default n - config DRIVERS_MBUS_TVD_BW - bool "mbus tvd bandwidth" - default n - config DRIVERS_MBUS_CSI_BW - bool "mbus csi bandwidth" - default n - config DRIVERS_MBUS_DSP_SYS_BW - bool "mbus dsp sys bandwidth" - default n - config DRIVERS_MBUS_G2D_BW - bool "mbus g2d bandwidth" - default n - config DRIVERS_MBUS_DI_BW - bool "mbus di bandwidth" - default n - config DRIVERS_MBUS_IOMMU_BW - bool "mbus iommu bandwidth" - default n + config DRIVERS_MBUS_GPU_BW + bool "mbus gpu bandwidth" + default n + config DRIVERS_MBUS_RV_SYS_BW + bool "mbus riscv sys bandwidth" + default n + config DRIVERS_MBUS_MAHB_BW + bool "mbus mahb bandwidth" + default n + config DRIVERS_MBUS_DMA_BW + bool "mbus dma bandwidth" + default n + config DRIVERS_MBUS_CE_BW + bool "mbus ce bandwidth" + default n + config DRIVERS_MBUS_TVD_BW + bool "mbus tvd bandwidth" + default n + config DRIVERS_MBUS_CSI_BW + bool "mbus csi bandwidth" + default n + config DRIVERS_MBUS_DSP_SYS_BW + bool "mbus dsp sys bandwidth" + default n + config DRIVERS_MBUS_G2D_BW + bool "mbus g2d bandwidth" + default n + config DRIVERS_MBUS_DI_BW + bool "mbus di bandwidth" + default n + config DRIVERS_MBUS_IOMMU_BW + bool "mbus iommu bandwidth" + default n endif config HAL_TEST_MBUS diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/msgbox/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/msgbox/Kconfig index 85d85b6c48..50dce569cc 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/msgbox/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/msgbox/Kconfig @@ -6,12 +6,12 @@ config DRIVERS_MSGBOX config DRIVERS_MSGBOX_SX bool "enable Message Box(SX) driver" - depends on DRIVERS_MSGBOX + depends on DRIVERS_MSGBOX default n config DRIVERS_MSGBOX_AMP bool "enable Message Box(amp) driver" - depends on DRIVERS_MSGBOX + depends on DRIVERS_MSGBOX default n endmenu diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/prcm/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/prcm/Kconfig index 9c2c0c9dfe..0e3473b9c3 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/prcm/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/prcm/Kconfig @@ -6,7 +6,7 @@ config DRIVERS_PRCM config HAL_TEST_PRCM bool "enable prcm hal APIs test command" - depends on DRIVERS_PRCM + depends on DRIVERS_PRCM default n endmenu diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/sdmmc/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/sdmmc/Kconfig index c86e345140..ad2fd2abdf 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/sdmmc/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/sdmmc/Kconfig @@ -7,42 +7,42 @@ config DRIVERS_SDMMC if DRIVERS_SDMMC config USE_SD - bool "enable SD" - default y + bool "enable SD" + default y config USE_SDIO - bool "enable SDIO" - default y + bool "enable SDIO" + default y config USE_MMC - bool "enable mmc" - default n + bool "enable mmc" + default n config DETECT_CARD bool "enable detect card" default y config SDC_DMA_USED - bool "enable dma transmission" - default y + bool "enable dma transmission" + default y config SDIO_IRQ_SUPPORT - bool "enable sdio irq" - default y + bool "enable sdio irq" + default y config SD_TEST - select USE_SD - bool "enable SD Card test case." - default y + select USE_SD + bool "enable SD Card test case." + default y config SDC_DMA_BUF_SIZE - int "SD Card Align DMA Buffer Size(Kbyte)." - depends on SDC_DMA_USED - default 64 + int "SD Card Align DMA Buffer Size(Kbyte)." + depends on SDC_DMA_USED + default 64 config DRIVERS_SDC_CDPIN_PRESENT_VAL int "sdc card detect pin present value" - default 0 + default 0 endif endmenu diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/Kconfig index 4368ef68d1..9e6e9b72ab 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/Kconfig @@ -1,6 +1,6 @@ menuconfig DRIVERS_SOUND - bool "Sound card support" - default y + bool "Sound card support" + default y if DRIVERS_SOUND source "drivers/hal/source/sound/codecs/Kconfig" diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/codecs/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/codecs/Kconfig index f8778cb7ef..6049e72aec 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/codecs/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/codecs/Kconfig @@ -1,42 +1,42 @@ menu "AllWinner CODEC drivers" config SND_CODEC_SUNXI_RWFUNC - bool - default n + bool + default n config SND_CODEC_SUN8IW18_AUDIOCODEC - bool "Allwinner AudioCodec support" - default n - select SND_PLATFORM_SUNXI_CPUDAI - select SND_PLATFORM_SUNXI_PCM - select SND_CODEC_SUNXI_RWFUNC - depends on (ARCH_SUN8IW18P1 || ARCH_SUN8IW18) - help - Select Y to add support the Codec embedded in the Allwinner - sun8iw18 and affiliated SoCs. + bool "Allwinner AudioCodec support" + default n + select SND_PLATFORM_SUNXI_CPUDAI + select SND_PLATFORM_SUNXI_PCM + select SND_CODEC_SUNXI_RWFUNC + depends on (ARCH_SUN8IW18P1 || ARCH_SUN8IW18) + help + Select Y to add support the Codec embedded in the Allwinner + sun8iw18 and affiliated SoCs. config SND_CODEC_SUN8IW19_AUDIOCODEC - bool "Allwinner AudioCodec support" - default n - select SND_PLATFORM_SUNXI_CPUDAI - select SND_PLATFORM_SUNXI_PCM - depends on (ARCH_SUN8IW19P1 || ARCH_SUN8IW19) - help - Select Y to add support the Codec embedded in the Allwinner - sun8iw19 and affiliated SoCs. + bool "Allwinner AudioCodec support" + default n + select SND_PLATFORM_SUNXI_CPUDAI + select SND_PLATFORM_SUNXI_PCM + depends on (ARCH_SUN8IW19P1 || ARCH_SUN8IW19) + help + Select Y to add support the Codec embedded in the Allwinner + sun8iw19 and affiliated SoCs. config SND_CODEC_SUN8IW20_AUDIOCODEC - bool "Allwinner AudioCodec support" - default n - select SND_PLATFORM_SUNXI_CPUDAI - select SND_PLATFORM_SUNXI_PCM - depends on SOC_SUN20IW1P1 - help - Select Y to add support the Codec embedded in the Allwinner - sun8iw20 and affiliated SoCs. + bool "Allwinner AudioCodec support" + default n + select SND_PLATFORM_SUNXI_CPUDAI + select SND_PLATFORM_SUNXI_PCM + depends on SOC_SUN20IW1P1 + help + Select Y to add support the Codec embedded in the Allwinner + sun8iw20 and affiliated SoCs. config SND_CODEC_AC108 - bool "Sunxi AC108 codec" - default n + bool "Sunxi AC108 codec" + default n endmenu diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/component/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/component/Kconfig index cf80c4a6df..65ba67326b 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/component/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/component/Kconfig @@ -1,24 +1,24 @@ menu "AW Sound Compenents" config COMPONENTS_AW_ALSA_LIB - bool "Allwinner alsa library" - depends on DRIVERS_SOUND - default n - help - This is library package for aw-alsa, only used for Allwinner FreeRTOS. + bool "Allwinner alsa library" + depends on DRIVERS_SOUND + default n + help + This is library package for aw-alsa, only used for Allwinner FreeRTOS. config COMPONENTS_AW_ALSA_UTILS - bool "Allwinner alsa utilities" - depends on COMPONENTS_AW_ALSA_LIB - default n - help - This is package for aw-alsa-lib utilities, only used for Allwinner Tina RTOS. + bool "Allwinner alsa utilities" + depends on COMPONENTS_AW_ALSA_LIB + default n + help + This is package for aw-alsa-lib utilities, only used for Allwinner Tina RTOS. config BUILTIN_WAV_FILE - bool "builtin wav file" - depends on COMPONENTS_AW_ALSA_UTILS - default y - help - Say Y to use builtin wav file. + bool "builtin wav file" + depends on COMPONENTS_AW_ALSA_UTILS + default y + help + Say Y to use builtin wav file. endmenu diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/platform/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/platform/Kconfig index b8a5a2e3b9..090567f64b 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/platform/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/platform/Kconfig @@ -1,82 +1,82 @@ menu "Platform(Audio Interface) drivers" config SND_PLATFORM_SUNXI_PCM - bool - default n + bool + default n config SND_PLATFORM_SUNXI_CPUDAI - bool "Allwinner internal cpudai" - select SND_PLATFORM_SUNXI_PCM - default n - help - Only support for the Codec embedded in the Allwinner SoCs. + bool "Allwinner internal cpudai" + select SND_PLATFORM_SUNXI_PCM + default n + help + Only support for the Codec embedded in the Allwinner SoCs. config SND_PLATFORM_SUNXI_DAUDIO - bool "Allwinner Digital Audio Support" - select SND_PLATFORM_SUNXI_PCM - depends on (!ARCH_SUN8IW19) - default n - help - Select Y to add support for I2S/PCM/TDM module in Allwinner SoCs. + bool "Allwinner Digital Audio Support" + select SND_PLATFORM_SUNXI_PCM + depends on (!ARCH_SUN8IW19) + default n + help + Select Y to add support for I2S/PCM/TDM module in Allwinner SoCs. config SND_PLATFORM_SUN8IW19_DAUDIO - bool "Allwinner Digital Audio Support" - select SND_PLATFORM_SUNXI_PCM - depends on (ARCH_SUN8IW19P1 || ARCH_SUN8IW19) - default n - help - Select Y to add support for I2S/PCM/TDM module in Allwinner SoCs. + bool "Allwinner Digital Audio Support" + select SND_PLATFORM_SUNXI_PCM + depends on (ARCH_SUN8IW19P1 || ARCH_SUN8IW19) + default n + help + Select Y to add support for I2S/PCM/TDM module in Allwinner SoCs. if SND_PLATFORM_SUNXI_DAUDIO || SND_PLATFORM_SUN8IW19_DAUDIO menu "Allwinner Digital Audio Choose" config SND_PLATFORM_SUNXI_DAUDIO0 - bool "Allwinner Daudio0 Support" - default n - help - Select Y to add support for Daudio0. + bool "Allwinner Daudio0 Support" + default n + help + Select Y to add support for Daudio0. config SND_PLATFORM_SUNXI_DAUDIO1 - bool "Allwinner Daudio1 Support" - default n - help - Select Y to add support for Daudio1. + bool "Allwinner Daudio1 Support" + default n + help + Select Y to add support for Daudio1. config SND_PLATFORM_SUNXI_DAUDIO2 - bool "Allwinner Daudio2 Support" - depends on (!SND_PLATFORM_SUN8IW19_DAUDIO) - default n - help - Select Y to add support for Daudio2. + bool "Allwinner Daudio2 Support" + depends on (!SND_PLATFORM_SUN8IW19_DAUDIO) + default n + help + Select Y to add support for Daudio2. config SND_PLATFORM_SUNXI_DAUDIO3 - bool "Allwinner Daudio3 Support" - depends on (!SND_PLATFORM_SUN8IW19_DAUDIO) - default n - help - Select Y to add support for Daudio3. + bool "Allwinner Daudio3 Support" + depends on (!SND_PLATFORM_SUN8IW19_DAUDIO) + default n + help + Select Y to add support for Daudio3. endmenu endif config SND_PLATFORM_SUNXI_DMIC - bool "Allwinner DMIC Support" - select SND_PLATFORM_SUNXI_PCM - select SND_CODEC_DUMMY - default n - help - Select Y to add support for DMIC module in Allwinner SoCs. + bool "Allwinner DMIC Support" + select SND_PLATFORM_SUNXI_PCM + select SND_CODEC_DUMMY + default n + help + Select Y to add support for DMIC module in Allwinner SoCs. config SND_PLATFORM_SUNXI_SPDIF - bool "Allwinner SPDIF Support" - select SND_PLATFORM_SUNXI_PCM - select SND_CODEC_DUMMY - default n - help - Select Y to add support for SPDIF module in Allwinner SoCs. + bool "Allwinner SPDIF Support" + select SND_PLATFORM_SUNXI_PCM + select SND_CODEC_DUMMY + default n + help + Select Y to add support for SPDIF module in Allwinner SoCs. config SND_SUNXI_DEBUG - bool "Allwinner Audio Debug Support" - default n - help - Select Y to add support for audio debug in Allwinner SoCs. + bool "Allwinner Audio Debug Support" + default n + help + Select Y to add support for audio debug in Allwinner SoCs. endmenu diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/thermal/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/thermal/Kconfig index 6ddc4d2454..451ed21ca3 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/thermal/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/thermal/Kconfig @@ -7,7 +7,7 @@ config DRIVERS_THERMAL config HAL_TEST_THERMAL bool "enable thermal hal APIs test command" - depends on DRIVERS_THERMAL + depends on DRIVERS_THERMAL default n diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/uart/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/uart/Kconfig index 07f786d63d..27d3b6fff0 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/uart/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/uart/Kconfig @@ -6,32 +6,32 @@ config DRIVERS_UART config HAL_TEST_UART bool "enable uart hal APIs test command" - depends on DRIVERS_UART + depends on DRIVERS_UART default n config SUNXI_UART_SUPPORT_POLL bool "support poll APIs" - depends on DRIVERS_UART + depends on DRIVERS_UART default n config SUNXI_UART_REGISTER_UART0 bool "support uart0 device" - depends on DRIVERS_UART + depends on DRIVERS_UART default n config SUNXI_UART_REGISTER_UART1 bool "support uart1 device" - depends on DRIVERS_UART + depends on DRIVERS_UART default n config SUNXI_UART_REGISTER_UART2 bool "support uart2 device" - depends on DRIVERS_UART + depends on DRIVERS_UART default n config SUNXI_UART_REGISTER_UART3 bool "support uart3 device" - depends on DRIVERS_UART + depends on DRIVERS_UART default n endmenu diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/Kconfig b/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/Kconfig index 487babc445..22e0b9334c 100644 --- a/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/Kconfig +++ b/bsp/allwinner/libraries/sunxi-hal/hal/source/usb/Kconfig @@ -1,6 +1,6 @@ menuconfig DRIVERS_USB - bool "USB Drivers" - default y + bool "USB Drivers" + default y if DRIVERS_USB menu "USB HOST" @@ -10,24 +10,24 @@ config USB_HOST default n config HAL_TEST_HCI - bool "enable HCI hal APIs test command" - depends on USB_HOST - default n + bool "enable HCI hal APIs test command" + depends on USB_HOST + default n config USB_STORAGE - bool "USB Mass Storage support" - depends on USB_HOST - default n + bool "USB Mass Storage support" + depends on USB_HOST + default n config USB_CAMERA - bool "UVC support" - depends on USB_HOST - default n + bool "UVC support" + depends on USB_HOST + default n config USB_HID - bool "USB HID support" - depends on USB_HOST - default n + bool "USB HID support" + depends on USB_HOST + default n endmenu menu "USB DEVICE" @@ -37,13 +37,13 @@ config USB_DEVICE default y config HAL_TEST_UDC - bool "enable udc hal APIs test command" - depends on USB_DEVICE - default y + bool "enable udc hal APIs test command" + depends on USB_DEVICE + default y endmenu config USB_MANAGER - bool "USB Manager support" - default n + bool "USB Manager support" + default n endif diff --git a/bsp/allwinner_tina/Kconfig b/bsp/allwinner_tina/Kconfig index 1f976aa50e..c0782adb8f 100644 --- a/bsp/allwinner_tina/Kconfig +++ b/bsp/allwinner_tina/Kconfig @@ -22,7 +22,7 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" config SOC_TINA - bool + bool select ARCH_ARM_ARM9 select RT_USING_CACHE select RT_USING_COMPONENTS_INIT diff --git a/bsp/amebaz/Kconfig b/bsp/amebaz/Kconfig index 0c177e6d1a..2fb891e868 100644 --- a/bsp/amebaz/Kconfig +++ b/bsp/amebaz/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../.." - + # you can change the RTT_ROOT default "../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" @@ -17,7 +17,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + config ENV_DIR string option env="ENV_ROOT" diff --git a/bsp/apm32/apm32f072vb-miniboard/board/Kconfig b/bsp/apm32/apm32f072vb-miniboard/board/Kconfig index 42cbfabb9d..abccded17c 100644 --- a/bsp/apm32/apm32f072vb-miniboard/board/Kconfig +++ b/bsp/apm32/apm32f072vb-miniboard/board/Kconfig @@ -30,7 +30,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART2" default n endif - + menuconfig BSP_USING_ADC bool "Enable ADC" default n @@ -40,7 +40,7 @@ menu "On-chip Peripheral Drivers" bool "Enable ADC1" default n endif - + menuconfig BSP_USING_DAC bool "Enable DAC" default n @@ -50,7 +50,7 @@ menu "On-chip Peripheral Drivers" bool "Enable DAC1" default n endif - + menuconfig BSP_USING_ONCHIP_RTC bool "Enable RTC" select RT_USING_RTC @@ -67,7 +67,7 @@ menu "On-chip Peripheral Drivers" bool "RTC USING LSI" endchoice endif - + menuconfig BSP_USING_I2C bool "Enable I2C BUS (software simulation)" default n @@ -115,7 +115,7 @@ menu "On-chip Peripheral Drivers" default 41 endif endif - + menuconfig BSP_USING_SPI bool "Enable SPI" default n @@ -129,7 +129,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI2" default n endif - + menuconfig BSP_USING_TMR bool "Enable Timer" default n @@ -158,20 +158,20 @@ menu "On-chip Peripheral Drivers" config BSP_USING_TMR14 bool "Enable TMR14" default n - + config BSP_USING_TMR15 bool "Enable TMR15" default n - + config BSP_USING_TMR16 bool "Enable TMR16" default n - + config BSP_USING_TMR17 bool "Enable TMR17" default n endif - + menuconfig BSP_USING_PWM bool "Enable PWM" default n @@ -198,12 +198,12 @@ menu "On-chip Peripheral Drivers" default n endif endif - + config BSP_USING_WDT bool "Enable Watchdog Timer" select RT_USING_WDT default n - + endmenu menu "Board extended module Drivers" diff --git a/bsp/apm32/libraries/APM32F0xx_Library/SConscript b/bsp/apm32/libraries/APM32F0xx_Library/SConscript index fe845e860f..1b92cdd055 100644 --- a/bsp/apm32/libraries/APM32F0xx_Library/SConscript +++ b/bsp/apm32/libraries/APM32F0xx_Library/SConscript @@ -31,15 +31,15 @@ if GetDepend(['RT_USING_SPI']): if GetDepend(['RT_USING_HWTIMER']) or GetDepend(['RT_USING_PWM']): src += ['APM32F0xx_StdPeriphDriver/src/apm32f0xx_tmr.c'] - + if GetDepend(['RT_USING_WDT']): src += ['APM32F0xx_StdPeriphDriver/src/apm32f0xx_wwdt.c'] src += ['APM32F0xx_StdPeriphDriver/src/apm32f0xx_iwdt.c'] - + if GetDepend(['RT_USING_CAN']): src += ['APM32F0xx_StdPeriphDriver/src/apm32f0xx_can.c'] - -path = [cwd + '/Device/Geehy/APM32F0xx/Include', + +path = [cwd + '/Device/Geehy/APM32F0xx/Include', cwd + '/APM32F0xx_StdPeriphDriver/inc', cwd + '/CMSIS/Include'] diff --git a/bsp/apm32/libraries/APM32F10x_Library/SConscript b/bsp/apm32/libraries/APM32F10x_Library/SConscript index 022b665adc..e625fc7d38 100644 --- a/bsp/apm32/libraries/APM32F10x_Library/SConscript +++ b/bsp/apm32/libraries/APM32F10x_Library/SConscript @@ -30,15 +30,15 @@ if GetDepend(['RT_USING_SPI']): if GetDepend(['RT_USING_HWTIMER']) or GetDepend(['RT_USING_PWM']): src += ['APM32F10x_StdPeriphDriver/src/apm32f10x_tmr.c'] - + if GetDepend(['RT_USING_WDT']): src += ['APM32F10x_StdPeriphDriver/src/apm32f10x_wwdt.c'] src += ['APM32F10x_StdPeriphDriver/src/apm32f10x_iwdt.c'] - + if GetDepend(['BSP_USING_ETH']): src += ['APM32F10x_ETH_Driver/src/apm32f10x_eth.c'] - -path = [cwd + '/Device/Geehy/APM32F10x/Include', + +path = [cwd + '/Device/Geehy/APM32F10x/Include', cwd + '/APM32F10x_StdPeriphDriver/inc', cwd + '/CMSIS/Include', cwd + '/APM32F10x_ETH_Driver/inc'] diff --git a/bsp/apm32/libraries/APM32F4xx_Library/SConscript b/bsp/apm32/libraries/APM32F4xx_Library/SConscript index 74d77c1e55..53bc783b2e 100644 --- a/bsp/apm32/libraries/APM32F4xx_Library/SConscript +++ b/bsp/apm32/libraries/APM32F4xx_Library/SConscript @@ -31,15 +31,15 @@ if GetDepend(['RT_USING_SPI']): if GetDepend(['RT_USING_HWTIMER']) or GetDepend(['RT_USING_PWM']): src += ['APM32F4xx_StdPeriphDriver/src/apm32f4xx_tmr.c'] - + if GetDepend(['RT_USING_WDT']): src += ['APM32F4xx_StdPeriphDriver/src/apm32f4xx_wwdt.c'] src += ['APM32F4xx_StdPeriphDriver/src/apm32f4xx_iwdt.c'] - + if GetDepend(['BSP_USING_ETH']): src += ['APM32F4xx_ETH_Driver/src/apm32f4xx_eth.c'] - -path = [cwd + '/Device/Geehy/APM32F4xx/Include', + +path = [cwd + '/Device/Geehy/APM32F4xx/Include', cwd + '/APM32F4xx_StdPeriphDriver/inc', cwd + '/CMSIS/Include', cwd + '/APM32F4xx_ETH_Driver/inc'] diff --git a/bsp/apm32/libraries/Drivers/SConscript b/bsp/apm32/libraries/Drivers/SConscript index 128c5e3cd6..0322c958e6 100644 --- a/bsp/apm32/libraries/Drivers/SConscript +++ b/bsp/apm32/libraries/Drivers/SConscript @@ -25,7 +25,7 @@ if GetDepend(['RT_USING_DAC']): if GetDepend('BSP_USING_ONCHIP_RTC'): src += ['drv_rtc.c'] - + if GetDepend(['RT_USING_I2C']): if GetDepend('BSP_USING_I2C1') or GetDepend('BSP_USING_I2C2') or GetDepend('BSP_USING_I2C3') or GetDepend('BSP_USING_I2C4'): src += ['drv_soft_i2c.c'] diff --git a/bsp/apm32/libraries/Kconfig b/bsp/apm32/libraries/Kconfig index 73e938b2c0..036a4c2aef 100644 --- a/bsp/apm32/libraries/Kconfig +++ b/bsp/apm32/libraries/Kconfig @@ -14,4 +14,4 @@ config SOC_SERIES_APM32F1 config SOC_SERIES_APM32F4 bool select ARCH_ARM_CORTEX_M4 - select SOC_FAMILY_APM32 \ No newline at end of file + select SOC_FAMILY_APM32 diff --git a/bsp/apollo2/Kconfig b/bsp/apollo2/Kconfig index f08654dc61..a5e2e336a4 100644 --- a/bsp/apollo2/Kconfig +++ b/bsp/apollo2/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../.." - + # you can change the RTT_ROOT default "../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" @@ -17,7 +17,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + config ENV_DIR string option env="ENV_ROOT" @@ -27,7 +27,7 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" config SOC_APOLLO2 - bool + bool select ARCH_ARM_CORTEX_M4 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN diff --git a/bsp/apollo2/SConstruct b/bsp/apollo2/SConstruct index ad30eafe90..b843d54532 100644 --- a/bsp/apollo2/SConstruct +++ b/bsp/apollo2/SConstruct @@ -14,16 +14,16 @@ TARGET = 'rtthread_apollo2.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: - env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) - env.Replace(ARFLAGS = ['']) - env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) + env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) + env.Replace(ARFLAGS = ['']) + env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) Export('RTT_ROOT') Export('rtconfig') diff --git a/bsp/apollo2/board/SConscript b/bsp/apollo2/board/SConscript index ce5e82d5dd..dde36d9762 100644 --- a/bsp/apollo2/board/SConscript +++ b/bsp/apollo2/board/SConscript @@ -11,4 +11,4 @@ CPPPATH = [cwd] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/apollo2/libraries/startup/SConscript b/bsp/apollo2/libraries/startup/SConscript index fc352aceff..eb0301121e 100644 --- a/bsp/apollo2/libraries/startup/SConscript +++ b/bsp/apollo2/libraries/startup/SConscript @@ -9,7 +9,7 @@ src = Split(""" """) -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: src = src + ['gcc/' + 'startup_gcc.c'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: diff --git a/bsp/asm9260t/Kconfig b/bsp/asm9260t/Kconfig index c279ec11c8..38b5fb09a8 100644 --- a/bsp/asm9260t/Kconfig +++ b/bsp/asm9260t/Kconfig @@ -27,18 +27,18 @@ config SOC_AT91SAM926 config RT_USING_UART0 bool "Using RT_USING_UART0" - default n - + default n + config RT_USING_UART3 bool "Using RT_USING_UART3" - default y - + default y + config RT_USING_UART4 bool "Using RT_USING_UART4" - default n - + default n + config RT_USING_LED - bool "Using RT_USING_LED" - default y - help - led blink demo + bool "Using RT_USING_LED" + default y + help + led blink demo diff --git a/bsp/asm9260t/SConstruct b/bsp/asm9260t/SConstruct index 9705c3e75b..48d7e21e44 100644 --- a/bsp/asm9260t/SConstruct +++ b/bsp/asm9260t/SConstruct @@ -14,10 +14,10 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/at32/at32f403a-start/board/Kconfig b/bsp/at32/at32f403a-start/board/Kconfig index c68c21c5ab..8ed97d64b6 100644 --- a/bsp/at32/at32f403a-start/board/Kconfig +++ b/bsp/at32/at32f403a-start/board/Kconfig @@ -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_RTC bool "Enable RTC" diff --git a/bsp/at32/at32f403a-start/board/SConscript b/bsp/at32/at32f403a-start/board/SConscript index 1412ec8e61..7b6cfacf83 100644 --- a/bsp/at32/at32f403a-start/board/SConscript +++ b/bsp/at32/at32f403a-start/board/SConscript @@ -23,7 +23,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f403a_407.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f403a_407.s'] - + CPPDEFINES = ['AT32F403AVGT7'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/at32/at32f407-start/board/Kconfig b/bsp/at32/at32f407-start/board/Kconfig index e91892cbf0..f3b44c094c 100644 --- a/bsp/at32/at32f407-start/board/Kconfig +++ b/bsp/at32/at32f407-start/board/Kconfig @@ -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_EMAC bool "Enable Ethernet" diff --git a/bsp/at32/at32f407-start/board/SConscript b/bsp/at32/at32f407-start/board/SConscript index 82e1ad7c83..970e269ef9 100644 --- a/bsp/at32/at32f407-start/board/SConscript +++ b/bsp/at32/at32f407-start/board/SConscript @@ -23,7 +23,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f403a_407.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f403a_407.s'] - + CPPDEFINES = ['AT32F407VGT7'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/at32/at32f413-start/board/Kconfig b/bsp/at32/at32f413-start/board/Kconfig index be29b759d6..ef44a2848f 100644 --- a/bsp/at32/at32f413-start/board/Kconfig +++ b/bsp/at32/at32f413-start/board/Kconfig @@ -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_RTC bool "Enable RTC" diff --git a/bsp/at32/at32f413-start/board/SConscript b/bsp/at32/at32f413-start/board/SConscript index 7195c2f83f..25089755a7 100644 --- a/bsp/at32/at32f413-start/board/SConscript +++ b/bsp/at32/at32f413-start/board/SConscript @@ -23,7 +23,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/AT32F413_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f413.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/AT32F413_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f413.s'] - + CPPDEFINES = ['AT32F413RCT7'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/at32/at32f415-start/board/Kconfig b/bsp/at32/at32f415-start/board/Kconfig index 08d9249efc..a33314f349 100644 --- a/bsp/at32/at32f415-start/board/Kconfig +++ b/bsp/at32/at32f415-start/board/Kconfig @@ -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_RTC bool "Enable RTC" diff --git a/bsp/at32/at32f415-start/board/SConscript b/bsp/at32/at32f415-start/board/SConscript index 6b0b922ebd..e3c47cd030 100644 --- a/bsp/at32/at32f415-start/board/SConscript +++ b/bsp/at32/at32f415-start/board/SConscript @@ -23,7 +23,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/AT32F415_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f415.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/AT32F415_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f415.s'] - + CPPDEFINES = ['AT32F415RCT7'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/at32/at32f435-start/board/Kconfig b/bsp/at32/at32f435-start/board/Kconfig index e7e912c575..3d988fbd5a 100644 --- a/bsp/at32/at32f435-start/board/Kconfig +++ b/bsp/at32/at32f435-start/board/Kconfig @@ -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_QSPI bool "Enable QSPI BUS" diff --git a/bsp/at32/at32f435-start/board/SConscript b/bsp/at32/at32f435-start/board/SConscript index 9ef9f730dc..e1c7332678 100644 --- a/bsp/at32/at32f435-start/board/SConscript +++ b/bsp/at32/at32f435-start/board/SConscript @@ -23,7 +23,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f435_437.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f435_437.s'] - + CPPDEFINES = ['AT32F435ZMT7'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/at32/at32f437-start/board/Kconfig b/bsp/at32/at32f437-start/board/Kconfig index 7f6f34668f..ed7ceb3285 100644 --- a/bsp/at32/at32f437-start/board/Kconfig +++ b/bsp/at32/at32f437-start/board/Kconfig @@ -30,7 +30,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_ON_CHIP_FLASH bool "Enable on-chip FLASH" - default n + default n config BSP_USING_EMAC bool "Enable Ethernet" diff --git a/bsp/at32/at32f437-start/board/SConscript b/bsp/at32/at32f437-start/board/SConscript index cb9ea80bbd..8bb152e1b7 100644 --- a/bsp/at32/at32f437-start/board/SConscript +++ b/bsp/at32/at32f437-start/board/SConscript @@ -23,7 +23,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f435_437.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f435_437.s'] - + CPPDEFINES = ['AT32F437ZMT7'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/at91/at91sam9260/Kconfig b/bsp/at91/at91sam9260/Kconfig index ae0f2fcd0b..a072544318 100644 --- a/bsp/at91/at91sam9260/Kconfig +++ b/bsp/at91/at91sam9260/Kconfig @@ -19,35 +19,35 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" config SOC_AT91SAM926 - bool + bool select RT_USING_CACHE select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN - default y + default y config RT_USING_DBGU bool "Using RT_USING_DBGU" - default y - + default y + config RT_USING_UART0 bool "Using RT_USING_UART0" - default n - + default n + config RT_USING_UART1 bool "Using RT_USING_UART1" - default n - + default n + config RT_USING_UART2 bool "Using RT_USING_UART2" - default n - + default n + config RT_USING_UART3 bool "Using RT_USING_UART3" - default n - + default n + config RT_USING_LED - bool "Using RT_USING_LED" - default y - help - led blink demo - + bool "Using RT_USING_LED" + default y + help + led blink demo + diff --git a/bsp/at91/at91sam9260/SConstruct b/bsp/at91/at91sam9260/SConstruct index 915fe225fc..9bc0383e24 100644 --- a/bsp/at91/at91sam9260/SConstruct +++ b/bsp/at91/at91sam9260/SConstruct @@ -14,10 +14,10 @@ TARGET = 'rtthread-at91sam9260.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/at91/at91sam9260/drivers/SConscript b/bsp/at91/at91sam9260/drivers/SConscript index e30cf28176..13402ecb14 100644 --- a/bsp/at91/at91sam9260/drivers/SConscript +++ b/bsp/at91/at91sam9260/drivers/SConscript @@ -12,20 +12,20 @@ usart.c # add Ethernet drvers. if GetDepend('RT_USING_LED'): - src += ['led.c'] + src += ['led.c'] if GetDepend('RT_USING_SDIO'): - src += ['at91_mci.c'] + src += ['at91_mci.c'] if GetDepend('RT_USING_LWIP'): - src += ['macb.c'] + src += ['macb.c'] if GetDepend('RT_USING_I2C') and GetDepend('RT_USING_I2C_BITOPS'): - src += ['at91_i2c_gpio.c'] + src += ['at91_i2c_gpio.c'] if GetDepend('RT_USING_MTD_NAND'): src += ['at91_nand.c'] - + CPPPATH = [cwd] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/at91/at91sam9260/platform/SConscript b/bsp/at91/at91sam9260/platform/SConscript index 8c9a16e0a6..343704ad94 100644 --- a/bsp/at91/at91sam9260/platform/SConscript +++ b/bsp/at91/at91sam9260/platform/SConscript @@ -7,16 +7,16 @@ CPPPATH = [cwd] # The set of source files associated with this SConscript file. if rtconfig.PLATFORM in ['armcc', 'armclang']: - src = Glob('*.c') + Glob('*_rvds.S') + src = Glob('*.c') + Glob('*_rvds.S') if rtconfig.PLATFORM in ['gcc']: - src = Glob('*.c') + Glob('*_gcc.S') + Glob('*_init.S') + src = Glob('*.c') + Glob('*_gcc.S') + Glob('*_init.S') if rtconfig.PLATFORM in ['iccarm']: - src = Glob('*.c') + Glob('*_iar.S') + src = Glob('*.c') + Glob('*_iar.S') if rtconfig.PLATFORM in ['cl', 'mingw']: - src = Glob('*.c') + src = Glob('*.c') group = DefineGroup('Platform', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/at91/at91sam9g45/Kconfig b/bsp/at91/at91sam9g45/Kconfig index 6cfd7c51db..34ca168320 100644 --- a/bsp/at91/at91sam9g45/Kconfig +++ b/bsp/at91/at91sam9g45/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" @@ -17,7 +17,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + config ENV_DIR string option env="ENV_ROOT" @@ -27,7 +27,7 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" config SOC_AT91SAM9G45 - bool + bool select ARCH_ARM_ARM9 select RT_USING_CACHE select RT_USING_COMPONENTS_INIT diff --git a/bsp/at91/at91sam9g45/SConstruct b/bsp/at91/at91sam9g45/SConstruct index 41b86e20a7..67389c71d5 100644 --- a/bsp/at91/at91sam9g45/SConstruct +++ b/bsp/at91/at91sam9g45/SConstruct @@ -14,11 +14,11 @@ TARGET = 'rtthread-at91sam9g45.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/at91/at91sam9g45/drivers/SConscript b/bsp/at91/at91sam9g45/drivers/SConscript index d0470f9049..6425c453f5 100644 --- a/bsp/at91/at91sam9g45/drivers/SConscript +++ b/bsp/at91/at91sam9g45/drivers/SConscript @@ -12,18 +12,18 @@ usart.c # add Ethernet drvers. if GetDepend('RT_USING_LED'): - src += ['led.c'] + src += ['led.c'] if GetDepend('RT_USING_SDIO'): - src += ['at91_mci.c'] + src += ['at91_mci.c'] if GetDepend('RT_USING_LWIP'): - src += ['macb.c'] + src += ['macb.c'] if GetDepend('RT_USING_I2C') and GetDepend('RT_USING_I2C_BITOPS'): - src += ['at91_i2c_gpio.c'] + src += ['at91_i2c_gpio.c'] + - CPPPATH = [cwd] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/at91/at91sam9g45/platform/SConscript b/bsp/at91/at91sam9g45/platform/SConscript index 8c9a16e0a6..343704ad94 100644 --- a/bsp/at91/at91sam9g45/platform/SConscript +++ b/bsp/at91/at91sam9g45/platform/SConscript @@ -7,16 +7,16 @@ CPPPATH = [cwd] # The set of source files associated with this SConscript file. if rtconfig.PLATFORM in ['armcc', 'armclang']: - src = Glob('*.c') + Glob('*_rvds.S') + src = Glob('*.c') + Glob('*_rvds.S') if rtconfig.PLATFORM in ['gcc']: - src = Glob('*.c') + Glob('*_gcc.S') + Glob('*_init.S') + src = Glob('*.c') + Glob('*_gcc.S') + Glob('*_init.S') if rtconfig.PLATFORM in ['iccarm']: - src = Glob('*.c') + Glob('*_iar.S') + src = Glob('*.c') + Glob('*_iar.S') if rtconfig.PLATFORM in ['cl', 'mingw']: - src = Glob('*.c') + src = Glob('*.c') group = DefineGroup('Platform', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/avr32uc3b0/Kconfig b/bsp/avr32uc3b0/Kconfig index 1f630727f9..c89e428345 100644 --- a/bsp/avr32uc3b0/Kconfig +++ b/bsp/avr32uc3b0/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../.." - + # you can change the RTT_ROOT default "../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" @@ -17,7 +17,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + config ENV_DIR string option env="ENV_ROOT" diff --git a/bsp/avr32uc3b0/SConscript b/bsp/avr32uc3b0/SConscript index d08741a975..412aaa5dbd 100644 --- a/bsp/avr32uc3b0/SConscript +++ b/bsp/avr32uc3b0/SConscript @@ -4,7 +4,7 @@ from building import * src_bsp = ['application.c', 'startup.c', 'board.c'] -src = File(src_bsp) +src = File(src_bsp) CPPPATH = [RTT_ROOT + '/bsp/avr32uc3b0'] group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/avr32uc3b0/SConstruct b/bsp/avr32uc3b0/SConstruct index 7aa9edb06e..5791ea73cf 100644 --- a/bsp/avr32uc3b0/SConstruct +++ b/bsp/avr32uc3b0/SConstruct @@ -1,7 +1,7 @@ import os import sys import rtconfig - + if os.getenv('RTT_ROOT'): RTT_ROOT = os.getenv('RTT_ROOT') else: @@ -9,9 +9,9 @@ else: sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] from building import * - + TARGET = 'rtthread-' + rtconfig.ARCH + '.' + rtconfig.TARGET_EXT - + DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, @@ -19,15 +19,15 @@ env = Environment(tools = ['mingw'], AR = rtconfig.AR, ARFLAGS = '-rc', LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) - + Export('RTT_ROOT') Export('rtconfig') - + # prepare building environment objs = PrepareBuilding(env, RTT_ROOT) - + # AVR32 software framework building script objs = objs + SConscript(RTT_ROOT + '/bsp/avr32uc3b0/SOFTWARE_FRAMEWORK/SConscript', variant_dir='bsp/SOFTWARE_FRAMEWORK', duplicate=0) - + # make a building DoBuilding(TARGET, objs) diff --git a/bsp/beaglebone/Kconfig b/bsp/beaglebone/Kconfig index e11366d39a..e85f746a16 100644 --- a/bsp/beaglebone/Kconfig +++ b/bsp/beaglebone/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../.." - + # you can change the RTT_ROOT default "../.." to your rtthread_root, # example: default "F:/git_repositories/rt-thread" @@ -17,7 +17,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + config ENV_DIR string option env="ENV_ROOT" @@ -27,7 +27,7 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" config SOC_AM335X - bool + bool select RT_USING_CACHE select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN diff --git a/bsp/beaglebone/SConstruct b/bsp/beaglebone/SConstruct index ef5574dd60..f36ad90446 100644 --- a/bsp/beaglebone/SConstruct +++ b/bsp/beaglebone/SConstruct @@ -14,11 +14,11 @@ TARGET = 'rtthread-beaglebone.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - CXX= rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + CXX= rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/beaglebone/drivers/SConscript b/bsp/beaglebone/drivers/SConscript index a630c8a7c4..55798fd621 100644 --- a/bsp/beaglebone/drivers/SConscript +++ b/bsp/beaglebone/drivers/SConscript @@ -4,7 +4,7 @@ Import('rtconfig') from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') # remove no need file. if GetDepend('RT_USING_LWIP') == False: diff --git a/bsp/bl808/m0/drivers/Kconfig b/bsp/bl808/m0/drivers/Kconfig index 3a03f5dea9..eca0033e7b 100644 --- a/bsp/bl808/m0/drivers/Kconfig +++ b/bsp/bl808/m0/drivers/Kconfig @@ -1,6 +1,6 @@ menu "BL808_M0 Hardware Drivers Config" config SOC_BL808 - bool + bool select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN select ARCH_RISCV_FPU_S diff --git a/bsp/bl808/m0/drivers/SConscript b/bsp/bl808/m0/drivers/SConscript index eb7ce90dcd..ec21bcac6b 100644 --- a/bsp/bl808/m0/drivers/SConscript +++ b/bsp/bl808/m0/drivers/SConscript @@ -14,7 +14,7 @@ if GetDepend(['RT_USING_SERIAL']): src += ['drv_uart_v2.c'] else: src += ['drv_uart.c'] - + # if GetDepend('RT_USING_PIN'): # src += ['drv_gpio.c'] diff --git a/bsp/bl808/m0/libraries/SConscript b/bsp/bl808/m0/libraries/SConscript index d7ca63aa41..f7efb7fda7 100644 --- a/bsp/bl808/m0/libraries/SConscript +++ b/bsp/bl808/m0/libraries/SConscript @@ -5,89 +5,89 @@ cwd = GetCurrentDir() # add general drivers src = Split(''' - platform/soc/bl808/startup_bl808/evb/src/startup_interrupt.c - platform/soc/bl808/startup_bl808/evb/src/startup_bl606p.c - platform/soc/bl808/startup_bl808/evb/src/debug.c - platform/soc/bl808/startup_bl808/evb/src/boot/gcc/start_load.c - platform/soc/bl808/startup_bl808/evb/src/boot/gcc/startup.S + platform/soc/bl808/startup_bl808/evb/src/startup_interrupt.c + platform/soc/bl808/startup_bl808/evb/src/startup_bl606p.c + platform/soc/bl808/startup_bl808/evb/src/debug.c + platform/soc/bl808/startup_bl808/evb/src/boot/gcc/start_load.c + platform/soc/bl808/startup_bl808/evb/src/boot/gcc/startup.S ''') -path = [cwd, - cwd + r'/platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/regs', +path = [cwd, + cwd + r'/platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/regs', cwd + r'/platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/startup/m0/source', - cwd + r'/platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/inc', - cwd + r'/platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/risc-v/Core/Include', - cwd + r'/platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/hal_drv/default_config', - cwd + r'/platform/soc/bl808/bl808_e907_std/common/misc', - cwd + r'/platform/soc/bl808/bl808_e907_std/common/soft_crc'] + cwd + r'/platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/inc', + cwd + r'/platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/risc-v/Core/Include', + cwd + r'/platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/hal_drv/default_config', + cwd + r'/platform/soc/bl808/bl808_e907_std/common/misc', + cwd + r'/platform/soc/bl808/bl808_e907_std/common/soft_crc'] src += Split(""" - stage/blog/blog.c - utils/src/utils_log.c - stage/blfdt/src/fdt.c - stage/blfdt/src/fdt_ro.c - stage/blfdt/src/fdt_wip.c - stage/blfdt/src/fdt_sw.c - stage/blfdt/src/fdt_rw.c - stage/blfdt/src/fdt_strerror.c - stage/blfdt/src/fdt_empty_tree.c - stage/blfdt/src/fdt_addresses.c - stage/blfdt/src/fdt_overlay.c + stage/blog/blog.c + utils/src/utils_log.c + stage/blfdt/src/fdt.c + stage/blfdt/src/fdt_ro.c + stage/blfdt/src/fdt_wip.c + stage/blfdt/src/fdt_sw.c + stage/blfdt/src/fdt_rw.c + stage/blfdt/src/fdt_strerror.c + stage/blfdt/src/fdt_empty_tree.c + stage/blfdt/src/fdt_addresses.c + stage/blfdt/src/fdt_overlay.c """) path += [cwd + r'/stage/blog', - cwd + r'/stage/blfdt/inc', - cwd + r'/utils/include' + cwd + r'/stage/blfdt/inc', + cwd + r'/utils/include' ] - - # platform/hosal/bl808_e907_hal/bl_pm.c - # platform/hosal/bl808_e907_hal/bl_sec.c - # platform/hosal/bl808_e907_hal/bl_timer.c - # platform/hosal/bl808_e907_hal/hal_board.c - # platform/hosal/bl808_e907_hal/hal_sdh.c - # platform/hosal/bl808_e907_hal/hosal_adc.c - # platform/hosal/bl808_e907_hal/hosal_dma.c - # platform/hosal/bl808_e907_hal/hosal_pwm.c - # platform/hosal/bl808_e907_hal/hosal_spi.c - # platform/hosal/bl808_e907_hal/hosal_uart.c - # platform/hosal/bl808_e907_hal/hal_sdh.c + + # platform/hosal/bl808_e907_hal/bl_pm.c + # platform/hosal/bl808_e907_hal/bl_sec.c + # platform/hosal/bl808_e907_hal/bl_timer.c + # platform/hosal/bl808_e907_hal/hal_board.c + # platform/hosal/bl808_e907_hal/hal_sdh.c + # platform/hosal/bl808_e907_hal/hosal_adc.c + # platform/hosal/bl808_e907_hal/hosal_dma.c + # platform/hosal/bl808_e907_hal/hosal_pwm.c + # platform/hosal/bl808_e907_hal/hosal_spi.c + # platform/hosal/bl808_e907_hal/hosal_uart.c + # platform/hosal/bl808_e907_hal/hal_sdh.c src += Split(""" platform/hosal/bl808_e907_hal/bl_uart.c - platform/hosal/bl808_e907_hal/bl_irq.c - platform/hosal/bl808_e907_hal/bl_chip.c - platform/hosal/bl808_e907_hal/bl_flash.c - platform/hosal/bl808_e907_hal/bl_wifi.c - platform/hosal/bl808_e907_hal/bl_efuse.c - platform/hosal/bl808_e907_hal/bl_sys.c - platform/hosal/bl808_e907_hal/bl_boot2.c - platform/hosal/bl808_e907_hal/bl_ipc.c - platform/hosal/bl808_e907_hal/bl_cam.c - platform/hosal/bl808_e907_hal/bl_audio.c - platform/hosal/bl808_e907_hal/bl_sdh.c + platform/hosal/bl808_e907_hal/bl_irq.c + platform/hosal/bl808_e907_hal/bl_chip.c + platform/hosal/bl808_e907_hal/bl_flash.c + platform/hosal/bl808_e907_hal/bl_wifi.c + platform/hosal/bl808_e907_hal/bl_efuse.c + platform/hosal/bl808_e907_hal/bl_sys.c + platform/hosal/bl808_e907_hal/bl_boot2.c + platform/hosal/bl808_e907_hal/bl_ipc.c + platform/hosal/bl808_e907_hal/bl_cam.c + platform/hosal/bl808_e907_hal/bl_audio.c + platform/hosal/bl808_e907_hal/bl_sdh.c platform/hosal/bl808_e907_hal/hal_boot2.c - platform/hosal/bl808_e907_hal/hal_sys.c - platform/hosal/bl808_e907_hal/bl_psram.c - platform/hosal/bl808_e907_hal/bl_mm_clock.c - platform/hosal/bl808_e907_hal/hal_board.c - platform/soc/bl808/bl808_e907_std/common/misc/misc.c - platform/soc/bl808/bl808_e907_std/common/soft_crc/softcrc.c + platform/hosal/bl808_e907_hal/hal_sys.c + platform/hosal/bl808_e907_hal/bl_psram.c + platform/hosal/bl808_e907_hal/bl_mm_clock.c + platform/hosal/bl808_e907_hal/hal_board.c + platform/soc/bl808/bl808_e907_std/common/misc/misc.c + platform/soc/bl808/bl808_e907_std/common/soft_crc/softcrc.c """) src += Split(""" - platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_common.c - platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_clock.c - platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_uart.c - platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_glb.c - platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_glb_gpio.c - platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_pds.c - platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_hbn.c - platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_sflash.c - platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_xip_sflash.c - platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_sf_cfg.c - platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_ef_ctrl.c - platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_sf_ctrl.c + platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_common.c + platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_clock.c + platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_uart.c + platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_glb.c + platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_glb_gpio.c + platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_pds.c + platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_hbn.c + platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_sflash.c + platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_xip_sflash.c + platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_sf_cfg.c + platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_ef_ctrl.c + platform/soc/bl808/bl808_e907_std/bl808_bsp_driver/std_drv/src/bl808_sf_ctrl.c """) path += [cwd + r'/platform/hosal/bl808_e907_hal'] diff --git a/bsp/bluetrum/ab32vg1-ab-prougen/board/Kconfig b/bsp/bluetrum/ab32vg1-ab-prougen/board/Kconfig index 8c7d93c61a..fec93e4e68 100644 --- a/bsp/bluetrum/ab32vg1-ab-prougen/board/Kconfig +++ b/bsp/bluetrum/ab32vg1-ab-prougen/board/Kconfig @@ -195,7 +195,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_TIM4 bool "Enable TIM4" default n - + config BSP_USING_TIM5 bool "Enable TIM5" default n diff --git a/bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/SConscript b/bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/SConscript index 625f186203..f712854bb1 100644 --- a/bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/SConscript +++ b/bsp/bluetrum/libraries/hal_libraries/ab32vg1_hal/SConscript @@ -1,7 +1,7 @@ #-*- encoding: utf-8 -*- import os -from building import * +from building import * Import('RTT_ROOT') Import('rtconfig') @@ -13,24 +13,24 @@ VERSION = "v1.0.0" DEPENDS = [""] #--------------------------------------------------------------------------------- -# Compile the configuration +# Compile the configuration # # SOURCES: Need to compile c and c++ source, auto search when SOURCES is empty -# +# # LOCAL_CPPPATH: Local file path (.h/.c/.cpp) # LOCAL_CFLAGS: Local c compilation parameter -# LOCAL_CCFLAGS: Local c/c++ compilation parameter -# LOCAL_CXXFLAGS: Local c++ compilation parameter +# LOCAL_CCFLAGS: Local c/c++ compilation parameter +# LOCAL_CXXFLAGS: Local c++ compilation parameter # LOCAL_ASFLAGS: Local assembly parameters -# -# CPPPATH: Global file path (.h/.c/.cpp), auto search when LOCAL_CPPPATH/CPPPATH +# +# CPPPATH: Global file path (.h/.c/.cpp), auto search when LOCAL_CPPPATH/CPPPATH # is empty # no pass!!! -# CFLAGS : Global compilation parameter +# CFLAGS : Global compilation parameter # ASFLAGS: Global assembly parameters # # CPPDEFINES: Global macro definition -# LOCAL_CPPDEFINES: Local macro definition -# +# LOCAL_CPPDEFINES: Local macro definition +# # LIBS: Specify the static library that need to be linked # LIBPATH: Specify the search directory for the library file (.lib/.a) # @@ -45,7 +45,7 @@ LOCAL_CCFLAGS = "" LOCAL_CXXFLAGS = "" LOCAL_ASFLAGS = "" -CPPPATH = [GetCurrentDir(), os.path.join(GetCurrentDir(), 'include')] +CPPPATH = [GetCurrentDir(), os.path.join(GetCurrentDir(), 'include')] CFLAGS = "" CCFLAGS = "" CXXFLAGS = "" @@ -54,10 +54,10 @@ ASFLAGS = "" CPPDEFINES = [] LOCAL_CPPDEFINES = [] -LIBS = [] +LIBS = [] LIBPATH = [] -LINKFLAGS = "" +LINKFLAGS = "" SOURCES_IGNORE = [] CPPPATH_IGNORE = [] @@ -65,24 +65,24 @@ CPPPATH_IGNORE = [] #--------------------------------------------------------------------------------- # Main target #--------------------------------------------------------------------------------- -objs = DefineGroup(name = PKGNAME, src = SOURCES, depend = DEPENDS, - CPPPATH = CPPPATH, - CFLAGS = CFLAGS, - CCFLAGS = CCFLAGS, - CXXFLAGS = CXXFLAGS, - ASFLAGS = ASFLAGS, - LOCAL_CPPPATH = LOCAL_CPPPATH, - LOCAL_CFLAGS = LOCAL_CFLAGS, - LOCAL_CCFLAGS = LOCAL_CCFLAGS, - LOCAL_CXXFLAGS = LOCAL_CXXFLAGS, - LOCAL_ASFLAGS = LOCAL_ASFLAGS, - CPPDEFINES = CPPDEFINES, - LOCAL_CPPDEFINES = LOCAL_CPPDEFINES, - LIBS = LIBS, +objs = DefineGroup(name = PKGNAME, src = SOURCES, depend = DEPENDS, + CPPPATH = CPPPATH, + CFLAGS = CFLAGS, + CCFLAGS = CCFLAGS, + CXXFLAGS = CXXFLAGS, + ASFLAGS = ASFLAGS, + LOCAL_CPPPATH = LOCAL_CPPPATH, + LOCAL_CFLAGS = LOCAL_CFLAGS, + LOCAL_CCFLAGS = LOCAL_CCFLAGS, + LOCAL_CXXFLAGS = LOCAL_CXXFLAGS, + LOCAL_ASFLAGS = LOCAL_ASFLAGS, + CPPDEFINES = CPPDEFINES, + LOCAL_CPPDEFINES = LOCAL_CPPDEFINES, + LIBS = LIBS, LIBPATH = LIBPATH, - LINKFLAGS = LINKFLAGS) + LINKFLAGS = LINKFLAGS) -Return("objs") +Return("objs") #--------------------------------------------------------------------------------- # End #--------------------------------------------------------------------------------- diff --git a/bsp/bluetrum/libraries/hal_libraries/bmsis/SConscript b/bsp/bluetrum/libraries/hal_libraries/bmsis/SConscript index a395e0acf8..74e8a112fc 100644 --- a/bsp/bluetrum/libraries/hal_libraries/bmsis/SConscript +++ b/bsp/bluetrum/libraries/hal_libraries/bmsis/SConscript @@ -1,7 +1,7 @@ #-*- encoding: utf-8 -*- import os -from building import * +from building import * Import('RTT_ROOT') Import('rtconfig') @@ -14,24 +14,24 @@ DEPENDS = [""] #DEPENDS = ["PKG_USING_RW007"] #--------------------------------------------------------------------------------- -# Compile the configuration +# Compile the configuration # # SOURCES: Need to compile c and c++ source, auto search when SOURCES is empty -# +# # LOCAL_CPPPATH: Local file path (.h/.c/.cpp) # LOCAL_CFLAGS: Local c compilation parameter -# LOCAL_CCFLAGS: Local c/c++ compilation parameter -# LOCAL_CXXFLAGS: Local c++ compilation parameter +# LOCAL_CCFLAGS: Local c/c++ compilation parameter +# LOCAL_CXXFLAGS: Local c++ compilation parameter # LOCAL_ASFLAGS: Local assembly parameters -# -# CPPPATH: Global file path (.h/.c/.cpp), auto search when LOCAL_CPPPATH/CPPPATH +# +# CPPPATH: Global file path (.h/.c/.cpp), auto search when LOCAL_CPPPATH/CPPPATH # is empty # no pass!!! -# CFLAGS : Global compilation parameter +# CFLAGS : Global compilation parameter # ASFLAGS: Global assembly parameters # # CPPDEFINES: Global macro definition -# LOCAL_CPPDEFINES: Local macro definition -# +# LOCAL_CPPDEFINES: Local macro definition +# # LIBS: Specify the static library that need to be linked # LIBPATH: Specify the search directory for the library file (.lib/.a) # @@ -46,7 +46,7 @@ LOCAL_CCFLAGS = "" LOCAL_CXXFLAGS = "" LOCAL_ASFLAGS = "" -CPPPATH = [GetCurrentDir(), os.path.join(GetCurrentDir(), 'include')] +CPPPATH = [GetCurrentDir(), os.path.join(GetCurrentDir(), 'include')] CFLAGS = "" CCFLAGS = "" CXXFLAGS = "" @@ -55,10 +55,10 @@ ASFLAGS = "" CPPDEFINES = [] LOCAL_CPPDEFINES = [] -LIBS = [] +LIBS = [] LIBPATH = [] -LINKFLAGS = "" +LINKFLAGS = "" SOURCES_IGNORE = [] CPPPATH_IGNORE = [] @@ -66,24 +66,24 @@ CPPPATH_IGNORE = [] #--------------------------------------------------------------------------------- # Main target #--------------------------------------------------------------------------------- -objs = DefineGroup(name = PKGNAME, src = SOURCES, depend = DEPENDS, - CPPPATH = CPPPATH, - CFLAGS = CFLAGS, - CCFLAGS = CCFLAGS, - CXXFLAGS = CXXFLAGS, - ASFLAGS = ASFLAGS, - LOCAL_CPPPATH = LOCAL_CPPPATH, - LOCAL_CFLAGS = LOCAL_CFLAGS, - LOCAL_CCFLAGS = LOCAL_CCFLAGS, - LOCAL_CXXFLAGS = LOCAL_CXXFLAGS, - LOCAL_ASFLAGS = LOCAL_ASFLAGS, - CPPDEFINES = CPPDEFINES, - LOCAL_CPPDEFINES = LOCAL_CPPDEFINES, - LIBS = LIBS, +objs = DefineGroup(name = PKGNAME, src = SOURCES, depend = DEPENDS, + CPPPATH = CPPPATH, + CFLAGS = CFLAGS, + CCFLAGS = CCFLAGS, + CXXFLAGS = CXXFLAGS, + ASFLAGS = ASFLAGS, + LOCAL_CPPPATH = LOCAL_CPPPATH, + LOCAL_CFLAGS = LOCAL_CFLAGS, + LOCAL_CCFLAGS = LOCAL_CCFLAGS, + LOCAL_CXXFLAGS = LOCAL_CXXFLAGS, + LOCAL_ASFLAGS = LOCAL_ASFLAGS, + CPPDEFINES = CPPDEFINES, + LOCAL_CPPDEFINES = LOCAL_CPPDEFINES, + LIBS = LIBS, LIBPATH = LIBPATH, - LINKFLAGS = LINKFLAGS) + LINKFLAGS = LINKFLAGS) -Return("objs") +Return("objs") #--------------------------------------------------------------------------------- # End #--------------------------------------------------------------------------------- diff --git a/bsp/bm3803/Kconfig b/bsp/bm3803/Kconfig index 2e34f6fc57..245090b6d4 100644 --- a/bsp/bm3803/Kconfig +++ b/bsp/bm3803/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../.." - + # you can change the RTT_ROOT default "../.." to your rtthread_root, # example: default "F:/git_repositories/rt-thread" @@ -17,7 +17,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + config ENV_DIR string option env="ENV_ROOT" diff --git a/bsp/bm3803/SConstruct b/bsp/bm3803/SConstruct index a893c30dbe..c44dbdb8c8 100644 --- a/bsp/bm3803/SConstruct +++ b/bsp/bm3803/SConstruct @@ -14,11 +14,11 @@ TARGET = 'rtthread-bm3803.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - CXX= rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + CXX= rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/bm3803/drivers/SConscript b/bsp/bm3803/drivers/SConscript index 5e45e1bad3..9e8aba4bd2 100644 --- a/bsp/bm3803/drivers/SConscript +++ b/bsp/bm3803/drivers/SConscript @@ -4,7 +4,7 @@ Import('rtconfig') from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/ck802/Kconfig b/bsp/ck802/Kconfig index 5a40c5529c..eaf1994b78 100644 --- a/bsp/ck802/Kconfig +++ b/bsp/ck802/Kconfig @@ -31,6 +31,6 @@ if RT_USING_SERIAL config RT_USING_UART1 bool "Using uart1" - default y + default y endif diff --git a/bsp/ck802/libraries/SConscript b/bsp/ck802/libraries/SConscript index 4b800240c5..88e820a57f 100644 --- a/bsp/ck802/libraries/SConscript +++ b/bsp/ck802/libraries/SConscript @@ -25,7 +25,7 @@ common/wdt/dw_wdt.c """) path = [cwd + '/include', - cwd + '/common/aes', + cwd + '/common/aes', cwd + '/common/aes', cwd + '/common/crc', cwd + '/common/dmac', diff --git a/bsp/core-v-mcu/Libraries/core_v_drivers/SConscript b/bsp/core-v-mcu/Libraries/core_v_drivers/SConscript index 37a865b418..79df16160b 100644 --- a/bsp/core-v-mcu/Libraries/core_v_drivers/SConscript +++ b/bsp/core-v-mcu/Libraries/core_v_drivers/SConscript @@ -13,7 +13,7 @@ if GetDepend('SOC_RISCV_FAMILY_Core_V'): src += ['source/drv_usart.c'] path = [ - cwd + '/include'] + cwd + '/include'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path) diff --git a/bsp/core-v-mcu/Libraries/core_v_hal_libraries/SConscript b/bsp/core-v-mcu/Libraries/core_v_hal_libraries/SConscript index 869db3379e..ee0ab6bb49 100644 --- a/bsp/core-v-mcu/Libraries/core_v_hal_libraries/SConscript +++ b/bsp/core-v-mcu/Libraries/core_v_hal_libraries/SConscript @@ -28,7 +28,7 @@ core_v_udma_driver/source/udma_sdio_driver.c """) path = [ - cwd + '/bmsis/core-v-mcu/include', + cwd + '/bmsis/core-v-mcu/include', cwd + '/core_v_hal/include', cwd + '/core_v_udma_driver/include'] diff --git a/bsp/core-v-mcu/core-v-cv32e40p/SConscript b/bsp/core-v-mcu/core-v-cv32e40p/SConscript index 00a7fa6e01..67c1837fe2 100644 --- a/bsp/core-v-mcu/core-v-cv32e40p/SConscript +++ b/bsp/core-v-mcu/core-v-cv32e40p/SConscript @@ -1,4 +1,4 @@ -# for module compiling +# for module compiling # 将当前目录与子目录下的 SConscript传递给上级SConscript脚本 import os Import('RTT_ROOT') diff --git a/bsp/core-v-mcu/core-v-cv32e40p/board/Kconfig b/bsp/core-v-mcu/core-v-cv32e40p/board/Kconfig index 3599f2ec05..7abe8da52b 100644 --- a/bsp/core-v-mcu/core-v-cv32e40p/board/Kconfig +++ b/bsp/core-v-mcu/core-v-cv32e40p/board/Kconfig @@ -23,7 +23,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART1" default y endif - + endmenu menu "Onboard Peripheral Drivers" @@ -39,7 +39,7 @@ menu "Onboard System Settings" int "IDEFAULT_SYSTEM_CLOCK" range 1 10000000 default 5000000u - + endmenu endmenu diff --git a/bsp/core-v-mcu/core-v-cv32e40p/board/SConscript b/bsp/core-v-mcu/core-v-cv32e40p/board/SConscript index fb7ef615e4..7298c465af 100644 --- a/bsp/core-v-mcu/core-v-cv32e40p/board/SConscript +++ b/bsp/core-v-mcu/core-v-cv32e40p/board/SConscript @@ -15,6 +15,6 @@ path = [cwd] #设置path为当前路径 group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path) -#定义组Drivers 将board.c添加到当前组中 无以来条件 将路径导出为头文件路径 +#定义组Drivers 将board.c添加到当前组中 无以来条件 将路径导出为头文件路径 Return('group') #将本脚本的配置导出给上级 diff --git a/bsp/dm365/Kconfig b/bsp/dm365/Kconfig index 39a4db0ae6..29c809a1a0 100644 --- a/bsp/dm365/Kconfig +++ b/bsp/dm365/Kconfig @@ -19,7 +19,7 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" config SOC_DM365 - bool + bool select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y @@ -28,13 +28,13 @@ comment "BSP configure" config RT_USING_GPIO_DEVICE bool "Using GPIO" - default y + default y config RT_USING_I2C_CONTROL bool "Using I2C control" select RT_USING_I2C default y - + config RT_USING_SDIO_CONTROL bool "Using SDIO control" select RT_USING_SDIO @@ -43,7 +43,7 @@ config RT_USING_SDIO_CONTROL config RT_USING_SPI_CONTROL bool "Using SPI control" depends on RT_USING_SPI - default y + default y config RT_USING_EMAC bool "Using EMAC control" diff --git a/bsp/dm365/SConstruct b/bsp/dm365/SConstruct index e58b37e6b1..f2d5cfc44f 100644 --- a/bsp/dm365/SConstruct +++ b/bsp/dm365/SConstruct @@ -14,10 +14,10 @@ TARGET = 'rtthread-dm365.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') @@ -26,7 +26,7 @@ Export('rtconfig') # prepare building environment objs = PrepareBuilding(env, RTT_ROOT) -# libc testsuite +# libc testsuite objs = objs + SConscript(RTT_ROOT + '/examples/libc/SConscript', variant_dir='build/examples/libc', duplicate=0) # make a building diff --git a/bsp/dm365/drivers/SConscript b/bsp/dm365/drivers/SConscript index a36d186e94..f3c3efac9a 100644 --- a/bsp/dm365/drivers/SConscript +++ b/bsp/dm365/drivers/SConscript @@ -12,19 +12,19 @@ davinci_serial.c """) if GetDepend('RT_USING_GPIO_DEVICE'): - src += ['gpio.c'] + src += ['gpio.c'] if GetDepend('RT_USING_I2C_CONTROL'): - src += ['i2c-davinci.c'] + src += ['i2c-davinci.c'] if GetDepend('RT_USING_SDIO_CONTROL'): - src += ['mmcsd.c'] + src += ['mmcsd.c'] if GetDepend('RT_USING_SPI_CONTROL'): - src += ['spi-davinci.c'] + src += ['spi-davinci.c'] if GetDepend('RT_USING_EMAC'): - src += ['davinci_emac.c'] + src += ['davinci_emac.c'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path) diff --git a/bsp/efm32/SConstruct b/bsp/efm32/SConstruct index 4c02d2af42..0c5d418615 100644 --- a/bsp/efm32/SConstruct +++ b/bsp/efm32/SConstruct @@ -14,10 +14,10 @@ TARGET = 'rtthread-efm32.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/essemi/es32f0654/drivers/ES/Kconfig b/bsp/essemi/es32f0654/drivers/ES/Kconfig index 1f3b0a4e96..6c8b9ba197 100644 --- a/bsp/essemi/es32f0654/drivers/ES/Kconfig +++ b/bsp/essemi/es32f0654/drivers/ES/Kconfig @@ -70,7 +70,7 @@ menu "PWM Drivers" config BSP_USING_AD16C4T0_PWM bool "Register pwm0" select RT_USING_PWM - default n + default n config BSP_USING_GP16C4T0_PWM bool "Register pwm1" diff --git a/bsp/essemi/es32f0654/drivers/Kconfig b/bsp/essemi/es32f0654/drivers/Kconfig index 75d678805d..43bd47b1e6 100644 --- a/bsp/essemi/es32f0654/drivers/Kconfig +++ b/bsp/essemi/es32f0654/drivers/Kconfig @@ -6,7 +6,7 @@ menu "Hardware Drivers Config" select RT_USING_PIN default y - source "drivers/ES/Kconfig" + source "drivers/ES/Kconfig" endmenu @@ -42,7 +42,7 @@ endif config BSP_USING_EXAMPLE_ADC_VOL bool "BSP_USING_EXAMPLE_ADC_VOL" default n - + config BSP_USING_EXAMPLE_HWTIMER bool "BSP_USING_EXAMPLE_HWTIMER" default n diff --git a/bsp/essemi/es32f365x/SConstruct b/bsp/essemi/es32f365x/SConstruct index 3b0fad6deb..ec8c77b1ac 100644 --- a/bsp/essemi/es32f365x/SConstruct +++ b/bsp/essemi/es32f365x/SConstruct @@ -37,7 +37,7 @@ ESSEMI_ROOT = os.path.abspath('./') es32f36xx_lib_path_prefix = os.path.dirname(ESSEMI_ROOT) + '/es32f369x' -ES32F36XX_DRV_ROOT = es32f36xx_lib_path_prefix + '/drivers' +ES32F36XX_DRV_ROOT = es32f36xx_lib_path_prefix + '/drivers' Export('ES32F36XX_DRV_ROOT') diff --git a/bsp/essemi/es32f365x/drivers/ES/Kconfig b/bsp/essemi/es32f365x/drivers/ES/Kconfig index 906bdb042e..cf90fe65c7 100644 --- a/bsp/essemi/es32f365x/drivers/ES/Kconfig +++ b/bsp/essemi/es32f365x/drivers/ES/Kconfig @@ -4,7 +4,7 @@ menu "UART Drivers" bool "Register UART0 " select RT_USING_SERIAL default y - + if BSP_USING_UART0 config BSP_UART0_TX_USING_DMA bool "UART0 using DMA TX" @@ -15,12 +15,12 @@ menu "UART Drivers" select RT_SERIAL_USING_DMA default n endif - + config BSP_USING_UART1 bool "Register UART1 " select RT_USING_SERIAL default n - + if BSP_USING_UART1 config BSP_UART1_TX_USING_DMA bool "UART1 using DMA TX" @@ -36,7 +36,7 @@ menu "UART Drivers" bool "Register UART2 " select RT_USING_SERIAL default n - + if BSP_USING_UART2 config BSP_UART2_TX_USING_DMA bool "UART2 using DMA TX" @@ -52,7 +52,7 @@ menu "UART Drivers" bool "Register UART3 " select RT_USING_SERIAL default n - + if BSP_USING_UART3 config BSP_UART3_TX_USING_DMA bool "UART3 using DMA TX" @@ -66,7 +66,7 @@ menu "UART Drivers" bool "Register UART4 " select RT_USING_SERIAL default n - + if BSP_USING_UART4 config BSP_UART4_TX_USING_DMA bool "UART4 using DMA TX" @@ -82,7 +82,7 @@ menu "UART Drivers" bool "Register UART5 " select RT_USING_SERIAL default n - + if BSP_USING_UART5 config BSP_UART5_TX_USING_DMA bool "UART5 using DMA TX" diff --git a/bsp/essemi/es32f365x/drivers/Kconfig b/bsp/essemi/es32f365x/drivers/Kconfig index 6e70e9674c..55a3269dd7 100644 --- a/bsp/essemi/es32f365x/drivers/Kconfig +++ b/bsp/essemi/es32f365x/drivers/Kconfig @@ -1,6 +1,6 @@ menu "Hardware Drivers Config" - + menu "On-chip Peripheral Drivers" config BSP_USING_GPIO @@ -8,7 +8,7 @@ menu "Hardware Drivers Config" select RT_USING_PIN default y - source "drivers/ES/Kconfig" + source "drivers/ES/Kconfig" endmenu @@ -44,7 +44,7 @@ endif config BSP_USING_EXAMPLE_ADC_VOL bool "BSP_USING_EXAMPLE_ADC_VOL" default n - + config BSP_USING_EXAMPLE_HWTIMER bool "BSP_USING_EXAMPLE_HWTIMER" default n diff --git a/bsp/essemi/es32f369x/applications/SConscript b/bsp/essemi/es32f369x/applications/SConscript index 570db2d32e..db3fd2e8fd 100644 --- a/bsp/essemi/es32f369x/applications/SConscript +++ b/bsp/essemi/es32f369x/applications/SConscript @@ -15,5 +15,5 @@ list = os.listdir(cwd) for item in list: if os.path.isfile(os.path.join(cwd, item, 'SConscript')): group = group + SConscript(os.path.join(item, 'SConscript')) - + Return('group') diff --git a/bsp/essemi/es32f369x/drivers/ES/Kconfig b/bsp/essemi/es32f369x/drivers/ES/Kconfig index 906bdb042e..cf90fe65c7 100644 --- a/bsp/essemi/es32f369x/drivers/ES/Kconfig +++ b/bsp/essemi/es32f369x/drivers/ES/Kconfig @@ -4,7 +4,7 @@ menu "UART Drivers" bool "Register UART0 " select RT_USING_SERIAL default y - + if BSP_USING_UART0 config BSP_UART0_TX_USING_DMA bool "UART0 using DMA TX" @@ -15,12 +15,12 @@ menu "UART Drivers" select RT_SERIAL_USING_DMA default n endif - + config BSP_USING_UART1 bool "Register UART1 " select RT_USING_SERIAL default n - + if BSP_USING_UART1 config BSP_UART1_TX_USING_DMA bool "UART1 using DMA TX" @@ -36,7 +36,7 @@ menu "UART Drivers" bool "Register UART2 " select RT_USING_SERIAL default n - + if BSP_USING_UART2 config BSP_UART2_TX_USING_DMA bool "UART2 using DMA TX" @@ -52,7 +52,7 @@ menu "UART Drivers" bool "Register UART3 " select RT_USING_SERIAL default n - + if BSP_USING_UART3 config BSP_UART3_TX_USING_DMA bool "UART3 using DMA TX" @@ -66,7 +66,7 @@ menu "UART Drivers" bool "Register UART4 " select RT_USING_SERIAL default n - + if BSP_USING_UART4 config BSP_UART4_TX_USING_DMA bool "UART4 using DMA TX" @@ -82,7 +82,7 @@ menu "UART Drivers" bool "Register UART5 " select RT_USING_SERIAL default n - + if BSP_USING_UART5 config BSP_UART5_TX_USING_DMA bool "UART5 using DMA TX" diff --git a/bsp/essemi/es32f369x/drivers/Kconfig b/bsp/essemi/es32f369x/drivers/Kconfig index 95dcc5466a..3d6bba7348 100644 --- a/bsp/essemi/es32f369x/drivers/Kconfig +++ b/bsp/essemi/es32f369x/drivers/Kconfig @@ -1,13 +1,13 @@ menu "Hardware Drivers Config" - + menu "On-chip Peripheral Drivers" config BSP_USING_GPIO bool "Enable GPIO" select RT_USING_PIN default y - source "drivers/ES/Kconfig" + source "drivers/ES/Kconfig" endmenu @@ -56,7 +56,7 @@ endif config BSP_USING_EXAMPLE_ADC_VOL bool "BSP_USING_EXAMPLE_ADC_VOL" default n - + config BSP_USING_EXAMPLE_HWTIMER bool "BSP_USING_EXAMPLE_HWTIMER" default n diff --git a/bsp/fm33lc026/board/Kconfig b/bsp/fm33lc026/board/Kconfig index b86bff80ce..3252590802 100644 --- a/bsp/fm33lc026/board/Kconfig +++ b/bsp/fm33lc026/board/Kconfig @@ -34,11 +34,11 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART5 bool "Enable UART5" default y - + endif endmenu endmenu - + diff --git a/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/SConscript b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/SConscript index 8002312789..46d626df1e 100644 --- a/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/SConscript +++ b/bsp/fm33lc026/libraries/FM33LC0xx_FL_Driver/SConscript @@ -33,17 +33,17 @@ if GetDepend(['RT_USING_HWTIMER']) or GetDepend(['RT_USING_PWM']): if GetDepend(['RT_USING_ADC']): src += ['Src/fm33lc0xx_fl_adc.c'] - + if GetDepend(['RT_USING_RTC']): src += ['Src/fm33lc0xx_fl_rtc.c'] - + if GetDepend(['RT_USING_WDT']): src += ['Src/fm33lc0xx_fl_wwdt.c'] if GetDepend(['BSP_USING_ON_CHIP_FLASH']): src += ['Src/fm33lc0xx_fl_flash.c'] -path = [cwd + '/CMSIS/Include', +path = [cwd + '/CMSIS/Include', cwd + '/Inc'] CPPDEFINES = ['USE_HAL_DRIVER'] diff --git a/bsp/frdm-k64f/Kconfig b/bsp/frdm-k64f/Kconfig index 59c18fee6b..363afd6413 100644 --- a/bsp/frdm-k64f/Kconfig +++ b/bsp/frdm-k64f/Kconfig @@ -22,7 +22,7 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" config SOC_FRDM_K64F - bool + bool select ARCH_ARM_CORTEX_M4 select RT_USING_COMPONENTS_INIT default y diff --git a/bsp/frdm-k64f/SConstruct b/bsp/frdm-k64f/SConstruct index 8e5bb67374..9d20125139 100644 --- a/bsp/frdm-k64f/SConstruct +++ b/bsp/frdm-k64f/SConstruct @@ -14,16 +14,16 @@ TARGET = 'rtthread-k64f.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: - env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) - env.Replace(ARFLAGS = ['']) - env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) + env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) + env.Replace(ARFLAGS = ['']) + env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) Export('RTT_ROOT') Export('rtconfig') @@ -31,5 +31,5 @@ Export('rtconfig') # prepare building environment objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False) -# do building +# do building DoBuilding(TARGET, objs) diff --git a/bsp/frdm-k64f/device/SConscript b/bsp/frdm-k64f/device/SConscript index d8d9790bb2..07fc5f2d7e 100644 --- a/bsp/frdm-k64f/device/SConscript +++ b/bsp/frdm-k64f/device/SConscript @@ -10,7 +10,7 @@ src = Glob('MK64F12/*.c') src += ['system_MK64F12.c'] -#add for startup script +#add for startup script if rtconfig.PLATFORM in ['gcc']: src = src + ['TOOLCHAIN_GCC_ARM/startup_MK64F12.S'] src = src + ['TOOLCHAIN_GCC_ARM/startup.c'] diff --git a/bsp/ft2004/SConstruct b/bsp/ft2004/SConstruct index 297787715f..b39a485300 100644 --- a/bsp/ft2004/SConstruct +++ b/bsp/ft2004/SConstruct @@ -14,11 +14,11 @@ TARGET = 'ft2004.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - CXX= rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + CXX= rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env['ASCOM'] = env['ASPPCOM'] diff --git a/bsp/ft2004/applications/SConscript b/bsp/ft2004/applications/SConscript index a526af2c75..ca2395451a 100644 --- a/bsp/ft2004/applications/SConscript +++ b/bsp/ft2004/applications/SConscript @@ -3,7 +3,7 @@ Import('rtconfig') from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/ft2004/drivers/SConscript b/bsp/ft2004/drivers/SConscript index b18c98833e..0219d04dc8 100644 --- a/bsp/ft2004/drivers/SConscript +++ b/bsp/ft2004/drivers/SConscript @@ -3,7 +3,7 @@ from building import * cwd = GetCurrentDir() src = Glob('*.S') -src += Glob('*.c') +src += Glob('*.c') diff --git a/bsp/ft2004/libraries/Kconfig b/bsp/ft2004/libraries/Kconfig index c544395596..7c9c8ebd9f 100644 --- a/bsp/ft2004/libraries/Kconfig +++ b/bsp/ft2004/libraries/Kconfig @@ -9,7 +9,7 @@ menu "On-chip Peripheral Drivers" config RT_USING_UART1 bool "Enable UART1" default y - + config RT_USING_UART0 bool "Enable UART0" default n @@ -33,10 +33,10 @@ menu "On-chip Peripheral Drivers" config BSP_SDC_USE_IRQ bool "Use interrupt to handle when cmd complete, dma complete" default n - + if BSP_SDC_USE_IRQ config BSP_SDC_IRQ_CARD_REMOVE - bool "Use interrupt to determine if the card is pulled out" + bool "Use interrupt to determine if the card is pulled out" default n endif @@ -48,7 +48,7 @@ menu "On-chip Peripheral Drivers" default n select RT_USING_NETDEV - + if BSP_USING_GMAC config BSP_USING_GMAC0 bool "Enable GMAC0" @@ -91,7 +91,7 @@ menu "On-chip Peripheral Drivers" # bool "Enable qspi debug print" # default n # endif - + menuconfig BSP_USE_SPI bool "Enable Spi" select RT_USING_SFUD @@ -118,8 +118,8 @@ menu "On-chip Peripheral Drivers" menuconfig BSP_USE_CAN bool "Enable Can" select RT_USING_CAN - default n - + default n + if BSP_USE_CAN config BSP_USING_CAN0 bool "Enable can0" @@ -127,7 +127,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_CAN1 bool "Enable can1" default n - + if BSP_USING_CAN0 config BSP_USING_CAN0_DEBUG bool "Enable can0 work in loop back" @@ -136,7 +136,7 @@ menu "On-chip Peripheral Drivers" endif - + endmenu menu "Board extended module Drivers" diff --git a/bsp/ft2004/libraries/SConscript b/bsp/ft2004/libraries/SConscript index e279d05ea1..2f023e6b9f 100644 --- a/bsp/ft2004/libraries/SConscript +++ b/bsp/ft2004/libraries/SConscript @@ -1,13 +1,13 @@ ''' - : Copyright (c) 2020 Phytium Information Technology, Inc.  -  + : Copyright (c) 2020 Phytium Information Technology, Inc. + SPDX-License-Identifier: Apache-2.0. Date: 2021-05-24 14:30:13 LastEditTime: 2021-05-26 14:58:34 -Description:  This files is for  +Description:  This files is for -Modify History: +Modify History:  Ver   Who        Date         Changes ----- ------     --------    -------------------------------------- ''' @@ -100,7 +100,7 @@ if GetDepend(['BSP_USE_QSPI']): src += ['bsp/ft_qspi/qspi_hw.c'] src += ['bsp/ft_qspi/ft_qspi.c'] src += ['bsp/ft_qspi/qspi_sinit.c'] - + if GetDepend(['BSP_USE_SPI']): src += ['bsp/ft_spi/ft_spi.c'] src += ['bsp/ft_spi/ft_spi_irq.c'] diff --git a/bsp/ft32/ft32f072xb-starter/board/Kconfig b/bsp/ft32/ft32f072xb-starter/board/Kconfig index 0414889fc2..67261de57f 100644 --- a/bsp/ft32/ft32f072xb-starter/board/Kconfig +++ b/bsp/ft32/ft32f072xb-starter/board/Kconfig @@ -42,7 +42,7 @@ menu "On-chip Peripheral Drivers" default n endif source "../libraries/Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/ft32/libraries/Drivers/Kconfig b/bsp/ft32/libraries/Drivers/Kconfig index 66fe552ebd..7e6995d550 100644 --- a/bsp/ft32/libraries/Drivers/Kconfig +++ b/bsp/ft32/libraries/Drivers/Kconfig @@ -7,20 +7,20 @@ if BSP_USING_USBD # "USB High Speed (HS) Core" config BSP_USBD_SPEED_HS - bool + bool # "USB High Speed (HS) Mode" config BSP_USBD_SPEED_HSINFS - bool + bool # "USB High Speed (HS) Core in FS mode" config BSP_USBD_PHY_EMBEDDED - bool + bool # "Using Embedded phy interface" config BSP_USBD_PHY_UTMI - bool + bool # "UTMI: USB 2.0 Transceiver Macrocell Interace" config BSP_USBD_PHY_ULPI - bool + bool # "ULPI: UTMI+ Low Pin Interface" endif @@ -30,5 +30,5 @@ config BSP_USING_CRC select RT_HWCRYPTO_USING_CRC # "Crypto device frame dose not support above 8-bits granularity" depends on (SOC_SERIES_FT32F0) - default n + default n diff --git a/bsp/ft32/libraries/FT32F0xx/SConscript b/bsp/ft32/libraries/FT32F0xx/SConscript index 4be54fa9e4..04932ffe39 100644 --- a/bsp/ft32/libraries/FT32F0xx/SConscript +++ b/bsp/ft32/libraries/FT32F0xx/SConscript @@ -36,17 +36,17 @@ if GetDepend(['RT_USING_SPI']): if GetDepend(['RT_USING_ADC']): src += ['FT32F0xx_Driver/Src/ft32f0xx_adc.c'] - + if GetDepend(['RT_USING_RTC']): src += ['FT32F0xx_Driver/Src/ft32f0xx_rtc.c'] - + if GetDepend(['RT_USING_WDT']): src += ['FT32F0xx_Driver/Src/ft32f0xx_wwdg.c'] if GetDepend(['BSP_USING_ON_CHIP_FLASH']): src += ['FT32F0xx_Driver/Src/ft32f0xx_flash.c'] -path = [cwd + '/CMSIS/FT32F0xx/Include', +path = [cwd + '/CMSIS/FT32F0xx/Include', cwd + '/FT32F0xx_Driver/Inc', cwd + '/FT32F0xx_Driver/templates/Inc'] diff --git a/bsp/ft32/libraries/Kconfig b/bsp/ft32/libraries/Kconfig index b7f7d058a7..afdd0fb83f 100644 --- a/bsp/ft32/libraries/Kconfig +++ b/bsp/ft32/libraries/Kconfig @@ -6,5 +6,5 @@ config SOC_SERIES_FT32F0 select ARCH_ARM_CORTEX_M0 select SOC_FAMILY_FT32 - + diff --git a/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/SConscript b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/SConscript index dd86cc6aba..f4c66fdaf3 100644 --- a/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/SConscript +++ b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/SConscript @@ -4,14 +4,14 @@ from building import * src = Glob('*.c') -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: src = src + ['start_gcc.S'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: src = src + ['start_rvds.S'] elif rtconfig.PLATFORM in ['iccarm']: src = src + ['start_iar.S'] - + CPPPATH = [GetCurrentDir()] group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, LIBRARY = '') diff --git a/bsp/fujitsu/mb9x/mb9bf500r/SConscript b/bsp/fujitsu/mb9x/mb9bf500r/SConscript index 2679fc6ce5..d40e9e35de 100644 --- a/bsp/fujitsu/mb9x/mb9bf500r/SConscript +++ b/bsp/fujitsu/mb9x/mb9bf500r/SConscript @@ -6,7 +6,7 @@ src_bsp = ['application.c', 'startup.c', 'board.c', 'led.c', 'cpuusage.c'] src_drv = ['adc.c', 'lcd.c', 'key.c'] if GetDepend('RT_USING_RTGUI'): - src_drv += ['info.c'] + src_drv += ['info.c'] src = src_bsp + src_drv CPPPATH = [GetCurrentDir()] diff --git a/bsp/fujitsu/mb9x/mb9bf500r/SConstruct b/bsp/fujitsu/mb9x/mb9bf500r/SConstruct index 9d9ed87ca8..f90680eead 100644 --- a/bsp/fujitsu/mb9x/mb9bf500r/SConstruct +++ b/bsp/fujitsu/mb9x/mb9bf500r/SConstruct @@ -14,10 +14,10 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: diff --git a/bsp/fujitsu/mb9x/mb9bf506r/SConstruct b/bsp/fujitsu/mb9x/mb9bf506r/SConstruct index c230d6ed5f..34fc747a05 100644 --- a/bsp/fujitsu/mb9x/mb9bf506r/SConstruct +++ b/bsp/fujitsu/mb9x/mb9bf506r/SConstruct @@ -14,10 +14,10 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: diff --git a/bsp/fujitsu/mb9x/mb9bf506r/libraries/SConscript b/bsp/fujitsu/mb9x/mb9bf506r/libraries/SConscript index 2799cefa6b..212da02021 100644 --- a/bsp/fujitsu/mb9x/mb9bf506r/libraries/SConscript +++ b/bsp/fujitsu/mb9x/mb9bf506r/libraries/SConscript @@ -6,7 +6,7 @@ cwd = GetCurrentDir() src = Glob('*.c') src = ['Device/FUJISTU/MB9BF50x/Source/system_mb9bf50x.c'] -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: src += ['Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: diff --git a/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/SConscript b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/SConscript index 7af796f38a..7d134d65c5 100644 --- a/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/SConscript +++ b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/SConscript @@ -7,7 +7,7 @@ src = Glob('DeviceSupport/*.c') CPPPATH = [cwd + '/Include', cwd + '/DeviceSupport'] -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['armcc', 'armclang']: src += ['DeviceSupport/arm/startup_mb9bf56xr.s'] diff --git a/bsp/fujitsu/mb9x/mb9bf568r/SConstruct b/bsp/fujitsu/mb9x/mb9bf568r/SConstruct index 67eeafa3d1..ee4181eb67 100644 --- a/bsp/fujitsu/mb9x/mb9bf568r/SConstruct +++ b/bsp/fujitsu/mb9x/mb9bf568r/SConstruct @@ -14,17 +14,17 @@ TARGET = 'rtthread-fm4.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: - env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) - env.Replace(ARFLAGS = ['']) - env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) + env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) + env.Replace(ARFLAGS = ['']) + env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) Export('RTT_ROOT') Export('rtconfig') diff --git a/bsp/fujitsu/mb9x/mb9bf568r/drivers/SConscript b/bsp/fujitsu/mb9x/mb9bf568r/drivers/SConscript index 5bbef48785..b925442bc4 100644 --- a/bsp/fujitsu/mb9x/mb9bf568r/drivers/SConscript +++ b/bsp/fujitsu/mb9x/mb9bf568r/drivers/SConscript @@ -3,7 +3,7 @@ Import('rtconfig') from building import * cwd = os.path.join(str(Dir('#')), 'drivers') -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/SConscript b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/SConscript index 940078d2e3..2537f359c5 100644 --- a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/SConscript +++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/SConscript @@ -7,13 +7,13 @@ src = Glob('DeviceSupport/fujitsu/mb9bf61x/*.c') CPPPATH = [cwd + '/Include', cwd + '/DeviceSupport/fujitsu/mb9bf61x/'] -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: - src += ['DeviceSupport/fujitsu/mb9bf61x/startup/gcc/startup_mb9bf61x.c'] + src += ['DeviceSupport/fujitsu/mb9bf61x/startup/gcc/startup_mb9bf61x.c'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: - src += ['DeviceSupport/fujitsu/mb9bf61x/startup/arm/startup_mb9bf61x.S'] + src += ['DeviceSupport/fujitsu/mb9bf61x/startup/arm/startup_mb9bf61x.S'] elif rtconfig.PLATFORM in ['iccarm']: - src += ['DeviceSupport/fujitsu/mb9bf61x/startup/iar/startup_mb9bf61x.S'] + src += ['DeviceSupport/fujitsu/mb9bf61x/startup/iar/startup_mb9bf61x.S'] CPPDEFINES = [rtconfig.FM3_TYPE] group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) diff --git a/bsp/fujitsu/mb9x/mb9bf618s/SConstruct b/bsp/fujitsu/mb9x/mb9bf618s/SConstruct index c230d6ed5f..34fc747a05 100644 --- a/bsp/fujitsu/mb9x/mb9bf618s/SConstruct +++ b/bsp/fujitsu/mb9x/mb9bf618s/SConstruct @@ -14,10 +14,10 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: diff --git a/bsp/fujitsu/mb9x/mb9bf618s/drivers/SConscript b/bsp/fujitsu/mb9x/mb9bf618s/drivers/SConscript index 5bbef48785..b925442bc4 100644 --- a/bsp/fujitsu/mb9x/mb9bf618s/drivers/SConscript +++ b/bsp/fujitsu/mb9x/mb9bf618s/drivers/SConscript @@ -3,7 +3,7 @@ Import('rtconfig') from building import * cwd = os.path.join(str(Dir('#')), 'drivers') -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/gd32/arm/gd32103c-eval/Kconfig b/bsp/gd32/arm/gd32103c-eval/Kconfig index dbc650938f..609eb0745e 100644 --- a/bsp/gd32/arm/gd32103c-eval/Kconfig +++ b/bsp/gd32/arm/gd32103c-eval/Kconfig @@ -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" diff --git a/bsp/gd32/arm/gd32103c-eval/board/Kconfig b/bsp/gd32/arm/gd32103c-eval/board/Kconfig index 5524f2b139..c50404f7a5 100644 --- a/bsp/gd32/arm/gd32103c-eval/board/Kconfig +++ b/bsp/gd32/arm/gd32103c-eval/board/Kconfig @@ -3,14 +3,14 @@ menu "Hardware Drivers Config" config SOC_SERIES_GD32F10x bool default y - + config SOC_GD32103V bool select SOC_SERIES_GD32F10x select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART0_RX_USING_DMA bool "Enable UART0 RX DMA" - depends on BSP_USING_UART0 + depends on BSP_USING_UART0 select RT_SERIAL_USING_DMA default n @@ -43,7 +43,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART1_RX_USING_DMA bool "Enable UART1 RX DMA" - depends on BSP_USING_UART1 + depends on BSP_USING_UART1 select RT_SERIAL_USING_DMA default n @@ -53,7 +53,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" - depends on BSP_USING_UART2 + depends on BSP_USING_UART2 select RT_SERIAL_USING_DMA default n @@ -63,7 +63,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" - depends on BSP_USING_UART3 + depends on BSP_USING_UART3 select RT_SERIAL_USING_DMA default n @@ -73,7 +73,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART4_RX_USING_DMA bool "Enable UART4 RX DMA" - depends on BSP_USING_UART4 + depends on BSP_USING_UART4 select RT_SERIAL_USING_DMA default n endif @@ -91,7 +91,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 diff --git a/bsp/gd32/arm/gd32103c-eval/board/SConscript b/bsp/gd32/arm/gd32103c-eval/board/SConscript index 0762046a90..a67f9bf3e6 100644 --- a/bsp/gd32/arm/gd32103c-eval/board/SConscript +++ b/bsp/gd32/arm/gd32103c-eval/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_hd.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_hd.s'] - + CPPDEFINES = ['GD32F10X_HD'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/gd32/arm/gd32105c-eval/Kconfig b/bsp/gd32/arm/gd32105c-eval/Kconfig index dbc650938f..609eb0745e 100644 --- a/bsp/gd32/arm/gd32105c-eval/Kconfig +++ b/bsp/gd32/arm/gd32105c-eval/Kconfig @@ -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" diff --git a/bsp/gd32/arm/gd32105c-eval/board/Kconfig b/bsp/gd32/arm/gd32105c-eval/board/Kconfig index 7f9c530e63..a873667958 100644 --- a/bsp/gd32/arm/gd32105c-eval/board/Kconfig +++ b/bsp/gd32/arm/gd32105c-eval/board/Kconfig @@ -3,14 +3,14 @@ menu "Hardware Drivers Config" config SOC_SERIES_GD32F10x bool default y - + config SOC_GD32105V bool select SOC_SERIES_GD32F10x select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART0_RX_USING_DMA bool "Enable UART0 RX DMA" - depends on BSP_USING_UART0 + depends on BSP_USING_UART0 select RT_SERIAL_USING_DMA default n @@ -43,7 +43,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART1_RX_USING_DMA bool "Enable UART1 RX DMA" - depends on BSP_USING_UART1 + depends on BSP_USING_UART1 select RT_SERIAL_USING_DMA default n @@ -53,7 +53,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" - depends on BSP_USING_UART2 + depends on BSP_USING_UART2 select RT_SERIAL_USING_DMA default n @@ -63,7 +63,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" - depends on BSP_USING_UART3 + depends on BSP_USING_UART3 select RT_SERIAL_USING_DMA default n @@ -73,7 +73,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART4_RX_USING_DMA bool "Enable UART4 RX DMA" - depends on BSP_USING_UART4 + depends on BSP_USING_UART4 select RT_SERIAL_USING_DMA default n endif @@ -91,7 +91,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -197,11 +197,11 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/gd32_drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/gd32/arm/gd32105c-eval/board/SConscript b/bsp/gd32/arm/gd32105c-eval/board/SConscript index a85b0a42ae..38fe7e111a 100644 --- a/bsp/gd32/arm/gd32105c-eval/board/SConscript +++ b/bsp/gd32/arm/gd32105c-eval/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s'] - + CPPDEFINES = ['GD32F10X_CL'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/gd32/arm/gd32105r-start/Kconfig b/bsp/gd32/arm/gd32105r-start/Kconfig index dbc650938f..609eb0745e 100644 --- a/bsp/gd32/arm/gd32105r-start/Kconfig +++ b/bsp/gd32/arm/gd32105r-start/Kconfig @@ -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" diff --git a/bsp/gd32/arm/gd32105r-start/board/Kconfig b/bsp/gd32/arm/gd32105r-start/board/Kconfig index 22420e73aa..65c57b8cdb 100644 --- a/bsp/gd32/arm/gd32105r-start/board/Kconfig +++ b/bsp/gd32/arm/gd32105r-start/board/Kconfig @@ -3,14 +3,14 @@ menu "Hardware Drivers Config" config SOC_SERIES_GD32F10x bool default y - + config SOC_GD32105R bool select SOC_SERIES_GD32F10x select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART0_RX_USING_DMA bool "Enable UART0 RX DMA" - depends on BSP_USING_UART0 + depends on BSP_USING_UART0 select RT_SERIAL_USING_DMA default n @@ -43,7 +43,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART1_RX_USING_DMA bool "Enable UART1 RX DMA" - depends on BSP_USING_UART1 + depends on BSP_USING_UART1 select RT_SERIAL_USING_DMA default n @@ -53,7 +53,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" - depends on BSP_USING_UART2 + depends on BSP_USING_UART2 select RT_SERIAL_USING_DMA default n @@ -63,7 +63,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" - depends on BSP_USING_UART3 + depends on BSP_USING_UART3 select RT_SERIAL_USING_DMA default n @@ -73,12 +73,12 @@ menu "On-chip Peripheral Drivers" config BSP_UART4_RX_USING_DMA bool "Enable UART4 RX DMA" - depends on BSP_USING_UART4 + depends on BSP_USING_UART4 select RT_SERIAL_USING_DMA default n endif - - menuconfig BSP_USING_ADC + + menuconfig BSP_USING_ADC bool "Enable ADC" default n select RT_USING_ADC @@ -90,7 +90,7 @@ menu "On-chip Peripheral Drivers" bool "using adc1" default n endif - + menuconfig BSP_USING_SPI bool "Enable SPI BUS" default n @@ -99,10 +99,10 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI0 bool "Enable SPI0 BUS" default n - config BSP_USING_SPI1 + config BSP_USING_SPI1 bool "Enable SPI1 BUS" default n - config BSP_USING_SPI2 + config BSP_USING_SPI2 bool "Enable SPI2 BUS" default n endif @@ -205,11 +205,11 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/gd32_drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/gd32/arm/gd32105r-start/board/SConscript b/bsp/gd32/arm/gd32105r-start/board/SConscript index a85b0a42ae..38fe7e111a 100644 --- a/bsp/gd32/arm/gd32105r-start/board/SConscript +++ b/bsp/gd32/arm/gd32105r-start/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s'] - + CPPDEFINES = ['GD32F10X_CL'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/gd32/arm/gd32107c-eval/Kconfig b/bsp/gd32/arm/gd32107c-eval/Kconfig index dbc650938f..609eb0745e 100644 --- a/bsp/gd32/arm/gd32107c-eval/Kconfig +++ b/bsp/gd32/arm/gd32107c-eval/Kconfig @@ -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" diff --git a/bsp/gd32/arm/gd32107c-eval/board/Kconfig b/bsp/gd32/arm/gd32107c-eval/board/Kconfig index 1e25efc95a..042ec1546b 100644 --- a/bsp/gd32/arm/gd32107c-eval/board/Kconfig +++ b/bsp/gd32/arm/gd32107c-eval/board/Kconfig @@ -3,14 +3,14 @@ menu "Hardware Drivers Config" config SOC_SERIES_GD32F10x bool default y - + config SOC_GD32107V bool select SOC_SERIES_GD32F10x select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART0_RX_USING_DMA bool "Enable UART0 RX DMA" - depends on BSP_USING_UART0 + depends on BSP_USING_UART0 select RT_SERIAL_USING_DMA default n @@ -43,7 +43,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART1_RX_USING_DMA bool "Enable UART1 RX DMA" - depends on BSP_USING_UART1 + depends on BSP_USING_UART1 select RT_SERIAL_USING_DMA default n @@ -53,7 +53,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" - depends on BSP_USING_UART2 + depends on BSP_USING_UART2 select RT_SERIAL_USING_DMA default n @@ -63,7 +63,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" - depends on BSP_USING_UART3 + depends on BSP_USING_UART3 select RT_SERIAL_USING_DMA default n @@ -73,7 +73,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART4_RX_USING_DMA bool "Enable UART4 RX DMA" - depends on BSP_USING_UART4 + depends on BSP_USING_UART4 select RT_SERIAL_USING_DMA default n endif @@ -91,7 +91,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -197,11 +197,11 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/gd32_drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/gd32/arm/gd32107c-eval/board/SConscript b/bsp/gd32/arm/gd32107c-eval/board/SConscript index a85b0a42ae..38fe7e111a 100644 --- a/bsp/gd32/arm/gd32107c-eval/board/SConscript +++ b/bsp/gd32/arm/gd32107c-eval/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s'] - + CPPDEFINES = ['GD32F10X_CL'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/gd32/arm/gd32205r-start/Kconfig b/bsp/gd32/arm/gd32205r-start/Kconfig index dbc650938f..609eb0745e 100644 --- a/bsp/gd32/arm/gd32205r-start/Kconfig +++ b/bsp/gd32/arm/gd32205r-start/Kconfig @@ -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" diff --git a/bsp/gd32/arm/gd32205r-start/board/Kconfig b/bsp/gd32/arm/gd32205r-start/board/Kconfig index 082bf71fd6..7768739466 100644 --- a/bsp/gd32/arm/gd32205r-start/board/Kconfig +++ b/bsp/gd32/arm/gd32205r-start/board/Kconfig @@ -10,7 +10,7 @@ config SOC_GD32205R select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART0_RX_USING_DMA bool "Enable UART0 RX DMA" - depends on BSP_USING_UART0 + depends on BSP_USING_UART0 select RT_SERIAL_USING_DMA default n @@ -43,7 +43,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART1_RX_USING_DMA bool "Enable UART1 RX DMA" - depends on BSP_USING_UART1 + depends on BSP_USING_UART1 select RT_SERIAL_USING_DMA default n @@ -53,7 +53,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" - depends on BSP_USING_UART2 + depends on BSP_USING_UART2 select RT_SERIAL_USING_DMA default n @@ -63,7 +63,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" - depends on BSP_USING_UART3 + depends on BSP_USING_UART3 select RT_SERIAL_USING_DMA default n @@ -73,7 +73,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART4_RX_USING_DMA bool "Enable UART4 RX DMA" - depends on BSP_USING_UART4 + depends on BSP_USING_UART4 select RT_SERIAL_USING_DMA default n endif @@ -91,7 +91,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -200,11 +200,11 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/gd32_drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/gd32/arm/gd32205r-start/board/SConscript b/bsp/gd32/arm/gd32205r-start/board/SConscript index e3e280f6ae..f093b1109a 100644 --- a/bsp/gd32/arm/gd32205r-start/board/SConscript +++ b/bsp/gd32/arm/gd32205r-start/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/GD32F20x_Firmware_Library/CMSIS/GD/GD32F20x/Source/ARM/startup_gd32f20x_cl.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/GD32F20x_Firmware_Library/CMSIS/GD/GD32F20x/Source/IAR/startup_gd32f20x_cl.s'] - + CPPDEFINES = ['GD32F20X_CL'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/gd32/arm/gd32207i-eval/Kconfig b/bsp/gd32/arm/gd32207i-eval/Kconfig index dbc650938f..609eb0745e 100644 --- a/bsp/gd32/arm/gd32207i-eval/Kconfig +++ b/bsp/gd32/arm/gd32207i-eval/Kconfig @@ -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" diff --git a/bsp/gd32/arm/gd32207i-eval/board/Kconfig b/bsp/gd32/arm/gd32207i-eval/board/Kconfig index 605ec81987..8c256a17e6 100644 --- a/bsp/gd32/arm/gd32207i-eval/board/Kconfig +++ b/bsp/gd32/arm/gd32207i-eval/board/Kconfig @@ -10,7 +10,7 @@ config SOC_GD32207I select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART0_RX_USING_DMA bool "Enable UART0 RX DMA" - depends on BSP_USING_UART0 + depends on BSP_USING_UART0 select RT_SERIAL_USING_DMA default n @@ -43,7 +43,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART1_RX_USING_DMA bool "Enable UART1 RX DMA" - depends on BSP_USING_UART1 + depends on BSP_USING_UART1 select RT_SERIAL_USING_DMA default n @@ -53,7 +53,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" - depends on BSP_USING_UART2 + depends on BSP_USING_UART2 select RT_SERIAL_USING_DMA default n @@ -63,7 +63,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" - depends on BSP_USING_UART3 + depends on BSP_USING_UART3 select RT_SERIAL_USING_DMA default n @@ -73,7 +73,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART4_RX_USING_DMA bool "Enable UART4 RX DMA" - depends on BSP_USING_UART4 + depends on BSP_USING_UART4 select RT_SERIAL_USING_DMA default n @@ -83,7 +83,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART5_RX_USING_DMA bool "Enable UART5 RX DMA" - depends on BSP_USING_UART5 + depends on BSP_USING_UART5 select RT_SERIAL_USING_DMA default n @@ -93,7 +93,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART6_RX_USING_DMA bool "Enable UART6 RX DMA" - depends on BSP_USING_UART6 + depends on BSP_USING_UART6 select RT_SERIAL_USING_DMA default n @@ -103,7 +103,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART7_RX_USING_DMA bool "Enable UART7 RX DMA" - depends on BSP_USING_UART7 + depends on BSP_USING_UART7 select RT_SERIAL_USING_DMA default n endif @@ -121,7 +121,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -231,11 +231,11 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/gd32_drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/gd32/arm/gd32207i-eval/board/SConscript b/bsp/gd32/arm/gd32207i-eval/board/SConscript index e3e280f6ae..f093b1109a 100644 --- a/bsp/gd32/arm/gd32207i-eval/board/SConscript +++ b/bsp/gd32/arm/gd32207i-eval/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/GD32F20x_Firmware_Library/CMSIS/GD/GD32F20x/Source/ARM/startup_gd32f20x_cl.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/GD32F20x_Firmware_Library/CMSIS/GD/GD32F20x/Source/IAR/startup_gd32f20x_cl.s'] - + CPPDEFINES = ['GD32F20X_CL'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/gd32/arm/gd32303c-start/Kconfig b/bsp/gd32/arm/gd32303c-start/Kconfig index dbc650938f..609eb0745e 100644 --- a/bsp/gd32/arm/gd32303c-start/Kconfig +++ b/bsp/gd32/arm/gd32303c-start/Kconfig @@ -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" diff --git a/bsp/gd32/arm/gd32303c-start/board/Kconfig b/bsp/gd32/arm/gd32303c-start/board/Kconfig index 800d811e07..38e019b368 100644 --- a/bsp/gd32/arm/gd32303c-start/board/Kconfig +++ b/bsp/gd32/arm/gd32303c-start/board/Kconfig @@ -3,14 +3,14 @@ menu "Hardware Drivers Config" config SOC_SERIES_GD32F30x bool default y - + config SOC_GD32303C bool select SOC_SERIES_GD32F30x select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -27,25 +27,25 @@ menu "On-chip Peripheral Drivers" default y select RT_USING_SERIAL if BSP_USING_UART - + config BSP_USING_UART1 bool "Enable UART1" default y config BSP_UART1_RX_USING_DMA bool "Enable UART1 RX DMA" - depends on BSP_USING_UART1 + depends on BSP_USING_UART1 select RT_SERIAL_USING_DMA default n - + endif source "../libraries/gd32_drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/gd32/arm/gd32303c-start/board/SConscript b/bsp/gd32/arm/gd32303c-start/board/SConscript index a0de51447a..dc154c5aed 100644 --- a/bsp/gd32/arm/gd32303c-start/board/SConscript +++ b/bsp/gd32/arm/gd32303c-start/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/ARM/startup_gd32f30x_xd.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/IAR/startup_gd32f30x_xd.s'] - + CPPDEFINES = ['GD32F30X_XD'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/gd32/arm/gd32303e-eval/Kconfig b/bsp/gd32/arm/gd32303e-eval/Kconfig index dbc650938f..609eb0745e 100644 --- a/bsp/gd32/arm/gd32303e-eval/Kconfig +++ b/bsp/gd32/arm/gd32303e-eval/Kconfig @@ -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" diff --git a/bsp/gd32/arm/gd32303e-eval/board/Kconfig b/bsp/gd32/arm/gd32303e-eval/board/Kconfig index e954516cdf..2e45ca4ebe 100644 --- a/bsp/gd32/arm/gd32303e-eval/board/Kconfig +++ b/bsp/gd32/arm/gd32303e-eval/board/Kconfig @@ -3,14 +3,14 @@ menu "Hardware Drivers Config" config SOC_SERIES_GD32F30x bool default y - + config SOC_GD32303Z bool select SOC_SERIES_GD32F30x select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART0_RX_USING_DMA bool "Enable UART0 RX DMA" - depends on BSP_USING_UART0 + depends on BSP_USING_UART0 select RT_SERIAL_USING_DMA default n @@ -43,7 +43,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART1_RX_USING_DMA bool "Enable UART1 RX DMA" - depends on BSP_USING_UART1 + depends on BSP_USING_UART1 select RT_SERIAL_USING_DMA default n @@ -53,7 +53,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" - depends on BSP_USING_UART2 + depends on BSP_USING_UART2 select RT_SERIAL_USING_DMA default n @@ -63,7 +63,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" - depends on BSP_USING_UART3 + depends on BSP_USING_UART3 select RT_SERIAL_USING_DMA default n @@ -73,7 +73,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART4_RX_USING_DMA bool "Enable UART4 RX DMA" - depends on BSP_USING_UART4 + depends on BSP_USING_UART4 select RT_SERIAL_USING_DMA default n endif @@ -91,7 +91,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -201,11 +201,11 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/gd32_drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/gd32/arm/gd32303e-eval/board/SConscript b/bsp/gd32/arm/gd32303e-eval/board/SConscript index 4952e20f50..a46b2b8bac 100644 --- a/bsp/gd32/arm/gd32303e-eval/board/SConscript +++ b/bsp/gd32/arm/gd32303e-eval/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/ARM/startup_gd32f30x_hd.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/IAR/startup_gd32f30x_hd.s'] - + CPPDEFINES = ['GD32F30X_HD'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/gd32/arm/gd32305r-start/Kconfig b/bsp/gd32/arm/gd32305r-start/Kconfig index dbc650938f..609eb0745e 100644 --- a/bsp/gd32/arm/gd32305r-start/Kconfig +++ b/bsp/gd32/arm/gd32305r-start/Kconfig @@ -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" diff --git a/bsp/gd32/arm/gd32305r-start/board/Kconfig b/bsp/gd32/arm/gd32305r-start/board/Kconfig index 0fc1318daa..1d843f0510 100644 --- a/bsp/gd32/arm/gd32305r-start/board/Kconfig +++ b/bsp/gd32/arm/gd32305r-start/board/Kconfig @@ -3,14 +3,14 @@ menu "Hardware Drivers Config" config SOC_SERIES_GD32F30x bool default y - + config SOC_GD32305R bool select SOC_SERIES_GD32F30x select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART0_RX_USING_DMA bool "Enable UART0 RX DMA" - depends on BSP_USING_UART0 + depends on BSP_USING_UART0 select RT_SERIAL_USING_DMA default n @@ -43,7 +43,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART1_RX_USING_DMA bool "Enable UART1 RX DMA" - depends on BSP_USING_UART1 + depends on BSP_USING_UART1 select RT_SERIAL_USING_DMA default n @@ -53,7 +53,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" - depends on BSP_USING_UART2 + depends on BSP_USING_UART2 select RT_SERIAL_USING_DMA default n @@ -63,7 +63,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" - depends on BSP_USING_UART3 + depends on BSP_USING_UART3 select RT_SERIAL_USING_DMA default n @@ -73,7 +73,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART4_RX_USING_DMA bool "Enable UART4 RX DMA" - depends on BSP_USING_UART4 + depends on BSP_USING_UART4 select RT_SERIAL_USING_DMA default n endif @@ -91,7 +91,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -197,11 +197,11 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/gd32_drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/gd32/arm/gd32305r-start/board/SConscript b/bsp/gd32/arm/gd32305r-start/board/SConscript index 09ae44cf73..604f917ad0 100644 --- a/bsp/gd32/arm/gd32305r-start/board/SConscript +++ b/bsp/gd32/arm/gd32305r-start/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/ARM/startup_gd32f30x_cl.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/IAR/startup_gd32f30x_cl.s'] - + CPPDEFINES = ['GD32F30X_CL'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/gd32/arm/gd32307e-start/Kconfig b/bsp/gd32/arm/gd32307e-start/Kconfig index dbc650938f..609eb0745e 100644 --- a/bsp/gd32/arm/gd32307e-start/Kconfig +++ b/bsp/gd32/arm/gd32307e-start/Kconfig @@ -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" diff --git a/bsp/gd32/arm/gd32307e-start/board/Kconfig b/bsp/gd32/arm/gd32307e-start/board/Kconfig index 11ccc123a6..f3564af5e4 100644 --- a/bsp/gd32/arm/gd32307e-start/board/Kconfig +++ b/bsp/gd32/arm/gd32307e-start/board/Kconfig @@ -3,14 +3,14 @@ menu "Hardware Drivers Config" config SOC_SERIES_GD32F30x bool default y - + config SOC_GD32307E bool select SOC_SERIES_GD32F30x select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART0_RX_USING_DMA bool "Enable UART0 RX DMA" - depends on BSP_USING_UART0 + depends on BSP_USING_UART0 select RT_SERIAL_USING_DMA default n @@ -43,7 +43,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART1_RX_USING_DMA bool "Enable UART1 RX DMA" - depends on BSP_USING_UART1 + depends on BSP_USING_UART1 select RT_SERIAL_USING_DMA default n @@ -53,7 +53,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" - depends on BSP_USING_UART2 + depends on BSP_USING_UART2 select RT_SERIAL_USING_DMA default n @@ -63,7 +63,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" - depends on BSP_USING_UART3 + depends on BSP_USING_UART3 select RT_SERIAL_USING_DMA default n @@ -73,7 +73,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART4_RX_USING_DMA bool "Enable UART4 RX DMA" - depends on BSP_USING_UART4 + depends on BSP_USING_UART4 select RT_SERIAL_USING_DMA default n @@ -92,7 +92,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -198,11 +198,11 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/gd32_drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/gd32/arm/gd32307e-start/board/SConscript b/bsp/gd32/arm/gd32307e-start/board/SConscript index 09ae44cf73..604f917ad0 100644 --- a/bsp/gd32/arm/gd32307e-start/board/SConscript +++ b/bsp/gd32/arm/gd32307e-start/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/ARM/startup_gd32f30x_cl.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/IAR/startup_gd32f30x_cl.s'] - + CPPDEFINES = ['GD32F30X_CL'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/gd32/arm/gd32407v-start/Kconfig b/bsp/gd32/arm/gd32407v-start/Kconfig index dbc650938f..609eb0745e 100644 --- a/bsp/gd32/arm/gd32407v-start/Kconfig +++ b/bsp/gd32/arm/gd32407v-start/Kconfig @@ -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" diff --git a/bsp/gd32/arm/gd32407v-start/board/Kconfig b/bsp/gd32/arm/gd32407v-start/board/Kconfig index 9bcff58577..ade6c2d1a5 100644 --- a/bsp/gd32/arm/gd32407v-start/board/Kconfig +++ b/bsp/gd32/arm/gd32407v-start/board/Kconfig @@ -5,12 +5,12 @@ config SOC_SERIES_GD32F4xx default y config SOC_GD32407V - bool + bool select SOC_SERIES_GD32F4xx select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART0_RX_USING_DMA bool "Enable UART0 RX DMA" - depends on BSP_USING_UART0 + depends on BSP_USING_UART0 select RT_SERIAL_USING_DMA default n @@ -43,7 +43,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART1_RX_USING_DMA bool "Enable UART1 RX DMA" - depends on BSP_USING_UART1 + depends on BSP_USING_UART1 select RT_SERIAL_USING_DMA default n @@ -53,7 +53,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" - depends on BSP_USING_UART2 + depends on BSP_USING_UART2 select RT_SERIAL_USING_DMA default n @@ -63,7 +63,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" - depends on BSP_USING_UART3 + depends on BSP_USING_UART3 select RT_SERIAL_USING_DMA default n @@ -73,7 +73,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART4_RX_USING_DMA bool "Enable UART4 RX DMA" - depends on BSP_USING_UART4 + depends on BSP_USING_UART4 select RT_SERIAL_USING_DMA default n @@ -83,7 +83,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART5_RX_USING_DMA bool "Enable UART5 RX DMA" - depends on BSP_USING_UART5 + depends on BSP_USING_UART5 select RT_SERIAL_USING_DMA default n endif @@ -101,7 +101,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -211,11 +211,11 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/gd32_drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/gd32/arm/gd32407v-start/board/SConscript b/bsp/gd32/arm/gd32407v-start/board/SConscript index 0d775ec7dc..f3eb284f0a 100644 --- a/bsp/gd32/arm/gd32407v-start/board/SConscript +++ b/bsp/gd32/arm/gd32407v-start/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s'] - + CPPDEFINES = ['GD32F407'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/gd32/arm/gd32450z-eval/Kconfig b/bsp/gd32/arm/gd32450z-eval/Kconfig index dbc650938f..609eb0745e 100644 --- a/bsp/gd32/arm/gd32450z-eval/Kconfig +++ b/bsp/gd32/arm/gd32450z-eval/Kconfig @@ -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" diff --git a/bsp/gd32/arm/gd32450z-eval/board/Kconfig b/bsp/gd32/arm/gd32450z-eval/board/Kconfig index c32001e040..b47fa6fdcd 100644 --- a/bsp/gd32/arm/gd32450z-eval/board/Kconfig +++ b/bsp/gd32/arm/gd32450z-eval/board/Kconfig @@ -1,16 +1,16 @@ menu "Hardware Drivers Config" config SOC_SERIES_GD32F4xx - bool + bool default y config SOC_GD32450Z - bool + bool select SOC_SERIES_GD32F4xx select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART0_RX_USING_DMA bool "Enable UART0 RX DMA" - depends on BSP_USING_UART0 + depends on BSP_USING_UART0 select RT_SERIAL_USING_DMA default n @@ -43,7 +43,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART1_RX_USING_DMA bool "Enable UART1 RX DMA" - depends on BSP_USING_UART1 + depends on BSP_USING_UART1 select RT_SERIAL_USING_DMA default n @@ -53,7 +53,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" - depends on BSP_USING_UART2 + depends on BSP_USING_UART2 select RT_SERIAL_USING_DMA default n @@ -63,7 +63,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" - depends on BSP_USING_UART3 + depends on BSP_USING_UART3 select RT_SERIAL_USING_DMA default n @@ -73,7 +73,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART4_RX_USING_DMA bool "Enable UART4 RX DMA" - depends on BSP_USING_UART4 + depends on BSP_USING_UART4 select RT_SERIAL_USING_DMA default n @@ -83,7 +83,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART5_RX_USING_DMA bool "Enable UART5 RX DMA" - depends on BSP_USING_UART5 + depends on BSP_USING_UART5 select RT_SERIAL_USING_DMA default n @@ -93,7 +93,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART6_RX_USING_DMA bool "Enable UART6 RX DMA" - depends on BSP_USING_UART6 + depends on BSP_USING_UART6 select RT_SERIAL_USING_DMA default n @@ -103,7 +103,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART7_RX_USING_DMA bool "Enable UART7 RX DMA" - depends on BSP_USING_UART7 + depends on BSP_USING_UART7 select RT_SERIAL_USING_DMA default n endif @@ -121,7 +121,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -231,11 +231,11 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/gd32_drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/gd32/arm/gd32450z-eval/board/SConscript b/bsp/gd32/arm/gd32450z-eval/board/SConscript index cc9fd76fbd..3899909779 100644 --- a/bsp/gd32/arm/gd32450z-eval/board/SConscript +++ b/bsp/gd32/arm/gd32450z-eval/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s'] - + CPPDEFINES = ['GD32F450'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/gd32/arm/libraries/GD32F10x_Firmware_Library/SConscript b/bsp/gd32/arm/libraries/GD32F10x_Firmware_Library/SConscript index 28c6218e22..5657d78931 100644 --- a/bsp/gd32/arm/libraries/GD32F10x_Firmware_Library/SConscript +++ b/bsp/gd32/arm/libraries/GD32F10x_Firmware_Library/SConscript @@ -13,10 +13,10 @@ GD32F10x_standard_peripheral/Source/gd32f10x_rcu.c GD32F10x_standard_peripheral/Source/gd32f10x_exti.c GD32F10x_standard_peripheral/Source/gd32f10x_misc.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['GD32F10x_standard_peripheral/Source/gd32f10x_usart.c'] - + if GetDepend(['RT_USING_I2C']): src += ['GD32F10x_standard_peripheral/Source/gd32f10x_i2c.c'] diff --git a/bsp/gd32/arm/libraries/GD32F20x_Firmware_Library/SConscript b/bsp/gd32/arm/libraries/GD32F20x_Firmware_Library/SConscript index dd90248a40..78cca1b1ae 100644 --- a/bsp/gd32/arm/libraries/GD32F20x_Firmware_Library/SConscript +++ b/bsp/gd32/arm/libraries/GD32F20x_Firmware_Library/SConscript @@ -13,10 +13,10 @@ GD32F20x_standard_peripheral/Source/gd32f20x_rcu.c GD32F20x_standard_peripheral/Source/gd32f20x_exti.c GD32F20x_standard_peripheral/Source/gd32f20x_misc.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['GD32F20x_standard_peripheral/Source/gd32f20x_usart.c'] - + if GetDepend(['RT_USING_I2C']): src += ['GD32F20x_standard_peripheral/Source/gd32f20x_i2c.c'] @@ -45,7 +45,7 @@ if GetDepend(['RT_USING_WDT']): if GetDepend(['RT_USING_SDIO']): src += ['GD32F20x_standard_peripheral/Source/gd32f20x_sdio.c'] - src += ['GD32F20x_standard_peripheral/Source/gd32f20x_dma.c'] + src += ['GD32F20x_standard_peripheral/Source/gd32f20x_dma.c'] path = [ cwd + '/CMSIS/GD/GD32F20x/Include', diff --git a/bsp/gd32/arm/libraries/GD32F30x_Firmware_Library/SConscript b/bsp/gd32/arm/libraries/GD32F30x_Firmware_Library/SConscript index b994b3ab4c..c133704e5f 100644 --- a/bsp/gd32/arm/libraries/GD32F30x_Firmware_Library/SConscript +++ b/bsp/gd32/arm/libraries/GD32F30x_Firmware_Library/SConscript @@ -13,10 +13,10 @@ GD32F30x_standard_peripheral/Source/gd32f30x_rcu.c GD32F30x_standard_peripheral/Source/gd32f30x_exti.c GD32F30x_standard_peripheral/Source/gd32f30x_misc.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['GD32F30x_standard_peripheral/Source/gd32f30x_usart.c'] - + if GetDepend(['RT_USING_I2C']): src += ['GD32F30x_standard_peripheral/Source/gd32f30x_i2c.c'] diff --git a/bsp/gd32/arm/libraries/GD32F4xx_Firmware_Library/SConscript b/bsp/gd32/arm/libraries/GD32F4xx_Firmware_Library/SConscript index 5e99846451..3e7c854023 100644 --- a/bsp/gd32/arm/libraries/GD32F4xx_Firmware_Library/SConscript +++ b/bsp/gd32/arm/libraries/GD32F4xx_Firmware_Library/SConscript @@ -14,10 +14,10 @@ GD32F4xx_standard_peripheral/Source/gd32f4xx_exti.c GD32F4xx_standard_peripheral/Source/gd32f4xx_misc.c GD32F4xx_standard_peripheral/Source/gd32f4xx_syscfg.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['GD32F4xx_standard_peripheral/Source/gd32f4xx_usart.c'] - + if GetDepend(['RT_USING_I2C']): src += ['GD32F4xx_standard_peripheral/Source/gd32f4xx_i2c.c'] diff --git a/bsp/gd32/arm/libraries/gd32_drivers/Kconfig b/bsp/gd32/arm/libraries/gd32_drivers/Kconfig index 93e9ecd88f..8f686d792c 100644 --- a/bsp/gd32/arm/libraries/gd32_drivers/Kconfig +++ b/bsp/gd32/arm/libraries/gd32_drivers/Kconfig @@ -7,20 +7,20 @@ if BSP_USING_USBD # "USB High Speed (HS) Core" config BSP_USBD_SPEED_HS - bool + bool # "USB High Speed (HS) Mode" config BSP_USBD_SPEED_HSINFS - bool + bool # "USB High Speed (HS) Core in FS mode" config BSP_USBD_PHY_EMBEDDED - bool + bool # "Using Embedded phy interface" config BSP_USBD_PHY_UTMI - bool + bool # "UTMI: USB 2.0 Transceiver Macrocell Interace" config BSP_USBD_PHY_ULPI - bool + bool # "ULPI: UTMI+ Low Pin Interface" endif diff --git a/bsp/gd32/arm/libraries/gd32_drivers/SConscript b/bsp/gd32/arm/libraries/gd32_drivers/SConscript index 994d15206c..f2ed0f2d71 100644 --- a/bsp/gd32/arm/libraries/gd32_drivers/SConscript +++ b/bsp/gd32/arm/libraries/gd32_drivers/SConscript @@ -44,7 +44,7 @@ if GetDepend('RT_USING_HWTIMER'): # add adc drivers. if GetDepend('RT_USING_ADC'): src += ['drv_adc.c'] - + # add sdio drivers. if GetDepend('RT_USING_SDIO'): src += ['drv_sdio.c'] diff --git a/bsp/gd32/risc-v/gd32vf103r-start/Kconfig b/bsp/gd32/risc-v/gd32vf103r-start/Kconfig index dbc650938f..609eb0745e 100644 --- a/bsp/gd32/risc-v/gd32vf103r-start/Kconfig +++ b/bsp/gd32/risc-v/gd32vf103r-start/Kconfig @@ -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" diff --git a/bsp/gd32/risc-v/gd32vf103r-start/SConstruct b/bsp/gd32/risc-v/gd32vf103r-start/SConstruct index cc841fc64a..dac46990a1 100644 --- a/bsp/gd32/risc-v/gd32vf103r-start/SConstruct +++ b/bsp/gd32/risc-v/gd32vf103r-start/SConstruct @@ -54,4 +54,4 @@ objs.extend(SConscript(os.path.join(libraries_path_prefix, gd32_library, 'SConsc objs.extend(SConscript(os.path.join(libraries_path_prefix, 'gd32_drivers', 'SConscript'))) # make a building -DoBuilding(TARGET, objs) \ No newline at end of file +DoBuilding(TARGET, objs) diff --git a/bsp/gd32/risc-v/gd32vf103r-start/board/Kconfig b/bsp/gd32/risc-v/gd32vf103r-start/board/Kconfig index a5691b840d..1be6be67d1 100644 --- a/bsp/gd32/risc-v/gd32vf103r-start/board/Kconfig +++ b/bsp/gd32/risc-v/gd32vf103r-start/board/Kconfig @@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART0_RX_USING_DMA bool "Enable UART0 RX DMA" - depends on BSP_USING_UART0 + depends on BSP_USING_UART0 select RT_SERIAL_USING_DMA default n @@ -43,7 +43,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART1_RX_USING_DMA bool "Enable UART1 RX DMA" - depends on BSP_USING_UART1 + depends on BSP_USING_UART1 select RT_SERIAL_USING_DMA default n @@ -53,7 +53,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" - depends on BSP_USING_UART2 + depends on BSP_USING_UART2 select RT_SERIAL_USING_DMA default n @@ -63,7 +63,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" - depends on BSP_USING_UART3 + depends on BSP_USING_UART3 select RT_SERIAL_USING_DMA default n @@ -73,7 +73,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART4_RX_USING_DMA bool "Enable UART4 RX DMA" - depends on BSP_USING_UART4 + depends on BSP_USING_UART4 select RT_SERIAL_USING_DMA default n endif @@ -91,7 +91,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 diff --git a/bsp/gd32/risc-v/gd32vf103r-start/board/SConscript b/bsp/gd32/risc-v/gd32vf103r-start/board/SConscript index b3d28385e6..3f96726e36 100644 --- a/bsp/gd32/risc-v/gd32vf103r-start/board/SConscript +++ b/bsp/gd32/risc-v/gd32vf103r-start/board/SConscript @@ -14,7 +14,7 @@ board.c path = [cwd] startup_path_prefix = SDK_LIB - + if rtconfig.PLATFORM in ['gcc']: src += [startup_path_prefix + '/GD32VF103_Firmware_Library/RISCV/env_Eclipse/start.S'] src += [startup_path_prefix + '/GD32VF103_Firmware_Library/RISCV/env_Eclipse/entry.S'] diff --git a/bsp/gd32/risc-v/gd32vf103v-eval/Kconfig b/bsp/gd32/risc-v/gd32vf103v-eval/Kconfig index dbc650938f..609eb0745e 100644 --- a/bsp/gd32/risc-v/gd32vf103v-eval/Kconfig +++ b/bsp/gd32/risc-v/gd32vf103v-eval/Kconfig @@ -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" diff --git a/bsp/gd32/risc-v/gd32vf103v-eval/SConstruct b/bsp/gd32/risc-v/gd32vf103v-eval/SConstruct index cc841fc64a..dac46990a1 100644 --- a/bsp/gd32/risc-v/gd32vf103v-eval/SConstruct +++ b/bsp/gd32/risc-v/gd32vf103v-eval/SConstruct @@ -54,4 +54,4 @@ objs.extend(SConscript(os.path.join(libraries_path_prefix, gd32_library, 'SConsc objs.extend(SConscript(os.path.join(libraries_path_prefix, 'gd32_drivers', 'SConscript'))) # make a building -DoBuilding(TARGET, objs) \ No newline at end of file +DoBuilding(TARGET, objs) diff --git a/bsp/gd32/risc-v/gd32vf103v-eval/board/Kconfig b/bsp/gd32/risc-v/gd32vf103v-eval/board/Kconfig index b24d929aa3..52a1b0dcb0 100644 --- a/bsp/gd32/risc-v/gd32vf103v-eval/board/Kconfig +++ b/bsp/gd32/risc-v/gd32vf103v-eval/board/Kconfig @@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART0_RX_USING_DMA bool "Enable UART0 RX DMA" - depends on BSP_USING_UART0 + depends on BSP_USING_UART0 select RT_SERIAL_USING_DMA default n @@ -43,7 +43,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART1_RX_USING_DMA bool "Enable UART1 RX DMA" - depends on BSP_USING_UART1 + depends on BSP_USING_UART1 select RT_SERIAL_USING_DMA default n @@ -53,7 +53,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" - depends on BSP_USING_UART2 + depends on BSP_USING_UART2 select RT_SERIAL_USING_DMA default n @@ -63,7 +63,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" - depends on BSP_USING_UART3 + depends on BSP_USING_UART3 select RT_SERIAL_USING_DMA default n @@ -73,7 +73,7 @@ menu "On-chip Peripheral Drivers" config BSP_UART4_RX_USING_DMA bool "Enable UART4 RX DMA" - depends on BSP_USING_UART4 + depends on BSP_USING_UART4 select RT_SERIAL_USING_DMA default n endif @@ -91,7 +91,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 diff --git a/bsp/gd32/risc-v/gd32vf103v-eval/board/SConscript b/bsp/gd32/risc-v/gd32vf103v-eval/board/SConscript index 2215b51958..cb6f98bca2 100644 --- a/bsp/gd32/risc-v/gd32vf103v-eval/board/SConscript +++ b/bsp/gd32/risc-v/gd32vf103v-eval/board/SConscript @@ -14,7 +14,7 @@ board.c path = [cwd] startup_path_prefix = SDK_LIB - + if rtconfig.PLATFORM in ['gcc']: src += [startup_path_prefix + '/GD32VF103_Firmware_Library/RISCV/env_Eclipse/start.S'] src += [startup_path_prefix + '/GD32VF103_Firmware_Library/RISCV/env_Eclipse/entry.S'] diff --git a/bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/SConscript b/bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/SConscript index 3739964aba..2c2cb02900 100644 --- a/bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/SConscript +++ b/bsp/gd32/risc-v/libraries/GD32VF103_Firmware_Library/SConscript @@ -18,10 +18,10 @@ GD32VF103_standard_peripheral/Source/gd32vf103_rcu.c GD32VF103_standard_peripheral/Source/gd32vf103_exti.c GD32VF103_standard_peripheral/Source/gd32vf103_eclic.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['GD32VF103_standard_peripheral/Source/gd32vf103_usart.c'] - + if GetDepend(['RT_USING_I2C']): src += ['GD32VF103_standard_peripheral/Source/gd32vf103_i2c.c'] diff --git a/bsp/gd32105c-eval/Kconfig b/bsp/gd32105c-eval/Kconfig index 3050d65e26..bead9b5eea 100644 --- a/bsp/gd32105c-eval/Kconfig +++ b/bsp/gd32105c-eval/Kconfig @@ -19,7 +19,7 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" source "drivers/Kconfig" - + diff --git a/bsp/gd32105c-eval/Libraries/SConscript b/bsp/gd32105c-eval/Libraries/SConscript index 9310cdf80c..b77e069f46 100644 --- a/bsp/gd32105c-eval/Libraries/SConscript +++ b/bsp/gd32105c-eval/Libraries/SConscript @@ -21,7 +21,7 @@ path = [ cwd + '/CMSIS/GD/GD32F10x/Include', cwd + '/CMSIS', cwd + '/GD32F10x_standard_peripheral/Include',] - + if GetDepend(['RT_USING_BSP_USB']): path += [cwd + '/GD32F10x_usbfs_driver/Include'] src += [cwd + '/GD32F10x_usbfs_driver/Source'] diff --git a/bsp/gd32105c-eval/drivers/Kconfig b/bsp/gd32105c-eval/drivers/Kconfig index e2f6367a08..333a49bc25 100644 --- a/bsp/gd32105c-eval/drivers/Kconfig +++ b/bsp/gd32105c-eval/drivers/Kconfig @@ -44,7 +44,7 @@ menu "On-chip Peripheral Drivers" config RT_USING_SPI1 bool "Using SPI1" select RT_USING_SPI - default n + default n config RT_USING_SPI2 bool "Using SPI2" @@ -59,7 +59,7 @@ menu "On-chip Peripheral Drivers" config RT_USING_I2C1 bool "Using I2C1" select RT_USING_I2C - default n + default n endmenu menu "Board extended module Drivers" diff --git a/bsp/gd32107c-eval/Kconfig b/bsp/gd32107c-eval/Kconfig index 3050d65e26..bead9b5eea 100644 --- a/bsp/gd32107c-eval/Kconfig +++ b/bsp/gd32107c-eval/Kconfig @@ -19,7 +19,7 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" source "drivers/Kconfig" - + diff --git a/bsp/gd32107c-eval/Libraries/SConscript b/bsp/gd32107c-eval/Libraries/SConscript index 9310cdf80c..b77e069f46 100644 --- a/bsp/gd32107c-eval/Libraries/SConscript +++ b/bsp/gd32107c-eval/Libraries/SConscript @@ -21,7 +21,7 @@ path = [ cwd + '/CMSIS/GD/GD32F10x/Include', cwd + '/CMSIS', cwd + '/GD32F10x_standard_peripheral/Include',] - + if GetDepend(['RT_USING_BSP_USB']): path += [cwd + '/GD32F10x_usbfs_driver/Include'] src += [cwd + '/GD32F10x_usbfs_driver/Source'] diff --git a/bsp/gd32107c-eval/drivers/Kconfig b/bsp/gd32107c-eval/drivers/Kconfig index ad63f6f612..d6ee12a61c 100644 --- a/bsp/gd32107c-eval/drivers/Kconfig +++ b/bsp/gd32107c-eval/drivers/Kconfig @@ -44,7 +44,7 @@ menu "On-chip Peripheral Drivers" config RT_USING_SPI1 bool "Using SPI1" select RT_USING_SPI - default n + default n config RT_USING_SPI2 bool "Using SPI2" @@ -59,7 +59,7 @@ menu "On-chip Peripheral Drivers" config RT_USING_I2C1 bool "Using I2C1" select RT_USING_I2C - default n + default n endmenu menu "Board extended module Drivers" diff --git a/bsp/gd32303e-eval/Kconfig b/bsp/gd32303e-eval/Kconfig index 92419a3aa0..692f18d25f 100644 --- a/bsp/gd32303e-eval/Kconfig +++ b/bsp/gd32303e-eval/Kconfig @@ -19,7 +19,7 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" config SOC_GD32303E - bool + bool select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y @@ -28,7 +28,7 @@ config RT_USING_USART0 bool "Using USART0" select RT_USING_SERIAL default y - + config RT_USING_USART1 bool "Using USART1" select RT_USING_SERIAL @@ -43,7 +43,7 @@ config RT_USING_UART3 bool "Using UART3" select RT_USING_SERIAL default n - + config RT_USING_UART4 bool "Using UART4" select RT_USING_SERIAL @@ -52,33 +52,33 @@ config RT_USING_UART4 config RT_USING_SPI0 bool "Using SPI0" select RT_USING_SPI - default y + default y config RT_USING_SPI1 bool "Using SPI1" select RT_USING_SPI - default n + default n config RT_USING_SPI2 bool "Using SPI2" select RT_USING_SPI - default n + default n config RT_USING_SPI3 bool "Using SPI2 BUS (software simulation)" select RT_USING_SPI select RT_USING_SPI_BITOPS - default n + default n config RT_USING_I2C0 bool "Using I2C0" select RT_USING_I2C - default n + default n config RT_USING_I2C1 bool "Using I2C1" select RT_USING_I2C - default n + default n diff --git a/bsp/gd32303e-eval/Libraries/SConscript b/bsp/gd32303e-eval/Libraries/SConscript index 42bfdc9a87..244fe1ff5e 100644 --- a/bsp/gd32303e-eval/Libraries/SConscript +++ b/bsp/gd32303e-eval/Libraries/SConscript @@ -21,7 +21,7 @@ path = [ cwd + '/CMSIS/GD/GD32F30x/Include', cwd + '/CMSIS', cwd + '/GD32F30x_standard_peripheral/Include',] - + if GetDepend(['RT_USING_BSP_USB']): path += [cwd + '/GD32F30x_usb_driver/Include'] src += [cwd + '/GD32F30x_usb_driver/Source'] diff --git a/bsp/gd32450z-eval/Kconfig b/bsp/gd32450z-eval/Kconfig index 4227b5a0b6..6f30da0203 100644 --- a/bsp/gd32450z-eval/Kconfig +++ b/bsp/gd32450z-eval/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../.." - + # you can change the RTT_ROOT default: "rt-thread" # example : default "F:/git_repositories/rt-thread" @@ -22,14 +22,14 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" config SOC_GD32450Z - bool + bool select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y config BSP_USING_SDRAM bool "Using sdram" - default y + default y config BSP_USING_UART0 bool "using uart0" @@ -58,4 +58,4 @@ config BSP_USING_UART5 config BSP_USING_LPUART1 bool "using lpuart1" select RT_USING_SERIAL - default n \ No newline at end of file + default n diff --git a/bsp/gd32450z-eval/drivers/SConscript b/bsp/gd32450z-eval/drivers/SConscript index 101a84df85..71f774cc35 100644 --- a/bsp/gd32450z-eval/drivers/SConscript +++ b/bsp/gd32450z-eval/drivers/SConscript @@ -22,14 +22,14 @@ if GetDepend('BSP_USING_SDRAM'): # add Ethernet drivers. if GetDepend('RT_USING_LWIP'): src += ['drv_enet.c', 'synopsys_emac.c'] - + # add lcd drivers. if GetDepend('PKG_USING_GUIENGINE'): src += ['drv_lcd.c', 'gd32f450z_lcd_eval.c'] # add spi flash drivers. if GetDepend('RT_USING_SFUD'): - src += ['drv_spi_flash.c', 'drv_spi.c'] + src += ['drv_spi_flash.c', 'drv_spi.c'] elif GetDepend('RT_USING_SPI'): src += ['drv_spi.c'] diff --git a/bsp/gd32e230k-start/Kconfig b/bsp/gd32e230k-start/Kconfig index ef5abce56d..6391f8ce3d 100644 --- a/bsp/gd32e230k-start/Kconfig +++ b/bsp/gd32e230k-start/Kconfig @@ -19,7 +19,7 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" config SOC_GD32E230K - bool + bool select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y @@ -28,7 +28,7 @@ config RT_USING_USART0 bool "Using USART0" select RT_USING_SERIAL default y - + config RT_USING_USART1 bool "Using USART1" select RT_USING_SERIAL @@ -43,7 +43,7 @@ config RT_USING_UART3 bool "Using UART3" select RT_USING_SERIAL default n - + config RT_USING_UART4 bool "Using UART4" select RT_USING_SERIAL @@ -52,22 +52,22 @@ config RT_USING_UART4 config RT_USING_SPI0 bool "Using SPI0" select RT_USING_SPI - default y + default y config RT_USING_SPI1 bool "Using SPI1" select RT_USING_SPI - default n + default n config RT_USING_I2C0 bool "Using I2C0" select RT_USING_I2C - default n + default n config RT_USING_I2C1 bool "Using I2C1" select RT_USING_I2C - default n + default n diff --git a/bsp/gd32e230k-start/applications/SConscript b/bsp/gd32e230k-start/applications/SConscript index b03718e857..41dbee935c 100644 --- a/bsp/gd32e230k-start/applications/SConscript +++ b/bsp/gd32e230k-start/applications/SConscript @@ -1,7 +1,7 @@ from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/gd32e230k-start/drivers/SConscript b/bsp/gd32e230k-start/drivers/SConscript index df3af3519e..c19cc7a9c1 100644 --- a/bsp/gd32e230k-start/drivers/SConscript +++ b/bsp/gd32e230k-start/drivers/SConscript @@ -13,7 +13,7 @@ CPPPATH = [cwd] # add spi drivers. if GetDepend('RT_USING_SPI'): src += ['drv_spi.c'] - + # add i2c drivers. if GetDepend('RT_USING_I2C'): src += ['drv_i2c.c'] diff --git a/bsp/gd32vf103v-eval/Kconfig b/bsp/gd32vf103v-eval/Kconfig index 5ae20db52a..ce603362e1 100644 --- a/bsp/gd32vf103v-eval/Kconfig +++ b/bsp/gd32vf103v-eval/Kconfig @@ -14,13 +14,13 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" source "board/Kconfig" config SOC_GD32VF103 - bool + bool select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y diff --git a/bsp/gd32vf103v-eval/board/Kconfig b/bsp/gd32vf103v-eval/board/Kconfig index 36ad604658..6c09e736da 100644 --- a/bsp/gd32vf103v-eval/board/Kconfig +++ b/bsp/gd32vf103v-eval/board/Kconfig @@ -29,7 +29,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART0 bool "Enable USART0" default y - endif + endif endmenu diff --git a/bsp/hc32/ev_hc32f460_lqfp100_v2/Kconfig b/bsp/hc32/ev_hc32f460_lqfp100_v2/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/hc32/ev_hc32f460_lqfp100_v2/Kconfig +++ b/bsp/hc32/ev_hc32f460_lqfp100_v2/Kconfig @@ -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" diff --git a/bsp/hc32/ev_hc32f4a0_lqfp176/Kconfig b/bsp/hc32/ev_hc32f4a0_lqfp176/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/hc32/ev_hc32f4a0_lqfp176/Kconfig +++ b/bsp/hc32/ev_hc32f4a0_lqfp176/Kconfig @@ -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" diff --git a/bsp/hc32/ev_hc32f4a0_lqfp176/board/Kconfig b/bsp/hc32/ev_hc32f4a0_lqfp176/board/Kconfig index dc8ac5fe46..498dbebf95 100644 --- a/bsp/hc32/ev_hc32f4a0_lqfp176/board/Kconfig +++ b/bsp/hc32/ev_hc32f4a0_lqfp176/board/Kconfig @@ -1,7 +1,7 @@ menu "Hardware Drivers Config" config SOC_HC32F4A0SI - bool + bool select SOC_SERIES_HC32F4 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN @@ -29,9 +29,9 @@ menu "Onboard Peripheral Drivers" bool "enable phy interrupt mode" select ETH_PHY_INT_PIN default n - + config ETH_PHY_INT_PIN - int + int default 16 endif @@ -84,7 +84,7 @@ menu "On-chip Peripheral Drivers" depends on BSP_USING_UART2 select RT_SERIAL_USING_DMA default n - + config BSP_USING_UART3 bool "Enable UART3" default n @@ -100,7 +100,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART6 bool "Enable UART6" default n - + config BSP_UART6_RX_USING_DMA bool "Enable UART6 RX DMA" depends on BSP_USING_UART6 @@ -147,7 +147,7 @@ menu "On-chip Peripheral Drivers" default y select RT_USING_I2C select RT_USING_I2C_BITOPS - select RT_USING_PIN + select RT_USING_PIN if BSP_USING_I2C1 config BSP_I2C1_SCL_PIN int "i2c1 scl pin number" @@ -157,7 +157,7 @@ menu "On-chip Peripheral Drivers" int "I2C1 sda pin number" range 1 176 default 90 - endif + endif menuconfig BSP_USING_SPI bool "Enable SPI BUS" @@ -172,42 +172,42 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 select BSP_SPI1_TX_USING_DMA default n - + config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n - + default n + config BSP_SPI2_TX_USING_DMA bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 default n - + config BSP_SPI2_RX_USING_DMA bool "Enable SPI2 RX DMA" depends on BSP_USING_SPI2 select BSP_SPI2_TX_USING_DMA default n - + config BSP_USING_SPI3 bool "Enable SPI3 BUS" - default n + default n config BSP_SPI3_TX_USING_DMA bool "Enable SPI3 TX DMA" depends on BSP_USING_SPI3 default n - + config BSP_SPI3_RX_USING_DMA bool "Enable SPI3 RX DMA" depends on BSP_USING_SPI3 select BSP_SPI3_TX_USING_DMA - default n + default n config BSP_USING_SPI4 bool "Enable SPI4 BUS" @@ -217,7 +217,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI4 TX DMA" depends on BSP_USING_SPI4 default n - + config BSP_SPI4_RX_USING_DMA bool "Enable SPI4 RX DMA" depends on BSP_USING_SPI4 @@ -260,5 +260,5 @@ endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/hc32/libraries/hc32_drivers/Kconfig b/bsp/hc32/libraries/hc32_drivers/Kconfig index 93e9ecd88f..8f686d792c 100644 --- a/bsp/hc32/libraries/hc32_drivers/Kconfig +++ b/bsp/hc32/libraries/hc32_drivers/Kconfig @@ -7,20 +7,20 @@ if BSP_USING_USBD # "USB High Speed (HS) Core" config BSP_USBD_SPEED_HS - bool + bool # "USB High Speed (HS) Mode" config BSP_USBD_SPEED_HSINFS - bool + bool # "USB High Speed (HS) Core in FS mode" config BSP_USBD_PHY_EMBEDDED - bool + bool # "Using Embedded phy interface" config BSP_USBD_PHY_UTMI - bool + bool # "UTMI: USB 2.0 Transceiver Macrocell Interace" config BSP_USBD_PHY_ULPI - bool + bool # "ULPI: UTMI+ Low Pin Interface" endif diff --git a/bsp/hc32/libraries/hc32_drivers/SConscript b/bsp/hc32/libraries/hc32_drivers/SConscript index a858e09925..17cc7796eb 100644 --- a/bsp/hc32/libraries/hc32_drivers/SConscript +++ b/bsp/hc32/libraries/hc32_drivers/SConscript @@ -29,10 +29,10 @@ if GetDepend(['RT_USING_ADC']): if GetDepend(['RT_USING_CAN']): src += ['drv_can.c'] - + if GetDepend(['RT_USING_RTC']): src += ['drv_rtc.c'] - + if GetDepend(['RT_USING_WDT']): src += ['drv_wdt.c'] diff --git a/bsp/hc32/libraries/hc32f460_ddl/SConscript b/bsp/hc32/libraries/hc32f460_ddl/SConscript index 4437ec1652..4a1f9c4878 100644 --- a/bsp/hc32/libraries/hc32f460_ddl/SConscript +++ b/bsp/hc32/libraries/hc32f460_ddl/SConscript @@ -23,11 +23,11 @@ drivers/hc32_ll_driver/src/hc32_ll_sram.c drivers/hc32_ll_driver/src/hc32_ll_utility.c drivers/hc32_ll_driver/src/hc32f460_ll_interrupts_share.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['drivers/hc32_ll_driver/src/hc32_ll_usart.c'] src += ['drivers/hc32_ll_driver/src/hc32_ll_tmr0.c'] - + if GetDepend(['RT_USING_I2C']): src += ['drivers/hc32_ll_driver/src/hc32_ll_i2c.c'] @@ -61,7 +61,7 @@ if GetDepend(['RT_USING_ON_CHIP_FLASH']): if GetDepend(['RT_USING_HWTIMER']) or GetDepend(['RT_USING_PWM'] or GetDepend(['RT_USING_PULSE_ENCODER']) or GetDepend(['BSP_USING_PWM_TMRA'])): src += ['drivers/hc32_ll_driver/src/hc32_ll_tmra.c'] - + path = [ cwd + '/drivers/cmsis/Device/HDSC/hc32f4xx/Include', cwd + '/drivers/cmsis/Include', diff --git a/bsp/hc32/libraries/hc32f4a0_ddl/SConscript b/bsp/hc32/libraries/hc32f4a0_ddl/SConscript index ffdd53ba8a..8e345c74c7 100644 --- a/bsp/hc32/libraries/hc32f4a0_ddl/SConscript +++ b/bsp/hc32/libraries/hc32f4a0_ddl/SConscript @@ -23,11 +23,11 @@ drivers/hc32_ll_driver/src/hc32_ll_sram.c drivers/hc32_ll_driver/src/hc32_ll_utility.c drivers/hc32_ll_driver/src/hc32f4a0_ll_interrupts_share.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['drivers/hc32_ll_driver/src/hc32_ll_usart.c'] src += ['drivers/hc32_ll_driver/src/hc32_ll_tmr0.c'] - + if GetDepend(['RT_USING_I2C']): src += ['drivers/hc32_ll_driver/src/hc32_ll_i2c.c'] @@ -61,7 +61,7 @@ if GetDepend(['RT_USING_ON_CHIP_FLASH']): if GetDepend(['RT_USING_HWTIMER']) or GetDepend(['RT_USING_PWM'] or GetDepend(['RT_USING_PULSE_ENCODER'])): src += ['drivers/hc32_ll_driver/src/hc32_ll_tmra.c'] - + path = [ cwd + '/drivers/cmsis/Device/HDSC/hc32f4xx/Include', cwd + '/drivers/cmsis/Include', diff --git a/bsp/hc32l136/Libraries/SConscript b/bsp/hc32l136/Libraries/SConscript index 9877efe6da..df7e4b6564 100644 --- a/bsp/hc32l136/Libraries/SConscript +++ b/bsp/hc32l136/Libraries/SConscript @@ -28,7 +28,7 @@ CMSIS/Device/HDSC/HC32L136/Source/interrupts_hc32l136.c if GetDepend(['RT_USING_WDT']): src += ['HC32L136_StdPeriph_Driver/src/wdt.c'] -#add for startup script +#add for startup script if rtconfig.PLATFORM in ['gcc']: src = src + ['CMSIS/Device/HDSC/HC32L136/Source/GCC/startup_hc32l136.S'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: @@ -36,8 +36,8 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src = src + ['CMSIS/Device/HDSC/HC32L136/Source/IAR/startup_hc32l136.s'] -#add headfile script -path = [cwd + '/CMSIS/Include', +#add headfile script +path = [cwd + '/CMSIS/Include', cwd + '/CMSIS/Device/HDSC/HC32L136/Include', cwd + '/HC32L136_StdPeriph_Driver/inc'] diff --git a/bsp/hc32l136/SConstruct b/bsp/hc32l136/SConstruct index 68378bc0fb..22a7bb44f8 100644 --- a/bsp/hc32l136/SConstruct +++ b/bsp/hc32l136/SConstruct @@ -22,23 +22,23 @@ TARGET = 'hc32L136.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: - env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) - env.Replace(ARFLAGS = ['']) - env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map') + env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) + env.Replace(ARFLAGS = ['']) + env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map') Export('RTT_ROOT') Export('rtconfig') # prepare building environment print "######################env:" -print env +print env objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False) # make a building diff --git a/bsp/hc32l136/board/Kconfig b/bsp/hc32l136/board/Kconfig index 35ecfe181b..641c61c83a 100644 --- a/bsp/hc32l136/board/Kconfig +++ b/bsp/hc32l136/board/Kconfig @@ -1,7 +1,7 @@ menu "Hardware Drivers Config" config MCU_HC32L136 - bool + bool select ARCH_ARM_CORTEX_M0 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN @@ -36,7 +36,7 @@ menu "On-chip Peripheral Drivers" default y select RT_USING_I2C select RT_USING_I2C_BITOPS - select RT_USING_PIN + select RT_USING_PIN if BSP_USING_I2C1 config BSP_I2C1_SCL_PIN int "i2c1 scl pin number" @@ -46,7 +46,7 @@ menu "On-chip Peripheral Drivers" int "I2C1 sda pin number" range 1 176 default 90 - endif + endif endmenu diff --git a/bsp/hc32l136/drivers/SConscript b/bsp/hc32l136/drivers/SConscript index f37a9f6386..951195c3d7 100644 --- a/bsp/hc32l136/drivers/SConscript +++ b/bsp/hc32l136/drivers/SConscript @@ -9,7 +9,7 @@ src = Split(""" if GetDepend(['RT_USING_PIN']): src += ['drv_gpio.c'] - + if GetDepend(['RT_USING_SERIAL']): src += ['drv_usart.c'] diff --git a/bsp/hc32l196/Libraries/SConscript b/bsp/hc32l196/Libraries/SConscript index d4a66b0794..64ebe4eb65 100644 --- a/bsp/hc32l196/Libraries/SConscript +++ b/bsp/hc32l196/Libraries/SConscript @@ -20,7 +20,7 @@ HC32L196_StdPeriph_Driver/src/hc32l196_flash.c if GetDepend(['RT_USING_SERIAL']): src += ['HC32L196_StdPeriph_Driver/src/hc32l196_uart.c'] -#add for startup script +#add for startup script if rtconfig.PLATFORM in ['gcc']: src = src + ['CMSIS/Device/HDSC/HC32L196/Source/GCC/startup_hc32l19x.s'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: @@ -28,8 +28,8 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src = src + ['CMSIS/Device/HDSC/HC32L196/Source/IAR/startup_hc32l19x.s'] -#add headfile script -path = [cwd + '/CMSIS/Include', +#add headfile script +path = [cwd + '/CMSIS/Include', cwd + '/CMSIS/Device/HDSC/HC32L196/Include', cwd + '/HC32L196_StdPeriph_Driver/inc'] diff --git a/bsp/hc32l196/SConstruct b/bsp/hc32l196/SConstruct index 61f0758bec..c2929ae6af 100644 --- a/bsp/hc32l196/SConstruct +++ b/bsp/hc32l196/SConstruct @@ -21,17 +21,17 @@ TARGET = 'rt-thread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: - env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) - env.Replace(ARFLAGS = ['']) - env.Replace(LINKCOM = env["LINKCOM"] + ' --map rt-thread.map') + env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) + env.Replace(ARFLAGS = ['']) + env.Replace(LINKCOM = env["LINKCOM"] + ' --map rt-thread.map') Export('RTT_ROOT') Export('rtconfig') diff --git a/bsp/hc32l196/board/Kconfig b/bsp/hc32l196/board/Kconfig index 09644d608d..02bfa70bef 100644 --- a/bsp/hc32l196/board/Kconfig +++ b/bsp/hc32l196/board/Kconfig @@ -1,7 +1,7 @@ menu "Hardware Drivers Config" config MCU_HC32L196 - bool + bool select ARCH_ARM_CORTEX_M0 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN @@ -22,7 +22,7 @@ menu "On-chip Peripheral Drivers" default y select RT_USING_SERIAL if BSP_USING_UART - config BSP_USING_UART0 + config BSP_USING_UART0 bool "Enable UART0" default y diff --git a/bsp/hc32l196/drivers/SConscript b/bsp/hc32l196/drivers/SConscript index 086e1c5db3..0258ca131b 100644 --- a/bsp/hc32l196/drivers/SConscript +++ b/bsp/hc32l196/drivers/SConscript @@ -9,7 +9,7 @@ src = Split(""" if GetDepend(['RT_USING_PIN']): src += ['drv_gpio.c'] - + if GetDepend(['RT_USING_SERIAL']): src += ['drv_usart.c'] diff --git a/bsp/hifive1/Kconfig b/bsp/hifive1/Kconfig index 64247a3ac4..739d102c82 100644 --- a/bsp/hifive1/Kconfig +++ b/bsp/hifive1/Kconfig @@ -19,7 +19,7 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" config SOC_FE310 - bool + bool select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y diff --git a/bsp/hifive1/SConstruct b/bsp/hifive1/SConstruct index 0a153696a5..1de7e09b16 100644 --- a/bsp/hifive1/SConstruct +++ b/bsp/hifive1/SConstruct @@ -14,10 +14,10 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env['ASCOM'] = env['ASPPCOM'] diff --git a/bsp/hifive1/freedom-e-sdk/SConscript b/bsp/hifive1/freedom-e-sdk/SConscript index b1b8c1332a..424798de7d 100644 --- a/bsp/hifive1/freedom-e-sdk/SConscript +++ b/bsp/hifive1/freedom-e-sdk/SConscript @@ -7,7 +7,7 @@ from building import * cwd = GetCurrentDir() src = [ 'bsp/drivers/plic/plic_driver.c', 'bsp/env/start.S', - 'bsp/env/freedom-e300-hifive1/init.c'] + 'bsp/env/freedom-e300-hifive1/init.c'] CPPPATH = [ cwd + '/bsp/drivers', cwd + '/bsp/drivers/fe300prci', cwd + '/bsp/drivers/plic', cwd + '/bsp/env', cwd + '/bsp/env/freedom-e300-hifive1', diff --git a/bsp/hk32/hk32f030c8-mini/board/Kconfig b/bsp/hk32/hk32f030c8-mini/board/Kconfig index 34025eda33..2479bdc2ec 100644 --- a/bsp/hk32/hk32f030c8-mini/board/Kconfig +++ b/bsp/hk32/hk32f030c8-mini/board/Kconfig @@ -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_RTC bool "Enable RTC" @@ -122,7 +122,7 @@ menu "On-chip Peripheral Drivers" range 0 63 default 25 endif - + config BSP_USING_I2C2 bool "Enable I2C2 BUS (software simulation)" default n @@ -137,7 +137,7 @@ menu "On-chip Peripheral Drivers" default 27 endif endif - + menuconfig BSP_USING_ADC bool "Enable ADC" default n diff --git a/bsp/hk32/hk32f030c8-mini/board/SConscript b/bsp/hk32/hk32f030c8-mini/board/SConscript index 896a036b4c..e3f94278dd 100644 --- a/bsp/hk32/hk32f030c8-mini/board/SConscript +++ b/bsp/hk32/hk32f030c8-mini/board/SConscript @@ -24,7 +24,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/HK32F0xx_StdPeriph_Driver/CMSIS/HK32F0xx/Source/ARM/startup_hk32f030x4x6x8.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/HK32F0xx_StdPeriph_Driver/CMSIS/HK32F0xx/Source/iar/startup_hk32f030x4x6x8.s'] - + CPPDEFINES = ['HK32F030x8'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/hk32/libraries/Kconfig b/bsp/hk32/libraries/Kconfig index a02e9ac821..f4ab1a2672 100644 --- a/bsp/hk32/libraries/Kconfig +++ b/bsp/hk32/libraries/Kconfig @@ -5,5 +5,5 @@ config SOC_SERIES_HK32F0XX bool select ARCH_ARM_CORTEX_M0 select SOC_FAMILY_HK32 - + diff --git a/bsp/hpmicro/hpm6750evk/SConscript b/bsp/hpmicro/hpm6750evk/SConscript index bb673e4f18..014c428d0a 100644 --- a/bsp/hpmicro/hpm6750evk/SConscript +++ b/bsp/hpmicro/hpm6750evk/SConscript @@ -14,4 +14,4 @@ for d in list: if os.path.isfile(os.path.join(path, 'SConscript')): objs = objs + SConscript(os.path.join(d, 'SConscript')) -Return('objs') \ No newline at end of file +Return('objs') diff --git a/bsp/hpmicro/hpm6750evk/board/Kconfig b/bsp/hpmicro/hpm6750evk/board/Kconfig index e506401bb3..429cfbe87d 100644 --- a/bsp/hpmicro/hpm6750evk/board/Kconfig +++ b/bsp/hpmicro/hpm6750evk/board/Kconfig @@ -17,7 +17,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART" default y select RT_USING_SERIAL - + if BSP_USING_UART menuconfig BSP_USING_UART0 bool "Enable UART0 (Debugger)" @@ -172,7 +172,7 @@ menu "On-chip Peripheral Drivers" default 0 endif endif - + menuconfig BSP_USING_SPI @@ -196,21 +196,21 @@ menu "On-chip Peripheral Drivers" default n menuconfig BSP_USING_ETH - bool "Enable Ethernet" - default n - + bool "Enable Ethernet" + default n + select RT_USING_ETH if BSP_USING_ETH - choice - prompt "ETH" - config BSP_USING_ETH0 - bool "Enable ETH0" - - config BSP_USING_ETH1 - bool "Enable ETH1" - endchoice - endif - + choice + prompt "ETH" + config BSP_USING_ETH0 + bool "Enable ETH0" + + config BSP_USING_ETH1 + bool "Enable ETH1" + endchoice + endif + menuconfig BSP_USING_SDXC bool "Enable SDXC" default n @@ -239,8 +239,8 @@ menu "On-chip Peripheral Drivers" endif menuconfig BSP_USING_LCD - bool "Enable LCD" - default n + bool "Enable LCD" + default n menuconfig BSP_USING_LVGL bool "Enable LVGL" @@ -248,31 +248,31 @@ menu "On-chip Peripheral Drivers" select PKG_USING_LVGL if BSP_USING_LVGL menuconfig BSP_USING_GPTMR - bool "Enable GPTMR" - default n - select RT_USING_HWTIMER if BSP_USING_GPTMR - if BSP_USING_GPTMR - config BSP_USING_GPTMR1 - bool "Enable GPTMR1" - default n - config BSP_USING_GPTMR2 - bool "Enable GPTMR2" - default n - config BSP_USING_GPTMR3 - bool "Enable GPTMR3" - default n - config BSP_USING_GPTMR4 - bool "Enable GPTMR4" - default n - config BSP_USING_GPTMR5 - bool "Enable GPTMR5" - default n - config BSP_USING_GPTMR6 - bool "Enable GPTMR6" - default n - config BSP_USING_GPTMR7 - bool "Enable GPTMR7" - default n + bool "Enable GPTMR" + default n + select RT_USING_HWTIMER if BSP_USING_GPTMR + if BSP_USING_GPTMR + config BSP_USING_GPTMR1 + bool "Enable GPTMR1" + default n + config BSP_USING_GPTMR2 + bool "Enable GPTMR2" + default n + config BSP_USING_GPTMR3 + bool "Enable GPTMR3" + default n + config BSP_USING_GPTMR4 + bool "Enable GPTMR4" + default n + config BSP_USING_GPTMR5 + bool "Enable GPTMR5" + default n + config BSP_USING_GPTMR6 + bool "Enable GPTMR6" + default n + config BSP_USING_GPTMR7 + bool "Enable GPTMR7" + default n endif menuconfig BSP_USING_I2C @@ -291,16 +291,16 @@ menu "On-chip Peripheral Drivers" menuconfig INIT_EXT_RAM_FOR_DATA bool "INIT_EXT_RAM_FOR_DATA" default y - - + + menuconfig BSP_USING_XPI_FLASH - bool "Enable XPI FLASH" - default n - select PKG_USING_FAL if BSP_USING_XPI_FLASH + bool "Enable XPI FLASH" + default n + select PKG_USING_FAL if BSP_USING_XPI_FLASH menuconfig BSP_USING_PWM bool "Enable PWM" - default n + default n menuconfig BSP_USING_DAO bool "Enable Audio DAO play" @@ -326,51 +326,51 @@ menu "On-chip Peripheral Drivers" bool "Enable USB" default n if BSP_USING_USB - config BSP_USING_USB_DEVICE + config BSP_USING_USB_DEVICE bool "Enable USB Device" default n config BSP_USING_USB_HOST bool "Enable USB Host" default n endif - - + + menuconfig BSP_USING_WDG - bool "Enable Watchdog" - default n - select RT_USING_WDT if BSP_USING_WDG - if BSP_USING_WDG - config BSP_USING_WDG0 - bool "Enable WDG0" - default n - config BSP_USING_WDG1 - bool "Enable WDG1" - default n - config BSP_USING_WDG2 - bool "Enable WDG2" - default n - config BSP_USING_WDG3 - bool "Enable WDG3" - default n - endif - + bool "Enable Watchdog" + default n + select RT_USING_WDT if BSP_USING_WDG + if BSP_USING_WDG + config BSP_USING_WDG0 + bool "Enable WDG0" + default n + config BSP_USING_WDG1 + bool "Enable WDG1" + default n + config BSP_USING_WDG2 + bool "Enable WDG2" + default n + config BSP_USING_WDG3 + bool "Enable WDG3" + default n + endif + menuconfig BSP_USING_CAN - bool "Enable CAN" - default n - select RT_USING_CAN if BSP_USING_CAN - if BSP_USING_CAN - config BSP_USING_CAN0 - bool "Enable CAN0" - default n - config BSP_USING_CAN1 - bool "Enable CAN1" - default n - config BSP_USING_CAN2 - bool "Enable CAN2" - default n - config BSP_USING_CAN3 - bool "Enable CAN3" - default n + bool "Enable CAN" + default n + select RT_USING_CAN if BSP_USING_CAN + if BSP_USING_CAN + config BSP_USING_CAN0 + bool "Enable CAN0" + default n + config BSP_USING_CAN1 + bool "Enable CAN1" + default n + config BSP_USING_CAN2 + bool "Enable CAN2" + default n + config BSP_USING_CAN3 + bool "Enable CAN3" + default n endif endmenu diff --git a/bsp/hpmicro/hpm6750evk/startup/SConscript b/bsp/hpmicro/hpm6750evk/startup/SConscript index de51a7c0d6..2708fb6742 100644 --- a/bsp/hpmicro/hpm6750evk/startup/SConscript +++ b/bsp/hpmicro/hpm6750evk/startup/SConscript @@ -10,4 +10,4 @@ objs = [] objs = objs + SConscript(os.path.join(cwd, rtconfig.CHIP_NAME, 'SConscript')) ASFLAGS = ' -I' + cwd -Return('objs') \ No newline at end of file +Return('objs') diff --git a/bsp/hpmicro/hpm6750evkmini/SConscript b/bsp/hpmicro/hpm6750evkmini/SConscript index bb673e4f18..014c428d0a 100644 --- a/bsp/hpmicro/hpm6750evkmini/SConscript +++ b/bsp/hpmicro/hpm6750evkmini/SConscript @@ -14,4 +14,4 @@ for d in list: if os.path.isfile(os.path.join(path, 'SConscript')): objs = objs + SConscript(os.path.join(d, 'SConscript')) -Return('objs') \ No newline at end of file +Return('objs') diff --git a/bsp/hpmicro/hpm6750evkmini/board/Kconfig b/bsp/hpmicro/hpm6750evkmini/board/Kconfig index a4ab7880bf..26478a5cd2 100644 --- a/bsp/hpmicro/hpm6750evkmini/board/Kconfig +++ b/bsp/hpmicro/hpm6750evkmini/board/Kconfig @@ -12,17 +12,17 @@ menu "On-chip Peripheral Drivers" bool "Enable GPIO" select RT_USING_PIN if BSP_USING_GPIO default n - + config RW007_USING_BLE - bool "Enable RW007 BLE" - default n - select RT_USING_SPI if RW007_USING_BLE - select BSP_USING_SPI1 if RW007_USING_BLE - + bool "Enable RW007 BLE" + default n + select RT_USING_SPI if RW007_USING_BLE + select BSP_USING_SPI1 if RW007_USING_BLE + config RW007_USING_WIFI - bool "Enable RW007 WIFI" - select RT_USING_SPI if RW007_USING_BLE - select BSP_USING_SPI1 if RW007_USING_BLE + bool "Enable RW007 WIFI" + select RT_USING_SPI if RW007_USING_BLE + select BSP_USING_SPI1 if RW007_USING_BLE menuconfig BSP_USING_UART bool "Enable UART" @@ -244,8 +244,8 @@ menu "On-chip Peripheral Drivers" endif menuconfig BSP_USING_LCD - bool "Enable LCD" - default n + bool "Enable LCD" + default n menuconfig BSP_USING_LVGL bool "Enable LVGL" @@ -253,31 +253,31 @@ menu "On-chip Peripheral Drivers" select PKG_USING_LVGL if BSP_USING_LVGL menuconfig BSP_USING_GPTMR - bool "Enable GPTMR" - default n - select RT_USING_HWTIMER if BSP_USING_GPTMR - if BSP_USING_GPTMR - config BSP_USING_GPTMR1 - bool "Enable GPTMR1" - default n - config BSP_USING_GPTMR2 - bool "Enable GPTMR2" - default n - config BSP_USING_GPTMR3 - bool "Enable GPTMR3" - default n - config BSP_USING_GPTMR4 - bool "Enable GPTMR4" - default n - config BSP_USING_GPTMR5 - bool "Enable GPTMR5" - default n - config BSP_USING_GPTMR6 - bool "Enable GPTMR6" - default n - config BSP_USING_GPTMR7 - bool "Enable GPTMR7" - default n + bool "Enable GPTMR" + default n + select RT_USING_HWTIMER if BSP_USING_GPTMR + if BSP_USING_GPTMR + config BSP_USING_GPTMR1 + bool "Enable GPTMR1" + default n + config BSP_USING_GPTMR2 + bool "Enable GPTMR2" + default n + config BSP_USING_GPTMR3 + bool "Enable GPTMR3" + default n + config BSP_USING_GPTMR4 + bool "Enable GPTMR4" + default n + config BSP_USING_GPTMR5 + bool "Enable GPTMR5" + default n + config BSP_USING_GPTMR6 + bool "Enable GPTMR6" + default n + config BSP_USING_GPTMR7 + bool "Enable GPTMR7" + default n endif menuconfig BSP_USING_I2C bool "Enable I2C" @@ -301,13 +301,13 @@ menu "On-chip Peripheral Drivers" menuconfig BSP_USING_XPI_FLASH - bool "Enable XPI FLASH" - default n - select PKG_USING_FAL if BSP_USING_XPI_FLASH + bool "Enable XPI FLASH" + default n + select PKG_USING_FAL if BSP_USING_XPI_FLASH menuconfig BSP_USING_PWM bool "Enable PWM" - default n + default n menuconfig BSP_USING_DAO bool "Enable Audio DAO play" @@ -333,7 +333,7 @@ menu "On-chip Peripheral Drivers" bool "Enable USB" default n if BSP_USING_USB - config BSP_USING_USB_DEVICE + config BSP_USING_USB_DEVICE bool "Enable USB Device" default n config BSP_USING_USB_HOST @@ -343,72 +343,72 @@ menu "On-chip Peripheral Drivers" menuconfig BSP_USING_WDG - bool "Enable Watchdog" - default n - select RT_USING_WDT if BSP_USING_WDG - if BSP_USING_WDG - config BSP_USING_WDG0 - bool "Enable WDG0" - default n - config BSP_USING_WDG1 - bool "Enable WDG1" - default n - config BSP_USING_WDG2 - bool "Enable WDG2" - default n - config BSP_USING_WDG3 - bool "Enable WDG3" - default n - endif + bool "Enable Watchdog" + default n + select RT_USING_WDT if BSP_USING_WDG + if BSP_USING_WDG + config BSP_USING_WDG0 + bool "Enable WDG0" + default n + config BSP_USING_WDG1 + bool "Enable WDG1" + default n + config BSP_USING_WDG2 + bool "Enable WDG2" + default n + config BSP_USING_WDG3 + bool "Enable WDG3" + default n + endif menuconfig BSP_USING_CAN - bool "Enable CAN" - default n - select RT_USING_CAN if BSP_USING_CAN - if BSP_USING_CAN - config BSP_USING_CAN0 - bool "Enable CAN0" - default n - config BSP_USING_CAN1 - bool "Enable CAN1" - default n - config BSP_USING_CAN2 - bool "Enable CAN2" - default n - config BSP_USING_CAN3 - bool "Enable CAN3" - default n - endif + bool "Enable CAN" + default n + select RT_USING_CAN if BSP_USING_CAN + if BSP_USING_CAN + config BSP_USING_CAN0 + bool "Enable CAN0" + default n + config BSP_USING_CAN1 + bool "Enable CAN1" + default n + config BSP_USING_CAN2 + bool "Enable CAN2" + default n + config BSP_USING_CAN3 + bool "Enable CAN3" + default n + endif menuconfig BSP_USING_ADC - bool "Enable ADC" - default n - select RT_USING_ADC if BSP_USING_ADC - if BSP_USING_ADC - menuconfig BSP_USING_ADC12 - bool "Enable ADC12" - default n - if BSP_USING_ADC12 - config BSP_USING_ADC0 - bool "Enable ADC0" - default n - config BSP_USING_ADC1 - bool "Enable ADC1" - default n - config BSP_USING_ADC2 - bool "Enable ADC2" - default n - endif - if !BSP_USING_ADC12 - menuconfig BSP_USING_ADC16 - bool "Enable ADC16" - default n - if BSP_USING_ADC16 - config BSP_USING_ADC3 - bool "Enable ADC3" - default n - endif - endif + bool "Enable ADC" + default n + select RT_USING_ADC if BSP_USING_ADC + if BSP_USING_ADC + menuconfig BSP_USING_ADC12 + bool "Enable ADC12" + default n + if BSP_USING_ADC12 + config BSP_USING_ADC0 + bool "Enable ADC0" + default n + config BSP_USING_ADC1 + bool "Enable ADC1" + default n + config BSP_USING_ADC2 + bool "Enable ADC2" + default n + endif + if !BSP_USING_ADC12 + menuconfig BSP_USING_ADC16 + bool "Enable ADC16" + default n + if BSP_USING_ADC16 + config BSP_USING_ADC3 + bool "Enable ADC3" + default n + endif + endif endif endmenu diff --git a/bsp/hpmicro/hpm6750evkmini/board/SConscript b/bsp/hpmicro/hpm6750evkmini/board/SConscript index c6470a28bc..6245c5f443 100644 --- a/bsp/hpmicro/hpm6750evkmini/board/SConscript +++ b/bsp/hpmicro/hpm6750evkmini/board/SConscript @@ -9,7 +9,7 @@ src = Split(""" pinmux.c rw007_port.c eth_phy_port.c - fal_flash_port.c + fal_flash_port.c """) CPPPATH = [cwd] diff --git a/bsp/hpmicro/hpm6750evkmini/startup/SConscript b/bsp/hpmicro/hpm6750evkmini/startup/SConscript index de51a7c0d6..2708fb6742 100644 --- a/bsp/hpmicro/hpm6750evkmini/startup/SConscript +++ b/bsp/hpmicro/hpm6750evkmini/startup/SConscript @@ -10,4 +10,4 @@ objs = [] objs = objs + SConscript(os.path.join(cwd, rtconfig.CHIP_NAME, 'SConscript')) ASFLAGS = ' -I' + cwd -Return('objs') \ No newline at end of file +Return('objs') diff --git a/bsp/hpmicro/libraries/Kconfig b/bsp/hpmicro/libraries/Kconfig index faf5bc5bb4..12f9c7587c 100644 --- a/bsp/hpmicro/libraries/Kconfig +++ b/bsp/hpmicro/libraries/Kconfig @@ -1,4 +1,4 @@ config SOC_HPM6000_SERIES - bool + bool select ARCH_RISCV32 select ARCH_RISCV_DPU diff --git a/bsp/hpmicro/libraries/hpm_sdk/SConscript b/bsp/hpmicro/libraries/hpm_sdk/SConscript index 36e1210ef6..c682f72863 100644 --- a/bsp/hpmicro/libraries/hpm_sdk/SConscript +++ b/bsp/hpmicro/libraries/hpm_sdk/SConscript @@ -35,10 +35,10 @@ if GetDepend(['BSP_USING_WDG']): src += ['drivers/src/hpm_wdg_drv.c'] if GetDepend(['BSP_USING_ADC']): - if GetDepend(['BSP_USING_ADC12']): - src += ['drivers/src/hpm_adc12_drv.c'] - if GetDepend(['BSP_USING_ADC16']): - src += ['drivers/src/hpm_adc16_drv.c'] + if GetDepend(['BSP_USING_ADC12']): + src += ['drivers/src/hpm_adc12_drv.c'] + if GetDepend(['BSP_USING_ADC16']): + src += ['drivers/src/hpm_adc16_drv.c'] if GetDepend(['BSP_USING_CAN']): src += ['drivers/src/hpm_can_drv.c'] diff --git a/bsp/hpmicro/libraries/hpm_sdk/components/SConscript b/bsp/hpmicro/libraries/hpm_sdk/components/SConscript index 112e98c351..b0bc891f0c 100644 --- a/bsp/hpmicro/libraries/hpm_sdk/components/SConscript +++ b/bsp/hpmicro/libraries/hpm_sdk/components/SConscript @@ -16,21 +16,21 @@ src = [] src += [ os.path.join(cwd, 'debug_console', 'hpm_debug_console.c') ] src += [ os.path.join(cwd, 'dma_manager', 'hpm_dma_manager.c') ] if GetDepend(['BSP_USING_TOUCH_GT911']): - src += [os.path.join(cwd, 'touch', 'gt911', 'hpm_touch_gt911.c') ] - src += [os.path.join(cwd, 'touch', 'gt911', 'hpm_gt911.c') ] - path += [ os.path.join(cwd, 'touch', 'gt911') ] - CPPDEFINES = ['CONFIG_TOUCH_GT911=1'] + src += [os.path.join(cwd, 'touch', 'gt911', 'hpm_touch_gt911.c') ] + src += [os.path.join(cwd, 'touch', 'gt911', 'hpm_gt911.c') ] + path += [ os.path.join(cwd, 'touch', 'gt911') ] + CPPDEFINES = ['CONFIG_TOUCH_GT911=1'] if GetDepend(['BSP_USING_TOUCH_FT5406']): - src += [ os.path.join(cwd, 'touch', 'ft5406', 'hpm_touch_ft5406.c') ] - src += [ os.path.join(cwd, 'touch', 'ft5406', 'hpm_ft5406.c') ] - path += [ os.path.join(cwd, 'touch', 'ft5406') ] - CPPDEFINES = ['CONFIG_TOUCH_FT5406=1'] + src += [ os.path.join(cwd, 'touch', 'ft5406', 'hpm_touch_ft5406.c') ] + src += [ os.path.join(cwd, 'touch', 'ft5406', 'hpm_ft5406.c') ] + path += [ os.path.join(cwd, 'touch', 'ft5406') ] + CPPDEFINES = ['CONFIG_TOUCH_FT5406=1'] if GetDepend(['BSP_USING_USB_DEVICE']): - src += [ os.path.join(cwd, 'usb', 'device', 'hpm_usb_device.c') ] - path += [ os.path.join(cwd, 'usb', 'device') ] + src += [ os.path.join(cwd, 'usb', 'device', 'hpm_usb_device.c') ] + path += [ os.path.join(cwd, 'usb', 'device') ] if GetDepend(['BSP_USING_USB_HOST']): - src += [ os.path.join(cwd, 'usb', 'host', 'hpm_usb_host.c') ] - path += [ os.path.join(cwd, 'usb', 'host') ] + src += [ os.path.join(cwd, 'usb', 'host', 'hpm_usb_host.c') ] + path += [ os.path.join(cwd, 'usb', 'host') ] group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES=CPPDEFINES) diff --git a/bsp/imx6sx/cortex-a9/Kconfig b/bsp/imx6sx/cortex-a9/Kconfig index 0898ab8dd6..e34af98ff9 100644 --- a/bsp/imx6sx/cortex-a9/Kconfig +++ b/bsp/imx6sx/cortex-a9/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../.." to your rtthread_root, # example: default "F:/git_repositories/rt-thread" @@ -17,7 +17,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + config ENV_DIR string option env="ENV_ROOT" @@ -27,7 +27,7 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" config SOC_MCIMX6X4 - bool + bool select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y diff --git a/bsp/imx6sx/cortex-a9/SConstruct b/bsp/imx6sx/cortex-a9/SConstruct index 7c98611504..9694bc9eda 100644 --- a/bsp/imx6sx/cortex-a9/SConstruct +++ b/bsp/imx6sx/cortex-a9/SConstruct @@ -14,11 +14,11 @@ TARGET = 'rtthread-imx6.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, CXX= rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/imx6sx/cortex-a9/board/SConscript b/bsp/imx6sx/cortex-a9/board/SConscript index 9987f53e4b..2074d467e9 100644 --- a/bsp/imx6sx/cortex-a9/board/SConscript +++ b/bsp/imx6sx/cortex-a9/board/SConscript @@ -4,7 +4,7 @@ Import('rtconfig') from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] diff --git a/bsp/imx6sx/cortex-a9/cpu/SConscript b/bsp/imx6sx/cortex-a9/cpu/SConscript index 9c27632503..6594fa8c8f 100644 --- a/bsp/imx6sx/cortex-a9/cpu/SConscript +++ b/bsp/imx6sx/cortex-a9/cpu/SConscript @@ -2,7 +2,7 @@ Import('rtconfig') from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] if rtconfig.PLATFORM in ['iccarm']: diff --git a/bsp/imx6sx/cortex-a9/drivers/SConscript b/bsp/imx6sx/cortex-a9/drivers/SConscript index 9987f53e4b..2074d467e9 100644 --- a/bsp/imx6sx/cortex-a9/drivers/SConscript +++ b/bsp/imx6sx/cortex-a9/drivers/SConscript @@ -4,7 +4,7 @@ Import('rtconfig') from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] diff --git a/bsp/imx6ul/Kconfig b/bsp/imx6ul/Kconfig index 9cd9ab8dd5..79d11ee201 100644 --- a/bsp/imx6ul/Kconfig +++ b/bsp/imx6ul/Kconfig @@ -16,7 +16,7 @@ config PKGS_DIR default "packages" config BOARD_IMX6UL - bool + bool select ARCH_ARM_CORTEX_A7 select RT_USING_GIC_V2 default y @@ -27,7 +27,7 @@ source "$PKGS_DIR/Kconfig" source "$BSP_DIR/drivers/Kconfig" config SOC_MCIMX6X4 - bool + bool select RT_USING_COMPONENTS_INIT #select RT_USING_USER_MAIN default y diff --git a/bsp/imx6ul/SConstruct b/bsp/imx6ul/SConstruct index bf57773cc0..b3f7bff960 100644 --- a/bsp/imx6ul/SConstruct +++ b/bsp/imx6ul/SConstruct @@ -14,11 +14,11 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, CXX= rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env['ASCOM'] = env['ASPPCOM'] diff --git a/bsp/imx6ul/drivers/SConscript b/bsp/imx6ul/drivers/SConscript index 57eb65e971..33a0d51429 100644 --- a/bsp/imx6ul/drivers/SConscript +++ b/bsp/imx6ul/drivers/SConscript @@ -1,7 +1,7 @@ from building import * cwd = GetCurrentDir() -src = Glob('*.c') + Glob('iomux/*.c') +src = Glob('*.c') + Glob('iomux/*.c') CPPPATH = [cwd, cwd + '/iomux'] diff --git a/bsp/imxrt/imxrt1170-nxp-evk/m7/board/Kconfig b/bsp/imxrt/imxrt1170-nxp-evk/m7/board/Kconfig index 7092b19828..b3e3e76ed2 100644 --- a/bsp/imxrt/imxrt1170-nxp-evk/m7/board/Kconfig +++ b/bsp/imxrt/imxrt1170-nxp-evk/m7/board/Kconfig @@ -27,22 +27,22 @@ menu "On-chip Peripheral Drivers" bool "Enable RTC" select RT_USING_RTC default n - + 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" - default n - config BSP_USB1_HOST - bool "Enable USB1" - default n + if BSP_USING_USB + config BSP_USB0_HOST + bool "Enable USB0" + default n + + config BSP_USB1_HOST + bool "Enable USB1" + default n endif - + config BSP_USING_SDIO bool "Enable SDIO" select RT_USING_SDIO @@ -53,8 +53,8 @@ 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 menuconfig BSP_USING_LPUART @@ -67,17 +67,17 @@ menu "On-chip Peripheral Drivers" bool "Enable LPUART1" default y - config BSP_LPUART1_RX_USING_DMA - bool "Enable LPUART1 RX DMA" - depends on BSP_USING_LPUART1 - select BSP_USING_DMA - select RT_SERIAL_USING_DMA - default n + config BSP_LPUART1_RX_USING_DMA + bool "Enable LPUART1 RX DMA" + depends on BSP_USING_LPUART1 + select BSP_USING_DMA + select RT_SERIAL_USING_DMA + default n - config BSP_LPUART1_RX_DMA_CHANNEL - depends on BSP_LPUART1_RX_USING_DMA - int "Set LPUART1 RX DMA channel (0-32)" - default 0 + config BSP_LPUART1_RX_DMA_CHANNEL + depends on BSP_LPUART1_RX_USING_DMA + int "Set LPUART1 RX DMA channel (0-32)" + default 0 config BSP_LPUART1_TX_USING_DMA bool "Enable LPUART1 TX DMA" @@ -119,28 +119,28 @@ menu "On-chip Peripheral Drivers" int "Set LPUART3 TX DMA channel (0-32)" default 1 endif - - menuconfig BSP_USING_CAN - bool "Enable CAN" - select RT_USING_CAN - default n - if BSP_USING_CAN - config BSP_USING_CAN3 - bool "Enable FLEXCAN3" - default n - endif + + menuconfig BSP_USING_CAN + bool "Enable CAN" + select RT_USING_CAN + default n + if BSP_USING_CAN + config BSP_USING_CAN3 + bool "Enable FLEXCAN3" + default n + endif menuconfig BSP_USING_FLEXSPI - bool "Enable FLEXSPI" - default n - if BSP_USING_FLEXSPI - config BSP_USING_FLEXSPI1 - bool "Enable FLEXSPI1" - default n + bool "Enable FLEXSPI" + default n + if BSP_USING_FLEXSPI + config BSP_USING_FLEXSPI1 + bool "Enable FLEXSPI1" + default n config BSP_USING_FLEXSPI2 - bool "Enable FLEXSPI2" - default n - endif + bool "Enable FLEXSPI2" + default n + endif endmenu menu "Onboard Peripheral Drivers" diff --git a/bsp/imxrt/libraries/MIMXRT1170/SConscript b/bsp/imxrt/libraries/MIMXRT1170/SConscript index dabc973a4e..0ec189ee6a 100644 --- a/bsp/imxrt/libraries/MIMXRT1170/SConscript +++ b/bsp/imxrt/libraries/MIMXRT1170/SConscript @@ -51,7 +51,7 @@ if GetDepend(['RT_USING_CAN']): if GetDepend(['BSP_USING_FLEXSPI']): src += ['MIMXRT1176/drivers/fsl_flexspi.c'] - + #fsl os abstract files src += ['MIMXRT1176/drivers/fsl_os_abstraction_rtthread.c'] src += ['MIMXRT1176/drivers/generic_list.c'] diff --git a/bsp/imxrt/libraries/drivers/SConscript b/bsp/imxrt/libraries/drivers/SConscript index c61f4993f6..cfc129ce62 100644 --- a/bsp/imxrt/libraries/drivers/SConscript +++ b/bsp/imxrt/libraries/drivers/SConscript @@ -79,7 +79,7 @@ if GetDepend('BSP_USING_PULSE_ENCODER'): if GetDepend('BSP_USING_FLEXSPI'): src += ['drv_flexspi.c'] - + src += ['drv_common.c'] path = [cwd] diff --git a/bsp/juicevm/driver/Kconfig b/bsp/juicevm/driver/Kconfig index dcef494242..3204fd80d0 100755 --- a/bsp/juicevm/driver/Kconfig +++ b/bsp/juicevm/driver/Kconfig @@ -1,3 +1,3 @@ config BSP_USING_UART0 bool "Enable UART0" - default y \ No newline at end of file + default y diff --git a/bsp/k210/drivers/Kconfig b/bsp/k210/drivers/Kconfig index bb326a1f92..5442a9d61b 100644 --- a/bsp/k210/drivers/Kconfig +++ b/bsp/k210/drivers/Kconfig @@ -143,7 +143,7 @@ if BSP_USING_LCD choice prompt "backlight active polarity" default BSP_LCD_BACKLIGHT_ACTIVE_LOW - + config BSP_LCD_BACKLIGHT_ACTIVE_LOW bool "lcd backlight on low level" config BSP_LCD_BACKLIGHT_ACTIVE_HIGH @@ -153,7 +153,7 @@ if BSP_USING_LCD config BSP_LCD_CLK_FREQ int "Lcd max clk frequency" default 15000000 - + choice prompt "lcd scan direction" default BSP_BOARD_K210_OPENMV_TEST @@ -168,7 +168,7 @@ if BSP_USING_LCD bool "board_k210_Draco lcd scan: DIR_YX_LRUD" config BSP_BOARD_USER - bool "board_user: user defined." + bool "board_user: user defined." endchoice config BSP_LCD_X_MAX diff --git a/bsp/lm3s8962/Libraries/SConscript b/bsp/lm3s8962/Libraries/SConscript index b87d7d3c6e..4d7a88853b 100644 --- a/bsp/lm3s8962/Libraries/SConscript +++ b/bsp/lm3s8962/Libraries/SConscript @@ -8,15 +8,15 @@ src = Glob('driverlib/*.c') # cortex-m3 no FPU. if rtconfig.PART_TYPE.startswith('PART_LM4F') != True: - SrcRemove(src, 'fpu.c') + SrcRemove(src, 'fpu.c') -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: - src += ['startup/gcc/start_gcc.S'] + src += ['startup/gcc/start_gcc.S'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: - src += ['startup/arm/start_rvds.S'] + src += ['startup/arm/start_rvds.S'] elif rtconfig.PLATFORM in ['iccarm']: - src += ['startup/iar/start_iar.S'] + src += ['startup/iar/start_iar.S'] CPPPATH = [cwd] CPPDEFINES = [rtconfig.PART_TYPE] diff --git a/bsp/lm3s8962/SConstruct b/bsp/lm3s8962/SConstruct index 75d8d94101..cf9aeb4823 100644 --- a/bsp/lm3s8962/SConstruct +++ b/bsp/lm3s8962/SConstruct @@ -14,10 +14,10 @@ TARGET = 'rtthread-lm3s.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/lm3s8962/drivers/SConscript b/bsp/lm3s8962/drivers/SConscript index 2ddf17588c..27380a47ec 100644 --- a/bsp/lm3s8962/drivers/SConscript +++ b/bsp/lm3s8962/drivers/SConscript @@ -4,7 +4,7 @@ from building import * import copy cwd = os.path.join(str(Dir('#')), 'drivers') -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] # remove no need file. diff --git a/bsp/lm3s9b9x/Libraries/SConscript b/bsp/lm3s9b9x/Libraries/SConscript index ea4b469c85..0d0e6bdf51 100644 --- a/bsp/lm3s9b9x/Libraries/SConscript +++ b/bsp/lm3s9b9x/Libraries/SConscript @@ -8,15 +8,15 @@ src = Glob('driverlib/*.c') # cortex-m3 no FPU. if rtconfig.PART_TYPE.startswith('PART_LM4F') != True: - SrcRemove(src, 'fpu.c') + SrcRemove(src, 'fpu.c') -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: - src += ['startup/gcc/start_gcc.S'] + src += ['startup/gcc/start_gcc.S'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: - src += ['startup/arm/start_rvds.S'] + src += ['startup/arm/start_rvds.S'] elif rtconfig.PLATFORM in ['iccarm']: - src += ['startup/iar/start_iar.S'] + src += ['startup/iar/start_iar.S'] CPPPATH = [cwd] diff --git a/bsp/lm3s9b9x/SConstruct b/bsp/lm3s9b9x/SConstruct index fb8256df60..fc3333273d 100644 --- a/bsp/lm3s9b9x/SConstruct +++ b/bsp/lm3s9b9x/SConstruct @@ -14,10 +14,10 @@ TARGET = 'rtthread-lm3s.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/lm3s9b9x/drivers/SConscript b/bsp/lm3s9b9x/drivers/SConscript index 2ddf17588c..27380a47ec 100644 --- a/bsp/lm3s9b9x/drivers/SConscript +++ b/bsp/lm3s9b9x/drivers/SConscript @@ -4,7 +4,7 @@ from building import * import copy cwd = os.path.join(str(Dir('#')), 'drivers') -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] # remove no need file. diff --git a/bsp/lm4f232/Libraries/SConscript b/bsp/lm4f232/Libraries/SConscript index c6809cafc4..79d52c9e0e 100644 --- a/bsp/lm4f232/Libraries/SConscript +++ b/bsp/lm4f232/Libraries/SConscript @@ -8,21 +8,21 @@ src = Glob('driverlib/*.c') # cortex-m3 no FPU. if rtconfig.PART_TYPE.startswith('PART_LM4F') != True: - SrcRemove(src, 'fpu.c') + SrcRemove(src, 'fpu.c') -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: - src += ['startup/gcc/start_gcc.c'] + src += ['startup/gcc/start_gcc.c'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: - src += ['startup/arm/start_rvds.S'] + src += ['startup/arm/start_rvds.S'] elif rtconfig.PLATFORM in ['iccarm']: - src += ['startup/iar/start_iar.S'] + src += ['startup/iar/start_iar.S'] CPPPATH = [cwd] CPPDEFINES = [rtconfig.PART_TYPE] if rtconfig.PLATFORM in ['gcc']: - CPPDEFINES += ['gcc']; + CPPDEFINES += ['gcc']; group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) diff --git a/bsp/lm4f232/SConstruct b/bsp/lm4f232/SConstruct index f670f565fd..54b8f6095c 100644 --- a/bsp/lm4f232/SConstruct +++ b/bsp/lm4f232/SConstruct @@ -14,10 +14,10 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/lm4f232/drivers/SConscript b/bsp/lm4f232/drivers/SConscript index 6dd5a551e2..c014104435 100644 --- a/bsp/lm4f232/drivers/SConscript +++ b/bsp/lm4f232/drivers/SConscript @@ -4,7 +4,7 @@ from building import * import copy cwd = os.path.join(str(Dir('#')), 'drivers') -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] # remove no need file. diff --git a/bsp/loongson/ls1cdev/Kconfig b/bsp/loongson/ls1cdev/Kconfig index 256e23a087..9263a870a3 100644 --- a/bsp/loongson/ls1cdev/Kconfig +++ b/bsp/loongson/ls1cdev/Kconfig @@ -66,12 +66,12 @@ config RT_USING_GMAC_INT_MODE config RT_USING_SPI0 bool "Enable SPI0" - select RT_USING_SPI + select RT_USING_SPI default y config RT_USING_SPI1 bool "Enable SPI1" - select RT_USING_SPI + select RT_USING_SPI default y if RT_USING_I2C @@ -87,18 +87,18 @@ endif config USING_BXCAN0 bool "Enable CAN0" - select RT_USING_CAN + select RT_USING_CAN default y config USING_BXCAN1 bool "Enable CAN1" - select RT_USING_CAN + select RT_USING_CAN default y if RT_USING_CAN config RT_CAN_USING_HDR bool "Using RT_CAN_USING_HDR" - select RT_USING_CAN + select RT_USING_CAN default y endif diff --git a/bsp/loongson/ls1cdev/drivers/net/SConscript b/bsp/loongson/ls1cdev/drivers/net/SConscript index 7e5532099e..312cbe95c1 100644 --- a/bsp/loongson/ls1cdev/drivers/net/SConscript +++ b/bsp/loongson/ls1cdev/drivers/net/SConscript @@ -6,10 +6,10 @@ src = Glob('*.c') CPPPATH = [cwd] if GetDepend('RT_USING_LWIP') == False: - SrcRemove(src, 'mii.c') - SrcRemove(src, 'synopGMAC.c') - SrcRemove(src, 'synopGMAC_Dev.c') - SrcRemove(src, 'synopGMAC_plat.c') + SrcRemove(src, 'mii.c') + SrcRemove(src, 'synopGMAC.c') + SrcRemove(src, 'synopGMAC_Dev.c') + SrcRemove(src, 'synopGMAC_plat.c') group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/loongson/ls2kdev/SConstruct b/bsp/loongson/ls2kdev/SConstruct index fc142ce460..428526bd0d 100644 --- a/bsp/loongson/ls2kdev/SConstruct +++ b/bsp/loongson/ls2kdev/SConstruct @@ -11,11 +11,11 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env['ASCOM'] = env['ASPPCOM'] diff --git a/bsp/loongson/ls2kdev/applications/SConscript b/bsp/loongson/ls2kdev/applications/SConscript index fb5ce2ce93..bbc44d29c9 100644 --- a/bsp/loongson/ls2kdev/applications/SConscript +++ b/bsp/loongson/ls2kdev/applications/SConscript @@ -1,7 +1,7 @@ from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') group = DefineGroup('Applications', src, depend = ['']) diff --git a/bsp/lpc1114/Kconfig b/bsp/lpc1114/Kconfig index 9ff7943584..54a9ca7b53 100644 --- a/bsp/lpc1114/Kconfig +++ b/bsp/lpc1114/Kconfig @@ -22,7 +22,7 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" config SOC_LPC1114 - bool + bool select ARCH_ARM_CORTEX_M0 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN diff --git a/bsp/lpc176x/CMSIS/SConscript b/bsp/lpc176x/CMSIS/SConscript index d6650de4cc..b024548ee6 100644 --- a/bsp/lpc176x/CMSIS/SConscript +++ b/bsp/lpc176x/CMSIS/SConscript @@ -6,7 +6,7 @@ cwd = GetCurrentDir() src = ['CM3/DeviceSupport/NXP/LPC17xx/system_LPC17xx.c'] -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/gcc/startup_LPC17xx.s'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: diff --git a/bsp/lpc176x/SConstruct b/bsp/lpc176x/SConstruct index 07d225b1e4..9539c039c3 100644 --- a/bsp/lpc176x/SConstruct +++ b/bsp/lpc176x/SConstruct @@ -13,15 +13,15 @@ TARGET = 'rtthread-lpc17xx.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) if rtconfig.PLATFORM in ['iccarm']: - env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) - env.Replace(ARFLAGS = ['']) - env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) + env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) + env.Replace(ARFLAGS = ['']) + env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) Export('RTT_ROOT') Export('rtconfig') diff --git a/bsp/lpc178x/CMSIS/SConscript b/bsp/lpc178x/CMSIS/SConscript index 95020fc517..a0d35a4853 100644 --- a/bsp/lpc178x/CMSIS/SConscript +++ b/bsp/lpc178x/CMSIS/SConscript @@ -3,17 +3,17 @@ Import('rtconfig') from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') src = ['CM3/CoreSupport/core_cm3.c', 'CM3/DeviceSupport/NXP/LPC177x_8x/system_LPC177x_8x.c'] CPPPATH = [cwd + '/CM3/CoreSupport', cwd + '/CM3/DeviceSupport/NXP/LPC177x_8x/'] -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: - src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/gcc/startup_LPC177x_8x.s'] + src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/gcc/startup_LPC177x_8x.s'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: - src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/arm/startup_LPC177x_8x.s'] + src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/arm/startup_LPC177x_8x.s'] elif rtconfig.PLATFORM in ['iccarm']: - src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/iar/startup_LPC177x_8x.s'] + src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/iar/startup_LPC177x_8x.s'] group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/lpc178x/SConstruct b/bsp/lpc178x/SConstruct index 12104ead4d..e2135f5760 100644 --- a/bsp/lpc178x/SConstruct +++ b/bsp/lpc178x/SConstruct @@ -14,10 +14,10 @@ TARGET = 'rtthread-lpc178x.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/lpc178x/drivers/SConscript b/bsp/lpc178x/drivers/SConscript index e5cae7b97b..459e6bf09b 100644 --- a/bsp/lpc178x/drivers/SConscript +++ b/bsp/lpc178x/drivers/SConscript @@ -5,7 +5,7 @@ src = Glob('*.c') # remove no need file. if GetDepend('RT_USING_LWIP') == False: - SrcRemove(src, 'emac.c') + SrcRemove(src, 'emac.c') CPPPATH = [cwd] diff --git a/bsp/lpc2148/SConstruct b/bsp/lpc2148/SConstruct index 60aa7f9468..5cc3b81733 100644 --- a/bsp/lpc2148/SConstruct +++ b/bsp/lpc2148/SConstruct @@ -14,10 +14,10 @@ TARGET = 'build/rtthread-lpc214x.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/lpc2148/drivers/SConscript b/bsp/lpc2148/drivers/SConscript index a630c8a7c4..55798fd621 100644 --- a/bsp/lpc2148/drivers/SConscript +++ b/bsp/lpc2148/drivers/SConscript @@ -4,7 +4,7 @@ Import('rtconfig') from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') # remove no need file. if GetDepend('RT_USING_LWIP') == False: diff --git a/bsp/lpc2478/SConstruct b/bsp/lpc2478/SConstruct index 76f39dca44..e47f2ee6e4 100644 --- a/bsp/lpc2478/SConstruct +++ b/bsp/lpc2478/SConstruct @@ -14,10 +14,10 @@ TARGET = 'rtthread-lpc24xx.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/lpc2478/drivers/SConscript b/bsp/lpc2478/drivers/SConscript index a630c8a7c4..55798fd621 100644 --- a/bsp/lpc2478/drivers/SConscript +++ b/bsp/lpc2478/drivers/SConscript @@ -4,7 +4,7 @@ Import('rtconfig') from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') # remove no need file. if GetDepend('RT_USING_LWIP') == False: diff --git a/bsp/lpc408x/Kconfig b/bsp/lpc408x/Kconfig index 77f83a9825..907bb512ae 100644 --- a/bsp/lpc408x/Kconfig +++ b/bsp/lpc408x/Kconfig @@ -19,7 +19,7 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" config SOC_LPC4088 - bool + bool select ARCH_ARM_CORTEX_M4 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN diff --git a/bsp/lpc408x/Libraries/Device/SConscript b/bsp/lpc408x/Libraries/Device/SConscript index 53360e1861..bb09284c42 100644 --- a/bsp/lpc408x/Libraries/Device/SConscript +++ b/bsp/lpc408x/Libraries/Device/SConscript @@ -10,13 +10,13 @@ NXP/LPC407x_8x_177x_8x/Source/Templates/system_LPC407x_8x_177x_8x.c CPPPATH = [cwd + '/NXP/LPC407x_8x_177x_8x/Include', cwd + '/../CMSIS/Include'] CPPDEFINES = ['CORE_M4'] -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: - src += ['NXP/LPC407x_8x_177x_8x/Source/Templates/GCC/startup_LPC407x_8x_177x_8x.s'] + src += ['NXP/LPC407x_8x_177x_8x/Source/Templates/GCC/startup_LPC407x_8x_177x_8x.s'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: - src += ['NXP/LPC407x_8x_177x_8x/Source/Templates/ARM/startup_LPC407x_8x_177x_8x.s'] + src += ['NXP/LPC407x_8x_177x_8x/Source/Templates/ARM/startup_LPC407x_8x_177x_8x.s'] elif rtconfig.PLATFORM in ['iccarm']: - src += ['NXP/LPC407x_8x_177x_8x/Source/Templates/IAR/startup_LPC407x_8x_177x_8x.s'] + src += ['NXP/LPC407x_8x_177x_8x/Source/Templates/IAR/startup_LPC407x_8x_177x_8x.s'] group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) diff --git a/bsp/lpc408x/SConstruct b/bsp/lpc408x/SConstruct index dc6db0a31c..8fdc77cb22 100644 --- a/bsp/lpc408x/SConstruct +++ b/bsp/lpc408x/SConstruct @@ -14,11 +14,11 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: diff --git a/bsp/lpc408x/drivers/Kconfig b/bsp/lpc408x/drivers/Kconfig index a62f12bc74..3e9b19fb81 100644 --- a/bsp/lpc408x/drivers/Kconfig +++ b/bsp/lpc408x/drivers/Kconfig @@ -9,31 +9,31 @@ menu "Hardware Drivers Config" config BSP_USING_HWTIMER0 bool "Using timer0" - select RT_USING_HWTIMER + select RT_USING_HWTIMER default n config BSP_USING_ADC bool "Using ADC" - select RT_USING_ADC + select RT_USING_ADC default n menu "UART Drivers" config BSP_USING_UART0 bool "Enable UART0 P0.2/P0.3(T/R)" select RT_USING_SERIAL - default y - + default y + config BSP_USING_UART2 bool "Enable UART2 P2.8/P0.11(T/R)" select RT_USING_SERIAL default n - + endmenu endmenu - + menu "Onboard Peripheral Drivers" - + config BSP_USING_SDRAM bool "Enable sdram" default n @@ -42,9 +42,9 @@ menu "Hardware Drivers Config" bool "Enable LED" default n endmenu - + menu "Offboard Peripheral Drivers" endmenu - + endmenu diff --git a/bsp/lpc408x/drivers/SConscript b/bsp/lpc408x/drivers/SConscript index 2cfe8e8271..6557de9c16 100644 --- a/bsp/lpc408x/drivers/SConscript +++ b/bsp/lpc408x/drivers/SConscript @@ -13,13 +13,13 @@ if GetDepend(['BSP_USING_EMAC']): if GetDepend(['BSP_USING_HWTIMER0']): src += ['drv_hwtimer.c'] - + if GetDepend(['BSP_USING_LED']): src += ['drv_led.c'] if GetDepend(['BSP_USING_SDRAM']): src += ['drv_sdram.c'] - + if GetDepend('BSP_USING_UART0') or GetDepend('BSP_USING_UART2'): src += ['drv_uart.c'] diff --git a/bsp/lpc43xx/Libraries/Device/SConscript b/bsp/lpc43xx/Libraries/Device/SConscript index 8084ff93ff..9380ad9409 100644 --- a/bsp/lpc43xx/Libraries/Device/SConscript +++ b/bsp/lpc43xx/Libraries/Device/SConscript @@ -10,21 +10,21 @@ NXP/LPC43xx/Source/Templates/system_LPC43xx.c CPPPATH = [cwd + '/NXP/LPC43xx/Include', cwd + '/../CMSIS/Include'] CPPDEFINES = [rtconfig.USE_CORE] CPPDEFINES += ['USE_SPIFI'] -# add for startup script +# add for startup script if rtconfig.USE_CORE =='CORE_M4': - if rtconfig.PLATFORM in ['gcc']: - src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx.s'] - elif rtconfig.PLATFORM in ['armcc', 'armclang']: - src += ['NXP/LPC43xx/Source/Templates/ARM/startup_LPC43xx.s'] - elif rtconfig.PLATFORM in ['iccarm']: - src += ['NXP/LPC43xx/Source/Templates/IAR/startup_LPC43xx.s'] + if rtconfig.PLATFORM in ['gcc']: + src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx.s'] + elif rtconfig.PLATFORM in ['armcc', 'armclang']: + src += ['NXP/LPC43xx/Source/Templates/ARM/startup_LPC43xx.s'] + elif rtconfig.PLATFORM in ['iccarm']: + src += ['NXP/LPC43xx/Source/Templates/IAR/startup_LPC43xx.s'] else: - if rtconfig.PLATFORM in ['gcc']: - src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx_M0.s'] - elif rtconfig.PLATFORM in ['armcc', 'armclang']: - src += ['NXP/LPC43xx/Source/Templates/ARM/startup_LPC43xx_M0.s'] - elif rtconfig.PLATFORM in ['iccarm']: - src += ['NXP/LPC43xx/Source/Templates/IAR/startup_LPC43xx_M0.s'] + if rtconfig.PLATFORM in ['gcc']: + src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx_M0.s'] + elif rtconfig.PLATFORM in ['armcc', 'armclang']: + src += ['NXP/LPC43xx/Source/Templates/ARM/startup_LPC43xx_M0.s'] + elif rtconfig.PLATFORM in ['iccarm']: + src += ['NXP/LPC43xx/Source/Templates/IAR/startup_LPC43xx_M0.s'] group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/lpc43xx/M0/SConstruct b/bsp/lpc43xx/M0/SConstruct index 7e7f77dd88..850d41cd2c 100644 --- a/bsp/lpc43xx/M0/SConstruct +++ b/bsp/lpc43xx/M0/SConstruct @@ -44,5 +44,5 @@ if rtconfig.PLATFORM in ['gcc']: print('TODO: remove the object files in ../Libraries') os.chdir(ocwd) -# do building +# do building DoBuilding(TARGET, objs) diff --git a/bsp/lpc43xx/M4/SConstruct b/bsp/lpc43xx/M4/SConstruct index 4365cff784..88ed5ed75c 100644 --- a/bsp/lpc43xx/M4/SConstruct +++ b/bsp/lpc43xx/M4/SConstruct @@ -51,5 +51,5 @@ if rtconfig.PLATFORM in ['gcc']: print('RM %s' % i) os.unlink(i) -# do building +# do building DoBuilding(TARGET, objs) diff --git a/bsp/lpc43xx/drivers/SConscript b/bsp/lpc43xx/drivers/SConscript index e5f4cd4945..58bca3ad7f 100644 --- a/bsp/lpc43xx/drivers/SConscript +++ b/bsp/lpc43xx/drivers/SConscript @@ -5,7 +5,7 @@ src = Glob('*.c') # remove no need file. if GetDepend('RT_USING_LWIP') == False: - SrcRemove(src, 'drv_emac.c') + SrcRemove(src, 'drv_emac.c') CPPPATH = [cwd] diff --git a/bsp/lpc5410x/Libraries/Device/SConscript b/bsp/lpc5410x/Libraries/Device/SConscript index ae9805c907..3b20d49038 100644 --- a/bsp/lpc5410x/Libraries/Device/SConscript +++ b/bsp/lpc5410x/Libraries/Device/SConscript @@ -11,12 +11,12 @@ CPPPATH = [cwd + '/../CMSIS/Include'] CPPDEFINES = ['CORE_M4'] -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: - src += ['startup/gcc_startup_lpc5410x.c'] + src += ['startup/gcc_startup_lpc5410x.c'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += ['startup/keil_startup_lpc5410x.s'] - + group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/lpc5410x/Libraries/lpc_chip/SConscript b/bsp/lpc5410x/Libraries/lpc_chip/SConscript index a86b71b6c7..49280b645e 100644 --- a/bsp/lpc5410x/Libraries/lpc_chip/SConscript +++ b/bsp/lpc5410x/Libraries/lpc_chip/SConscript @@ -60,13 +60,13 @@ chip_5410x/wwdt_5410x.c #LIBS = [cwd + '/chip_5410x/power_lib/keil/lib_power'] #lpc_chip\chip_5410x\power_lib\lpcxpresso -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: - LIBPATH = [cwd + '/chip_5410x/power_lib/lpcxpresso'] - LIBS = ['libpower'] + LIBPATH = [cwd + '/chip_5410x/power_lib/lpcxpresso'] + LIBS = ['libpower'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: - LIBPATH = [cwd + '/chip_5410x/power_lib/keil'] - LIBS = ['lib_power'] + LIBPATH = [cwd + '/chip_5410x/power_lib/keil'] + LIBS = ['lib_power'] CPPPATH = [cwd + '/chip_common',cwd + '/chip_5410x',cwd + '/chip_5410x/config'] diff --git a/bsp/lpc5410x/SConstruct b/bsp/lpc5410x/SConstruct index bf1d4d5d2f..807dbe45ea 100644 --- a/bsp/lpc5410x/SConstruct +++ b/bsp/lpc5410x/SConstruct @@ -14,11 +14,11 @@ TARGET = 'rtthread-%s.%s' % (rtconfig.BOARD_NAME, rtconfig.TARGET_EXT) DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/lpc5410x/drivers/SConscript b/bsp/lpc5410x/drivers/SConscript index 5c19ced1e9..747d853899 100644 --- a/bsp/lpc5410x/drivers/SConscript +++ b/bsp/lpc5410x/drivers/SConscript @@ -8,7 +8,7 @@ src = Glob('*.c') # remove no need file. if GetDepend('RT_USING_LWIP') == False: - SrcRemove(src, 'drv_emac.c') + SrcRemove(src, 'drv_emac.c') CPPPATH = [cwd] diff --git a/bsp/lpc54114-lite/Kconfig b/bsp/lpc54114-lite/Kconfig index 5f245e3cb5..aff6b3a653 100644 --- a/bsp/lpc54114-lite/Kconfig +++ b/bsp/lpc54114-lite/Kconfig @@ -19,7 +19,7 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" config SOC_LPC54114 - bool + bool select ARCH_ARM_CORTEX_M4 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN diff --git a/bsp/lpc54114-lite/Libraries/devices/LPC54114/utilities/SConscript b/bsp/lpc54114-lite/Libraries/devices/LPC54114/utilities/SConscript index 1b3c8a3258..6897da05ef 100644 --- a/bsp/lpc54114-lite/Libraries/devices/LPC54114/utilities/SConscript +++ b/bsp/lpc54114-lite/Libraries/devices/LPC54114/utilities/SConscript @@ -4,7 +4,7 @@ from building import * cwd = GetCurrentDir() CPPPATH = [cwd] -src = [] +src = [] CPPDEFINES = ['SDK_DEBUGCONSOLE=0'] diff --git a/bsp/lpc54114-lite/SConstruct b/bsp/lpc54114-lite/SConstruct index 4f41969faa..e6e01ea7b8 100644 --- a/bsp/lpc54114-lite/SConstruct +++ b/bsp/lpc54114-lite/SConstruct @@ -23,7 +23,7 @@ env = Environment(tools = ['mingw'], if rtconfig.PLATFORM == 'armcc': # overwrite cflags, because cflags has '--C99' env['CXXCOM'] = env['$CXX -o $TARGET --cpp -c $CXXFLAGS $_CCCOMCOM $SOURCES'] - + env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: diff --git a/bsp/lpc54114-lite/drivers/Kconfig b/bsp/lpc54114-lite/drivers/Kconfig index 0f8a701d58..d143e20a5b 100644 --- a/bsp/lpc54114-lite/drivers/Kconfig +++ b/bsp/lpc54114-lite/drivers/Kconfig @@ -1,5 +1,5 @@ # LPC54110 bsp Config -menu "LPC54110 Bsp Config" +menu "LPC54110 Bsp Config" menu "Select uart drivers" config BSP_USING_UART0 diff --git a/bsp/lpc54114-lite/drivers/SConscript b/bsp/lpc54114-lite/drivers/SConscript index 9888f8fd95..6a76237f5c 100644 --- a/bsp/lpc54114-lite/drivers/SConscript +++ b/bsp/lpc54114-lite/drivers/SConscript @@ -12,22 +12,22 @@ CPPPATH = [cwd] # add driver code if GetDepend('BSP_USING_UART0'): - src = src + ['drv_uart.c'] + src = src + ['drv_uart.c'] if GetDepend('BSP_USING_SPI2'): - src = src + ['drv_spi.c'] + src = src + ['drv_spi.c'] if GetDepend('BSP_USING_I2C4'): - src = src + ['drv_i2c.c'] + src = src + ['drv_i2c.c'] if GetDepend('BSP_USING_ROMFS'): - src = src + ['drv_romfs.c'] + src = src + ['drv_romfs.c'] if GetDepend('BSP_USING_SDCARD'): - src = src + ['drv_sdcard.c'] + src = src + ['drv_sdcard.c'] if GetDepend('BSP_USING_SPIFLASH'): - src = src + ['drv_spi_flash.c'] + src = src + ['drv_spi_flash.c'] if GetDepend('BSP_USING_AUDIO_REPLAY'): src = src + ['audio/drv_sound.c'] diff --git a/bsp/lpc54608-LPCXpresso/Kconfig b/bsp/lpc54608-LPCXpresso/Kconfig index e567931a1d..cc0b070df5 100644 --- a/bsp/lpc54608-LPCXpresso/Kconfig +++ b/bsp/lpc54608-LPCXpresso/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../.." - + # you can change the RTT_ROOT default "../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" @@ -22,7 +22,7 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" config SOC_LPC54608 - bool + bool select ARCH_ARM_CORTEX_M4 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN diff --git a/bsp/lpc54608-LPCXpresso/SConstruct b/bsp/lpc54608-LPCXpresso/SConstruct index d41f3b77d7..c94d423b1c 100644 --- a/bsp/lpc54608-LPCXpresso/SConstruct +++ b/bsp/lpc54608-LPCXpresso/SConstruct @@ -28,7 +28,7 @@ else: CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, AR = rtconfig.AR, ARFLAGS = '-rc', LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) - + env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/lpc54608-LPCXpresso/SDK_2.2_LPCXpresso54608/devices/LPC54608/utilities/SConscript b/bsp/lpc54608-LPCXpresso/SDK_2.2_LPCXpresso54608/devices/LPC54608/utilities/SConscript index 1b3c8a3258..6897da05ef 100644 --- a/bsp/lpc54608-LPCXpresso/SDK_2.2_LPCXpresso54608/devices/LPC54608/utilities/SConscript +++ b/bsp/lpc54608-LPCXpresso/SDK_2.2_LPCXpresso54608/devices/LPC54608/utilities/SConscript @@ -4,7 +4,7 @@ from building import * cwd = GetCurrentDir() CPPPATH = [cwd] -src = [] +src = [] CPPDEFINES = ['SDK_DEBUGCONSOLE=0'] diff --git a/bsp/lpc54608-LPCXpresso/SDK_2.2_LPCXpresso54608/sdmmc_2.1.2/inc/SConscript b/bsp/lpc54608-LPCXpresso/SDK_2.2_LPCXpresso54608/sdmmc_2.1.2/inc/SConscript index 336fabf7c8..f905bd300b 100644 --- a/bsp/lpc54608-LPCXpresso/SDK_2.2_LPCXpresso54608/sdmmc_2.1.2/inc/SConscript +++ b/bsp/lpc54608-LPCXpresso/SDK_2.2_LPCXpresso54608/sdmmc_2.1.2/inc/SConscript @@ -4,7 +4,7 @@ from building import * cwd = GetCurrentDir() CPPPATH = [cwd] -src = Glob('*.c') +src = Glob('*.c') group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/lpc54608-LPCXpresso/SDK_2.2_LPCXpresso54608/sdmmc_2.1.2/src/SConscript b/bsp/lpc54608-LPCXpresso/SDK_2.2_LPCXpresso54608/sdmmc_2.1.2/src/SConscript index 49e53ecd45..0ed9537feb 100644 --- a/bsp/lpc54608-LPCXpresso/SDK_2.2_LPCXpresso54608/sdmmc_2.1.2/src/SConscript +++ b/bsp/lpc54608-LPCXpresso/SDK_2.2_LPCXpresso54608/sdmmc_2.1.2/src/SConscript @@ -10,7 +10,7 @@ fsl_sdmmc.c fsl_host.c fsl_sd_event.c ''') -#src = Glob('*.c') +#src = Glob('*.c') group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/lpc54608-LPCXpresso/drivers/Kconfig b/bsp/lpc54608-LPCXpresso/drivers/Kconfig index 52ba279f05..5cb05d56a3 100644 --- a/bsp/lpc54608-LPCXpresso/drivers/Kconfig +++ b/bsp/lpc54608-LPCXpresso/drivers/Kconfig @@ -4,8 +4,8 @@ config RT_USING_UART0 config BSP_DRV_SDCARD bool "Enable SD Card" - default y + default y config BSP_DRV_SDRAM - bool "Enable SDRAM" - default y \ No newline at end of file + bool "Enable SDRAM" + default y diff --git a/bsp/lpc54608-LPCXpresso/drivers/SConscript b/bsp/lpc54608-LPCXpresso/drivers/SConscript index e5f4cd4945..58bca3ad7f 100644 --- a/bsp/lpc54608-LPCXpresso/drivers/SConscript +++ b/bsp/lpc54608-LPCXpresso/drivers/SConscript @@ -5,7 +5,7 @@ src = Glob('*.c') # remove no need file. if GetDepend('RT_USING_LWIP') == False: - SrcRemove(src, 'drv_emac.c') + SrcRemove(src, 'drv_emac.c') CPPPATH = [cwd] diff --git a/bsp/lpc55sxx/Libraries/Kconfig b/bsp/lpc55sxx/Libraries/Kconfig index 5688442bcc..93ea687b99 100644 --- a/bsp/lpc55sxx/Libraries/Kconfig +++ b/bsp/lpc55sxx/Libraries/Kconfig @@ -2,7 +2,7 @@ config SOC_LPC55S28_SERIES bool select ARCH_ARM_CORTEX_M33 select ARCH_ARM_CORTEX_FPU - + config SOC_LPC55S69_SERIES bool select ARCH_ARM_CORTEX_M33 diff --git a/bsp/lpc55sxx/Libraries/drivers/SConscript b/bsp/lpc55sxx/Libraries/drivers/SConscript index 8becd8eba9..f10b23aae2 100644 --- a/bsp/lpc55sxx/Libraries/drivers/SConscript +++ b/bsp/lpc55sxx/Libraries/drivers/SConscript @@ -9,7 +9,7 @@ if GetDepend('BSP_USING_PIN'): if GetDepend('BSP_USING_LED'): src += ['drv_led.c'] - + if GetDepend('BSP_USING_KEY'): src += ['drv_key.c'] @@ -32,13 +32,13 @@ if GetDepend('BSP_USING_MMA8562I2C'): src += ['drv_mma8562.c'] if GetDepend('BSP_USING_ADC'): - src += ['drv_adc.c'] + src += ['drv_adc.c'] if GetDepend('BSP_USING_HWTIMER'): - src += ['drv_hwtimer.c'] + src += ['drv_hwtimer.c'] if GetDepend('BSP_USING_WDT'): - src += ['drv_wdt.c'] + src += ['drv_wdt.c'] if GetDepend('BSP_USING_PWM'): src += ['drv_pwm.c'] diff --git a/bsp/lpc55sxx/Libraries/template/lpc55s6xxxx/Kconfig b/bsp/lpc55sxx/Libraries/template/lpc55s6xxxx/Kconfig index 39775bd315..6fdf425483 100644 --- a/bsp/lpc55sxx/Libraries/template/lpc55s6xxxx/Kconfig +++ b/bsp/lpc55sxx/Libraries/template/lpc55s6xxxx/Kconfig @@ -16,7 +16,7 @@ config PKGS_DIR default "packages" config SOC_LPC55S6x - bool + bool select ARCH_ARM_CORTEX_M33 default y diff --git a/bsp/lpc55sxx/Libraries/template/lpc55s6xxxx/applications/SConscript b/bsp/lpc55sxx/Libraries/template/lpc55s6xxxx/applications/SConscript index 26c10c855f..9efbc795ab 100644 --- a/bsp/lpc55sxx/Libraries/template/lpc55s6xxxx/applications/SConscript +++ b/bsp/lpc55sxx/Libraries/template/lpc55s6xxxx/applications/SConscript @@ -5,12 +5,12 @@ cwd = GetCurrentDir() src = Glob('*.c') CPPPATH = [cwd] -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: CPPDEFINES = ['__START=entry'] else: CPPDEFINES = [] - + group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES) Return('group') diff --git a/bsp/lpc55sxx/Libraries/template/lpc55s6xxxx/board/Kconfig b/bsp/lpc55sxx/Libraries/template/lpc55s6xxxx/board/Kconfig index 158cad3c9a..3527467baf 100644 --- a/bsp/lpc55sxx/Libraries/template/lpc55s6xxxx/board/Kconfig +++ b/bsp/lpc55sxx/Libraries/template/lpc55s6xxxx/board/Kconfig @@ -1,7 +1,7 @@ menu "Hardware Drivers Config" config SOC_LPC55S6X - bool + bool select SOC_LPC55S6X_SERIES select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN @@ -13,7 +13,7 @@ menu "On-chip Peripheral Drivers" bool "Enable DMA" select RT_USING_DMA default n - + config BSP_USING_PIN bool "Enable GPIO" select RT_USING_PIN @@ -24,7 +24,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART" select RT_USING_UART default y - + if BSP_USING_UART config BSP_USING_UART0 bool "Enable Flexcomm0 as UART" @@ -54,9 +54,9 @@ menu "On-chip Peripheral Drivers" bool "Badurate 9600" config HW_UART2_BAUDRATE_115200 - bool "Badurate 115200" + bool "Badurate 115200" endchoice - endif + endif endif @@ -105,7 +105,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI" select RT_USING_SPI default y - + if BSP_USING_SPI config BSP_USING_SPI3 bool "Enable Flexcomm3 as SPI" @@ -121,7 +121,7 @@ menu "On-chip Peripheral Drivers" bool "Enable ADC Channel" select RT_USING_ADC default y - + if BSP_USING_ADC config BSP_USING_ADC0_CH0 bool "Enable ADC0 Channel0" diff --git a/bsp/lpc55sxx/lpc55s06_nxp_evk/Kconfig b/bsp/lpc55sxx/lpc55s06_nxp_evk/Kconfig index 3d725b7031..6d630a4062 100644 --- a/bsp/lpc55sxx/lpc55s06_nxp_evk/Kconfig +++ b/bsp/lpc55sxx/lpc55s06_nxp_evk/Kconfig @@ -16,7 +16,7 @@ config PKGS_DIR default "packages" config SOC_LPC55S06 - bool + bool select ARCH_ARM_CORTEX_M33 select ARCH_ARM_CORTEX_SECURE default y diff --git a/bsp/lpc55sxx/lpc55s06_nxp_evk/applications/SConscript b/bsp/lpc55sxx/lpc55s06_nxp_evk/applications/SConscript index 2588714bbe..fd01af7a9c 100644 --- a/bsp/lpc55sxx/lpc55s06_nxp_evk/applications/SConscript +++ b/bsp/lpc55sxx/lpc55s06_nxp_evk/applications/SConscript @@ -5,7 +5,7 @@ cwd = GetCurrentDir() src = Glob('main.c') CPPPATH = [cwd] -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: CPPDEFINES = ['__START=entry'] else: diff --git a/bsp/lpc55sxx/lpc55s06_nxp_evk/board/Kconfig b/bsp/lpc55sxx/lpc55s06_nxp_evk/board/Kconfig index bad1df2bc8..67523a4f5a 100644 --- a/bsp/lpc55sxx/lpc55s06_nxp_evk/board/Kconfig +++ b/bsp/lpc55sxx/lpc55s06_nxp_evk/board/Kconfig @@ -1,7 +1,7 @@ menu "Hardware Drivers Config" config SOC_LPC55S06 - bool + bool select SOC_LPC55S06_SERIES select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN @@ -13,7 +13,7 @@ menu "On-chip Peripheral Drivers" bool "Enable DMA" select RT_USING_DMA default n - + config BSP_USING_PIN bool "Enable GPIO" select RT_USING_PIN @@ -24,7 +24,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART" select RT_USING_UART default y - + if BSP_USING_UART config BSP_USING_UART0 bool "Enable Flexcomm0 as UART" @@ -54,9 +54,9 @@ menu "On-chip Peripheral Drivers" bool "Badurate 9600" config HW_UART2_BAUDRATE_115200 - bool "Badurate 115200" + bool "Badurate 115200" endchoice - endif + endif endif @@ -105,7 +105,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI" select RT_USING_SPI default y - + if BSP_USING_SPI config BSP_USING_SPI3 bool "Enable Flexcomm3 as SPI" @@ -121,7 +121,7 @@ menu "On-chip Peripheral Drivers" bool "Enable ADC Channel" select RT_USING_ADC default y - + if BSP_USING_ADC config BSP_USING_ADC0_CH0 bool "Enable ADC0 Channel0" diff --git a/bsp/lpc55sxx/lpc55s16_nxp_evk/Kconfig b/bsp/lpc55sxx/lpc55s16_nxp_evk/Kconfig index 855fdc554b..545792b12c 100644 --- a/bsp/lpc55sxx/lpc55s16_nxp_evk/Kconfig +++ b/bsp/lpc55sxx/lpc55s16_nxp_evk/Kconfig @@ -16,7 +16,7 @@ config PKGS_DIR default "packages" config SOC_LPC55S16 - bool + bool select ARCH_ARM_CORTEX_M33 select ARCH_ARM_CORTEX_SECURE default y diff --git a/bsp/lpc55sxx/lpc55s16_nxp_evk/applications/SConscript b/bsp/lpc55sxx/lpc55s16_nxp_evk/applications/SConscript index 2588714bbe..fd01af7a9c 100644 --- a/bsp/lpc55sxx/lpc55s16_nxp_evk/applications/SConscript +++ b/bsp/lpc55sxx/lpc55s16_nxp_evk/applications/SConscript @@ -5,7 +5,7 @@ cwd = GetCurrentDir() src = Glob('main.c') CPPPATH = [cwd] -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: CPPDEFINES = ['__START=entry'] else: diff --git a/bsp/lpc55sxx/lpc55s16_nxp_evk/board/Kconfig b/bsp/lpc55sxx/lpc55s16_nxp_evk/board/Kconfig index fd23ae69ce..0e76d2466a 100644 --- a/bsp/lpc55sxx/lpc55s16_nxp_evk/board/Kconfig +++ b/bsp/lpc55sxx/lpc55s16_nxp_evk/board/Kconfig @@ -1,7 +1,7 @@ menu "Hardware Drivers Config" config SOC_LPC55S16 - bool + bool select SOC_LPC55S16_SERIES select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN @@ -13,7 +13,7 @@ menu "On-chip Peripheral Drivers" bool "Enable DMA" select RT_USING_DMA default n - + config BSP_USING_PIN bool "Enable GPIO" select RT_USING_PIN @@ -24,7 +24,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART" select RT_USING_UART default y - + if BSP_USING_UART config BSP_USING_UART0 bool "Enable Flexcomm0 as UART" @@ -54,9 +54,9 @@ menu "On-chip Peripheral Drivers" bool "Badurate 9600" config HW_UART2_BAUDRATE_115200 - bool "Badurate 115200" + bool "Badurate 115200" endchoice - endif + endif endif @@ -105,7 +105,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI" select RT_USING_SPI default y - + if BSP_USING_SPI config BSP_USING_SPI3 bool "Enable Flexcomm3 as SPI" @@ -121,7 +121,7 @@ menu "On-chip Peripheral Drivers" bool "Enable ADC Channel" select RT_USING_ADC default y - + if BSP_USING_ADC config BSP_USING_ADC0_CH0 bool "Enable ADC0 Channel0" diff --git a/bsp/lpc55sxx/lpc55s28_nxp_evk/Kconfig b/bsp/lpc55sxx/lpc55s28_nxp_evk/Kconfig index fedb33abb9..c0b4d1c5b3 100644 --- a/bsp/lpc55sxx/lpc55s28_nxp_evk/Kconfig +++ b/bsp/lpc55sxx/lpc55s28_nxp_evk/Kconfig @@ -16,7 +16,7 @@ config PKGS_DIR default "packages" config SOC_LPC55S28 - bool + bool select ARCH_ARM_CORTEX_M33 select ARCH_ARM_CORTEX_SECURE default y diff --git a/bsp/lpc55sxx/lpc55s28_nxp_evk/applications/SConscript b/bsp/lpc55sxx/lpc55s28_nxp_evk/applications/SConscript index 2588714bbe..fd01af7a9c 100644 --- a/bsp/lpc55sxx/lpc55s28_nxp_evk/applications/SConscript +++ b/bsp/lpc55sxx/lpc55s28_nxp_evk/applications/SConscript @@ -5,7 +5,7 @@ cwd = GetCurrentDir() src = Glob('main.c') CPPPATH = [cwd] -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: CPPDEFINES = ['__START=entry'] else: diff --git a/bsp/lpc55sxx/lpc55s28_nxp_evk/board/Kconfig b/bsp/lpc55sxx/lpc55s28_nxp_evk/board/Kconfig index 222034bf13..7f535ecf39 100644 --- a/bsp/lpc55sxx/lpc55s28_nxp_evk/board/Kconfig +++ b/bsp/lpc55sxx/lpc55s28_nxp_evk/board/Kconfig @@ -1,7 +1,7 @@ menu "Hardware Drivers Config" config SOC_LPC55S28 - bool + bool select SOC_LPC55S28_SERIES select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN @@ -13,7 +13,7 @@ menu "On-chip Peripheral Drivers" bool "Enable DMA" select RT_USING_DMA default n - + config BSP_USING_PIN bool "Enable GPIO" select RT_USING_PIN @@ -24,7 +24,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART" select RT_USING_UART default y - + if BSP_USING_UART config BSP_USING_UART0 bool "Enable Flexcomm0 as UART" @@ -54,9 +54,9 @@ menu "On-chip Peripheral Drivers" bool "Badurate 9600" config HW_UART2_BAUDRATE_115200 - bool "Badurate 115200" + bool "Badurate 115200" endchoice - endif + endif endif @@ -105,7 +105,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI" select RT_USING_SPI default y - + if BSP_USING_SPI config BSP_USING_SPI3 bool "Enable Flexcomm3 as SPI" @@ -121,7 +121,7 @@ menu "On-chip Peripheral Drivers" bool "Enable ADC Channel" select RT_USING_ADC default y - + if BSP_USING_ADC config BSP_USING_ADC0_CH0 bool "Enable ADC0 Channel0" diff --git a/bsp/lpc55sxx/lpc55s36_nxp_evk/Kconfig b/bsp/lpc55sxx/lpc55s36_nxp_evk/Kconfig index 91ec3bf89f..1870d3b068 100644 --- a/bsp/lpc55sxx/lpc55s36_nxp_evk/Kconfig +++ b/bsp/lpc55sxx/lpc55s36_nxp_evk/Kconfig @@ -16,7 +16,7 @@ config PKGS_DIR default "packages" config SOC_LPC55S36 - bool + bool select ARCH_ARM_CORTEX_M33 select ARCH_ARM_CORTEX_SECURE default y diff --git a/bsp/lpc55sxx/lpc55s36_nxp_evk/applications/SConscript b/bsp/lpc55sxx/lpc55s36_nxp_evk/applications/SConscript index 2588714bbe..fd01af7a9c 100644 --- a/bsp/lpc55sxx/lpc55s36_nxp_evk/applications/SConscript +++ b/bsp/lpc55sxx/lpc55s36_nxp_evk/applications/SConscript @@ -5,7 +5,7 @@ cwd = GetCurrentDir() src = Glob('main.c') CPPPATH = [cwd] -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: CPPDEFINES = ['__START=entry'] else: diff --git a/bsp/lpc55sxx/lpc55s36_nxp_evk/board/Kconfig b/bsp/lpc55sxx/lpc55s36_nxp_evk/board/Kconfig index c59e271e6a..fdfb10c6ef 100644 --- a/bsp/lpc55sxx/lpc55s36_nxp_evk/board/Kconfig +++ b/bsp/lpc55sxx/lpc55s36_nxp_evk/board/Kconfig @@ -1,7 +1,7 @@ menu "Hardware Drivers Config" config SOC_LPC55S36 - bool + bool select SOC_LPC55S36_SERIES select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN @@ -13,7 +13,7 @@ menu "On-chip Peripheral Drivers" bool "Enable DMA" select RT_USING_DMA default n - + config BSP_USING_PIN bool "Enable GPIO" select RT_USING_PIN @@ -24,7 +24,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART" select RT_USING_UART default y - + if BSP_USING_UART config BSP_USING_UART0 bool "Enable Flexcomm0 as UART" @@ -54,9 +54,9 @@ menu "On-chip Peripheral Drivers" bool "Badurate 9600" config HW_UART2_BAUDRATE_115200 - bool "Badurate 115200" + bool "Badurate 115200" endchoice - endif + endif endif @@ -105,7 +105,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI" select RT_USING_SPI default y - + if BSP_USING_SPI config BSP_USING_SPI3 bool "Enable Flexcomm3 as SPI" @@ -121,7 +121,7 @@ menu "On-chip Peripheral Drivers" bool "Enable ADC Channel" select RT_USING_ADC default y - + if BSP_USING_ADC config BSP_USING_ADC0_CH0 bool "Enable ADC0 Channel0" diff --git a/bsp/lpc55sxx/lpc55s69_nxp_evk/Kconfig b/bsp/lpc55sxx/lpc55s69_nxp_evk/Kconfig index e6a404231c..0eed587872 100644 --- a/bsp/lpc55sxx/lpc55s69_nxp_evk/Kconfig +++ b/bsp/lpc55sxx/lpc55s69_nxp_evk/Kconfig @@ -16,7 +16,7 @@ config PKGS_DIR default "packages" config SOC_LPC55S69 - bool + bool select ARCH_ARM_CORTEX_M33 select ARCH_ARM_CORTEX_SECURE default y diff --git a/bsp/lpc55sxx/lpc55s69_nxp_evk/applications/SConscript b/bsp/lpc55sxx/lpc55s69_nxp_evk/applications/SConscript index 2588714bbe..fd01af7a9c 100644 --- a/bsp/lpc55sxx/lpc55s69_nxp_evk/applications/SConscript +++ b/bsp/lpc55sxx/lpc55s69_nxp_evk/applications/SConscript @@ -5,7 +5,7 @@ cwd = GetCurrentDir() src = Glob('main.c') CPPPATH = [cwd] -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: CPPDEFINES = ['__START=entry'] else: diff --git a/bsp/lpc55sxx/lpc55s69_nxp_evk/board/Kconfig b/bsp/lpc55sxx/lpc55s69_nxp_evk/board/Kconfig index ffd90e53f2..4e4ed80b37 100644 --- a/bsp/lpc55sxx/lpc55s69_nxp_evk/board/Kconfig +++ b/bsp/lpc55sxx/lpc55s69_nxp_evk/board/Kconfig @@ -1,7 +1,7 @@ menu "Hardware Drivers Config" config SOC_LPC55S6X - bool + bool select SOC_LPC55S6X_SERIES select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN @@ -13,7 +13,7 @@ menu "On-chip Peripheral Drivers" bool "Enable DMA" select RT_USING_DMA default n - + config BSP_USING_PIN bool "Enable GPIO" select RT_USING_PIN @@ -24,7 +24,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART" select RT_USING_UART default y - + if BSP_USING_UART config BSP_USING_UART0 bool "Enable Flexcomm0 as UART" @@ -54,9 +54,9 @@ menu "On-chip Peripheral Drivers" bool "Badurate 9600" config HW_UART2_BAUDRATE_115200 - bool "Badurate 115200" + bool "Badurate 115200" endchoice - endif + endif endif @@ -105,7 +105,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI" select RT_USING_SPI default y - + if BSP_USING_SPI config BSP_USING_SPI3 bool "Enable Flexcomm3 as SPI" @@ -121,7 +121,7 @@ menu "On-chip Peripheral Drivers" bool "Enable ADC Channel" select RT_USING_ADC default y - + if BSP_USING_ADC config BSP_USING_ADC0_CH0 bool "Enable ADC0 Channel0" diff --git a/bsp/lpc824/Libraries/SConscript b/bsp/lpc824/Libraries/SConscript index 2c998eee64..ba42f62bb3 100644 --- a/bsp/lpc824/Libraries/SConscript +++ b/bsp/lpc824/Libraries/SConscript @@ -10,7 +10,7 @@ src = Glob('peri_driver/*/*.c') src += Glob('common/board/*.c') src += Glob('common/chip/*.c') -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: print("not gcc startup file") exit(0) @@ -19,9 +19,9 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [cwd + '/common/startup/iar_startup_lpc82x.s'] -CPPPATH = [ cwd + '/peri_driver', cwd + '/common/board', - cwd + '/common/chip', cwd + '/common/CMSIS'] - +CPPPATH = [ cwd + '/peri_driver', cwd + '/common/board', + cwd + '/common/chip', cwd + '/common/CMSIS'] + CPPDEFINES = ['CORE_M0PLUS'] group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES) diff --git a/bsp/lpc824/SConstruct b/bsp/lpc824/SConstruct index f0545203db..34825ec86f 100644 --- a/bsp/lpc824/SConstruct +++ b/bsp/lpc824/SConstruct @@ -7,7 +7,7 @@ if os.getenv('RTT_ROOT'): RTT_ROOT = os.getenv('RTT_ROOT') else: #RTT_ROOT = os.path.join(Dir('#').get_abspath(), 'rt-thread') - RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') + RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] from building import * @@ -16,10 +16,10 @@ TARGET = 'rtthread-lpc842.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: diff --git a/bsp/m16c62p/SConstruct b/bsp/m16c62p/SConstruct index 4b47d54de4..b2d2818919 100644 --- a/bsp/m16c62p/SConstruct +++ b/bsp/m16c62p/SConstruct @@ -10,21 +10,21 @@ else: sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] from building import * -TARGET = 'rtt2m16c.' + rtconfig.TARGET_EXT +TARGET = 'rtt2m16c.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: - env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) - env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -f lnkm30627fhp.xcl -l rtt2m16c.map -o rtt2m16c.d34 -Omotorola-s28=$TARGET']) - env.Replace(ARFLAGS = '') - + env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) + env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -f lnkm30627fhp.xcl -l rtt2m16c.map -o rtt2m16c.d34 -Omotorola-s28=$TARGET']) + env.Replace(ARFLAGS = '') + Export('RTT_ROOT') Export('rtconfig') diff --git a/bsp/m16c62p/drivers/SConscript b/bsp/m16c62p/drivers/SConscript index e16c1a16dd..db8f5cd627 100644 --- a/bsp/m16c62p/drivers/SConscript +++ b/bsp/m16c62p/drivers/SConscript @@ -4,7 +4,7 @@ import rtconfig cwd = GetCurrentDir() src_c = Glob('*.c') -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: src_asm = ['start_gcc.S', 'vectors_gcc.S', 'interrupts_gcc.S'] elif rtconfig.PLATFORM in ['iccarm']: diff --git a/bsp/maxim/libraries/HAL_Drivers/SConscript b/bsp/maxim/libraries/HAL_Drivers/SConscript index 75c1fedb09..033285476c 100644 --- a/bsp/maxim/libraries/HAL_Drivers/SConscript +++ b/bsp/maxim/libraries/HAL_Drivers/SConscript @@ -13,7 +13,7 @@ if GetDepend(['RT_USING_PIN']): if GetDepend(['RT_USING_SERIAL']): src += ['drv_uart.c'] - + if GetDepend(['RT_USING_PWM']): src += ['drv_pwm.c'] @@ -28,7 +28,7 @@ if GetDepend(['BSP_USING_ONCHIP_RTC']): if GetDepend(['BSP_USING_WDT']): src += ['drv_wdt.c'] - + path = [cwd] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path) diff --git a/bsp/maxim/libraries/MAX32660PeriphDriver/SConscript b/bsp/maxim/libraries/MAX32660PeriphDriver/SConscript index b0f2840147..e3877d1b86 100644 --- a/bsp/maxim/libraries/MAX32660PeriphDriver/SConscript +++ b/bsp/maxim/libraries/MAX32660PeriphDriver/SConscript @@ -21,10 +21,10 @@ Source/mxc_pins.c Source/mxc_sys.c Source/nvic_table.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['Source/uart.c'] - + if GetDepend(['RT_USING_I2C']): src += ['Source/i2c.c'] diff --git a/bsp/maxim/max32660-evsys/board/Kconfig b/bsp/maxim/max32660-evsys/board/Kconfig index e8523e0e1a..01efce9ae6 100644 --- a/bsp/maxim/max32660-evsys/board/Kconfig +++ b/bsp/maxim/max32660-evsys/board/Kconfig @@ -8,9 +8,9 @@ config SOC_MAX32660 select BSP_USING_UART select BSP_USING_UART1 default y - + config SOC_MAXIM - bool + bool config SOC_MAXIM default y @@ -32,8 +32,8 @@ menu "On-chip Peripheral Drivers" config BSP_UART0_RX_USING_DMA bool "Enable UART0 RX DMA" depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA - default n - + default n + config BSP_USING_UART1 bool "Enable UART1" default y @@ -75,17 +75,17 @@ menu "On-chip Peripheral Drivers" config BSP_USING_I2C0 bool "Enable I2C0 bus [SCL P0.8; SDA P0.9]" default y - + config BSP_USING_I2C1 bool "Enable I2C1 bus [SCL P0.2; SDA P0.3]" default n endif - + config BSP_USING_ONCHIP_RTC bool "Enable RTC" select RT_USING_RTC default n - + endmenu diff --git a/bsp/microchip/common/applications/SConscript b/bsp/microchip/common/applications/SConscript index 9bc4192bd2..a2d433aefa 100644 --- a/bsp/microchip/common/applications/SConscript +++ b/bsp/microchip/common/applications/SConscript @@ -17,7 +17,7 @@ if GetDepend('SAM_ADC_EXAMPLE') == False: if GetDepend('SAM_LWIP_EXAMPLE') == False: SrcRemove(src, ['lwip_demo.c']) - + group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) Return('group') diff --git a/bsp/microchip/common/board/SConscript b/bsp/microchip/common/board/SConscript index a32002a272..71d87c5ed4 100644 --- a/bsp/microchip/common/board/SConscript +++ b/bsp/microchip/common/board/SConscript @@ -18,4 +18,4 @@ CPPDEFINES = [] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/microchip/samc21/Kconfig b/bsp/microchip/samc21/Kconfig index bf9cab1d29..2fc6dff9e7 100644 --- a/bsp/microchip/samc21/Kconfig +++ b/bsp/microchip/samc21/Kconfig @@ -22,7 +22,7 @@ source "$PKGS_DIR/Kconfig" source "board/Kconfig" config SOC_SAMC21 - bool + bool select ARCH_ARM select ARCH_ARM_CORTEX_M select ARCH_ARM_CORTEX_M0 diff --git a/bsp/microchip/samc21/board/Kconfig b/bsp/microchip/samc21/board/Kconfig index a612480864..a7698b7ab9 100644 --- a/bsp/microchip/samc21/board/Kconfig +++ b/bsp/microchip/samc21/board/Kconfig @@ -19,7 +19,7 @@ choice help Refer to SAMC21 DataSheet -endchoice +endchoice endmenu menu "Onboard Peripheral Drivers" diff --git a/bsp/microchip/samc21/board/SConscript b/bsp/microchip/samc21/board/SConscript index 1b4455424f..aec2827e11 100644 --- a/bsp/microchip/samc21/board/SConscript +++ b/bsp/microchip/samc21/board/SConscript @@ -14,4 +14,4 @@ CPPDEFINES = ['SAMC21xxx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/microchip/same54/Kconfig b/bsp/microchip/same54/Kconfig index 9d8529609b..1119d93de2 100644 --- a/bsp/microchip/same54/Kconfig +++ b/bsp/microchip/same54/Kconfig @@ -22,7 +22,7 @@ source "$PKGS_DIR/Kconfig" source "board/Kconfig" config SOC_SAME54 - bool + bool select ARCH_ARM select ARCH_ARM_CORTEX_M select ARCH_ARM_CORTEX_M4 diff --git a/bsp/microchip/same54/board/Kconfig b/bsp/microchip/same54/board/Kconfig index b39630d703..572f388d93 100644 --- a/bsp/microchip/same54/board/Kconfig +++ b/bsp/microchip/same54/board/Kconfig @@ -19,7 +19,7 @@ choice help Refer to SAME54 DataSheet -endchoice +endchoice endmenu menu "Onboard Peripheral Drivers" diff --git a/bsp/microchip/same54/board/SConscript b/bsp/microchip/same54/board/SConscript index 3c6e1cad63..2e50d9266e 100644 --- a/bsp/microchip/same54/board/SConscript +++ b/bsp/microchip/same54/board/SConscript @@ -14,4 +14,4 @@ CPPDEFINES = ['SAME54xxx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/microchip/same70/Kconfig b/bsp/microchip/same70/Kconfig index 896ed0a540..917ba41703 100644 --- a/bsp/microchip/same70/Kconfig +++ b/bsp/microchip/same70/Kconfig @@ -22,7 +22,7 @@ source "$PKGS_DIR/Kconfig" source "board/Kconfig" config SOC_SAME70 - bool + bool select ARCH_ARM select ARCH_ARM_CORTEX_M select ARCH_ARM_CORTEX_M7 diff --git a/bsp/microchip/same70/board/Kconfig b/bsp/microchip/same70/board/Kconfig index 5de3724a4a..0ecf5035c8 100644 --- a/bsp/microchip/same70/board/Kconfig +++ b/bsp/microchip/same70/board/Kconfig @@ -19,7 +19,7 @@ choice help Refer to SAME70 DataSheet -endchoice +endchoice endmenu menu "Onboard Peripheral Drivers" diff --git a/bsp/microchip/same70/board/SConscript b/bsp/microchip/same70/board/SConscript index 0e5636b2f7..2b899641b2 100644 --- a/bsp/microchip/same70/board/SConscript +++ b/bsp/microchip/same70/board/SConscript @@ -14,4 +14,4 @@ CPPDEFINES = ['SAME70xxx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/microchip/saml10/Kconfig b/bsp/microchip/saml10/Kconfig index e710b26639..564766c500 100644 --- a/bsp/microchip/saml10/Kconfig +++ b/bsp/microchip/saml10/Kconfig @@ -22,7 +22,7 @@ source "$PKGS_DIR/Kconfig" source "board/Kconfig" config SOC_SAML10 - bool + bool select ARCH_ARM select ARCH_ARM_CORTEX_M select RT_USING_COMPONENTS_INIT diff --git a/bsp/microchip/saml10/board/Kconfig b/bsp/microchip/saml10/board/Kconfig index 6b1252e91c..2706d339d6 100644 --- a/bsp/microchip/saml10/board/Kconfig +++ b/bsp/microchip/saml10/board/Kconfig @@ -33,7 +33,7 @@ choice bool "SOC_SAML10D14" help Refer to SAML10 DataSheet -endchoice +endchoice endmenu menu "Onboard Peripheral Drivers" diff --git a/bsp/microchip/saml10/board/SConscript b/bsp/microchip/saml10/board/SConscript index 2a3d73611e..db7270a5a8 100644 --- a/bsp/microchip/saml10/board/SConscript +++ b/bsp/microchip/saml10/board/SConscript @@ -14,4 +14,4 @@ CPPDEFINES = ['SAML10xxx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/mini2440/Kconfig b/bsp/mini2440/Kconfig index abcee63510..93371d1359 100644 --- a/bsp/mini2440/Kconfig +++ b/bsp/mini2440/Kconfig @@ -33,10 +33,10 @@ choice config RT_MINI2440_LCD_T43 bool "T43" - + config RT_MINI2440_LCD_N35 bool "N35" - + config RT_MINI2440_LCD_T35 bool "T35" diff --git a/bsp/mini2440/SConstruct b/bsp/mini2440/SConstruct index 6300b8834a..7ec1bebb6e 100644 --- a/bsp/mini2440/SConstruct +++ b/bsp/mini2440/SConstruct @@ -14,11 +14,11 @@ TARGET = 'rtthread-mini2440.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - CXX = rtconfig.CXX, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + CXX = rtconfig.CXX, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') @@ -30,7 +30,7 @@ objs = PrepareBuilding(env, RTT_ROOT) #if GetDepend('RT_USING_RTGUI'): # objs = objs + SConscript(RTT_ROOT + '/examples/gui/SConscript', variant_dir='build/examples/gui', duplicate=0) -# libc testsuite +# libc testsuite # objs = objs + SConscript(RTT_ROOT + '/examples/libc/SConscript', variant_dir='build/examples/libc', duplicate=0) # make a building diff --git a/bsp/mini2440/drivers/SConscript b/bsp/mini2440/drivers/SConscript index 2ea54187ed..0dd0790676 100644 --- a/bsp/mini2440/drivers/SConscript +++ b/bsp/mini2440/drivers/SConscript @@ -13,7 +13,7 @@ uart.c """) if GetDepend('RT_USING_LWIP'): - src += ['dm9000.c'] + src += ['dm9000.c'] if GetDepend('RT_MINI2440_LCD_A70'): src += ['lcd_a70.c'] diff --git a/bsp/mini4020/SConstruct b/bsp/mini4020/SConstruct index 93b898a1d0..58bd6d2341 100644 --- a/bsp/mini4020/SConstruct +++ b/bsp/mini4020/SConstruct @@ -14,10 +14,10 @@ TARGET = 'rtthread-mini4020.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/mipssim/SConstruct b/bsp/mipssim/SConstruct index 6bdb661be8..6a96733c76 100644 --- a/bsp/mipssim/SConstruct +++ b/bsp/mipssim/SConstruct @@ -13,10 +13,10 @@ rtconfig.AFLAGS += ' -I' + str(Dir('#')) DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') @@ -25,7 +25,7 @@ Export('rtconfig') # prepare building environment objs = PrepareBuilding(env, RTT_ROOT) - + env.Replace(LINKFLAGS = rtconfig.LFLAGS) if GetDepend('RT_USING_FPU'): diff --git a/bsp/mipssim/applications/SConscript b/bsp/mipssim/applications/SConscript index fb5ce2ce93..bbc44d29c9 100644 --- a/bsp/mipssim/applications/SConscript +++ b/bsp/mipssim/applications/SConscript @@ -1,7 +1,7 @@ from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') group = DefineGroup('Applications', src, depend = ['']) diff --git a/bsp/mm32/libraries/HAL_Drivers/Kconfig b/bsp/mm32/libraries/HAL_Drivers/Kconfig index b47400eab1..4ebc813943 100644 --- a/bsp/mm32/libraries/HAL_Drivers/Kconfig +++ b/bsp/mm32/libraries/HAL_Drivers/Kconfig @@ -7,19 +7,19 @@ if BSP_USING_USBD # "USB High Speed (HS) Core" config BSP_USBD_SPEED_HS - bool + bool # "USB High Speed (HS) Mode" config BSP_USBD_SPEED_HSINFS - bool + bool # "USB High Speed (HS) Core in FS mode" config BSP_USBD_PHY_EMBEDDED - bool + bool # "Using Embedded phy interface" config BSP_USBD_PHY_UTMI - bool + bool # "UTMI: USB 2.0 Transceiver Macrocell Interace" config BSP_USBD_PHY_ULPI - bool + bool # "ULPI: UTMI+ Low Pin Interface" endif diff --git a/bsp/mm32/libraries/MM32F3270_HAL/SConscript b/bsp/mm32/libraries/MM32F3270_HAL/SConscript index 438b21e89d..dd7e019ef4 100644 --- a/bsp/mm32/libraries/MM32F3270_HAL/SConscript +++ b/bsp/mm32/libraries/MM32F3270_HAL/SConscript @@ -41,21 +41,21 @@ if GetDepend(['RT_USING_ADC']): if GetDepend(['RT_USING_DAC']): src += ['MM32F3270_HAL_Driver/Src/hal_dac.c'] - + if GetDepend(['RT_USING_RTC']): src += ['MM32F3270_HAL_Driver/Src/hal_rtc.c'] - + if GetDepend(['RT_USING_EXRAM']): src += ['MM32F3270_HAL_Driver/Src/hal_fsmc.c'] if GetDepend(['RT_USING_SDIO']): src += ['MM32F3270_HAL_Driver/Src/hal_sdio.c'] - + if GetDepend(['RT_USING_WDT']): src += ['MM32F3270_HAL_Driver/Src/hal_iwdg.c'] src += ['MM32F3270_HAL_Driver/Src/hal_wwdg.c'] -path = [cwd + '/CMSIS/Device/MM32/MM32F3277/Include', +path = [cwd + '/CMSIS/Device/MM32/MM32F3277/Include', cwd + '/MM32F3270_HAL_Driver/Inc'] if not GetDepend('PKG_CMSIS_CORE'): diff --git a/bsp/mm32/mm32f3270-100ask-pitaya/board/Kconfig b/bsp/mm32/mm32f3270-100ask-pitaya/board/Kconfig index f38455cdc1..a869288bcb 100644 --- a/bsp/mm32/mm32f3270-100ask-pitaya/board/Kconfig +++ b/bsp/mm32/mm32f3270-100ask-pitaya/board/Kconfig @@ -41,16 +41,16 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART1 bool "Enable UART1" default y - config BSP_USING_UART2 + config BSP_USING_UART2 bool "Enable UART2" default n - config BSP_USING_UART3 + config BSP_USING_UART3 bool "Enable UART3" default n endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/mm32f103x/Kconfig b/bsp/mm32f103x/Kconfig index b6f921f99a..d1a8fffcb0 100644 --- a/bsp/mm32f103x/Kconfig +++ b/bsp/mm32f103x/Kconfig @@ -20,7 +20,7 @@ source "$PKGS_DIR/Kconfig" source "drivers/Kconfig" config SOC_MM32L373 - bool + bool select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y diff --git a/bsp/mm32f103x/Libraries/SConscript b/bsp/mm32f103x/Libraries/SConscript index 2d4f2b3371..8634708377 100644 --- a/bsp/mm32f103x/Libraries/SConscript +++ b/bsp/mm32f103x/Libraries/SConscript @@ -1,7 +1,7 @@ from building import * import rtconfig cwd = GetCurrentDir() -src = ['MM32F103/Source/system_MM32F103.c'] +src = ['MM32F103/Source/system_MM32F103.c'] CPPPATH = [cwd + '/CMSIS/KEIL_CORE', cwd + '/MM32F103/Include', cwd + '/MM32F103/Source', cwd + '/MM32F103/HAL_lib/inc'] src += Glob('MM32F103/HAL_lib/src/*.c') diff --git a/bsp/mm32f103x/SConstruct b/bsp/mm32f103x/SConstruct index 9c29eeb2b5..35a7f75de0 100644 --- a/bsp/mm32f103x/SConstruct +++ b/bsp/mm32f103x/SConstruct @@ -19,10 +19,10 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: diff --git a/bsp/mm32f103x/drivers/Kconfig b/bsp/mm32f103x/drivers/Kconfig index ae70f1800e..fda41de573 100644 --- a/bsp/mm32f103x/drivers/Kconfig +++ b/bsp/mm32f103x/drivers/Kconfig @@ -6,18 +6,18 @@ menu "Hardware Drivers Config" bool "Enable GPIO" select RT_USING_PIN default n - endmenu + endmenu menu "UART Drivers" config BSP_USING_UART1 bool "Enable UART1 PA9/10(T/R)" select RT_USING_SERIAL default n - + config BSP_USING_UART2 bool "Enable UART2 PA2/3(T/R)" select RT_USING_SERIAL default y - endmenu + endmenu endmenu - + endmenu diff --git a/bsp/mm32f327x/Kconfig b/bsp/mm32f327x/Kconfig index 2372630483..bdbf24a7b5 100644 --- a/bsp/mm32f327x/Kconfig +++ b/bsp/mm32f327x/Kconfig @@ -20,7 +20,7 @@ source "$PKGS_DIR/Kconfig" source "drivers/Kconfig" config SOC_MM32F373 - bool + bool select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y diff --git a/bsp/mm32f327x/Libraries/SConscript b/bsp/mm32f327x/Libraries/SConscript index 1b178b97f8..34781346d8 100644 --- a/bsp/mm32f327x/Libraries/SConscript +++ b/bsp/mm32f327x/Libraries/SConscript @@ -1,7 +1,7 @@ from building import * import rtconfig cwd = GetCurrentDir() -src = ['MM32F327x/Source/system_mm32f327x.c'] +src = ['MM32F327x/Source/system_mm32f327x.c'] CPPPATH = [cwd + '/CMSIS/KEIL_CORE', cwd + '/MM32F327x/Include', cwd + '/MM32F327x/Source', cwd + '/MM32F327x/HAL_lib/Inc'] src += Glob('MM32F327x/HAL_lib/src/*.c') diff --git a/bsp/mm32f327x/SConstruct b/bsp/mm32f327x/SConstruct index 9c29eeb2b5..35a7f75de0 100644 --- a/bsp/mm32f327x/SConstruct +++ b/bsp/mm32f327x/SConstruct @@ -19,10 +19,10 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: diff --git a/bsp/mm32f327x/drivers/Kconfig b/bsp/mm32f327x/drivers/Kconfig index 70a1ad6c71..f9f37213eb 100644 --- a/bsp/mm32f327x/drivers/Kconfig +++ b/bsp/mm32f327x/drivers/Kconfig @@ -6,18 +6,18 @@ menu "Hardware Drivers Config" bool "Enable GPIO" select RT_USING_PIN default n - endmenu + endmenu menu "UART Drivers" config BSP_USING_UART1 bool "Enable UART1 PA9/10(T/R)" select RT_USING_SERIAL default n - + config BSP_USING_UART2 bool "Enable UART2 PA2/3(T/R)" select RT_USING_SERIAL default y - endmenu + endmenu menu "Flash Drivers" config BSP_USING_OCFLASH bool "Enable On Chip Flash" @@ -34,7 +34,7 @@ menu "Hardware Drivers Config" select RT_USING_MTD_NOR select PKG_USING_LITTLEFS default n - endmenu + endmenu endmenu - + endmenu diff --git a/bsp/mm32l07x/Kconfig b/bsp/mm32l07x/Kconfig index 77a31c68f3..7de8b077f0 100644 --- a/bsp/mm32l07x/Kconfig +++ b/bsp/mm32l07x/Kconfig @@ -20,7 +20,7 @@ source "$PKGS_DIR/Kconfig" source "drivers/Kconfig" config SOC_MM32L073 - bool + bool select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y diff --git a/bsp/mm32l07x/Libraries/SConscript b/bsp/mm32l07x/Libraries/SConscript index 2bbf66e49a..9eb764eaf5 100644 --- a/bsp/mm32l07x/Libraries/SConscript +++ b/bsp/mm32l07x/Libraries/SConscript @@ -1,7 +1,7 @@ from building import * import rtconfig cwd = GetCurrentDir() -src = ['MM32L0xx/Source/system_MM32L0xx.c'] +src = ['MM32L0xx/Source/system_MM32L0xx.c'] CPPPATH = [cwd + '/CMSIS/CORE', cwd + '/MM32L0xx/Include', cwd + '/MM32L0xx/Source', cwd + '/MM32L0xx/HAL_lib/inc'] src += Glob('MM32L0xx/HAL_lib/src/*.c') diff --git a/bsp/mm32l07x/SConstruct b/bsp/mm32l07x/SConstruct index 9c29eeb2b5..35a7f75de0 100644 --- a/bsp/mm32l07x/SConstruct +++ b/bsp/mm32l07x/SConstruct @@ -19,10 +19,10 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: diff --git a/bsp/mm32l07x/drivers/Kconfig b/bsp/mm32l07x/drivers/Kconfig index 91e0d6b6f1..d5d7be788a 100644 --- a/bsp/mm32l07x/drivers/Kconfig +++ b/bsp/mm32l07x/drivers/Kconfig @@ -7,12 +7,12 @@ menu "Hardware Drivers Config" bool "Enable UART1 PA9/10(T/R)" select RT_USING_SERIAL default n - + config BSP_USING_UART2 bool "Enable UART2 PA2/3(T/R)" select RT_USING_SERIAL default y - endmenu + endmenu endmenu - + endmenu diff --git a/bsp/mm32l3xx/Kconfig b/bsp/mm32l3xx/Kconfig index b6f921f99a..d1a8fffcb0 100644 --- a/bsp/mm32l3xx/Kconfig +++ b/bsp/mm32l3xx/Kconfig @@ -20,7 +20,7 @@ source "$PKGS_DIR/Kconfig" source "drivers/Kconfig" config SOC_MM32L373 - bool + bool select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y diff --git a/bsp/mm32l3xx/Libraries/SConscript b/bsp/mm32l3xx/Libraries/SConscript index 0c1186fa31..a79e193793 100644 --- a/bsp/mm32l3xx/Libraries/SConscript +++ b/bsp/mm32l3xx/Libraries/SConscript @@ -1,7 +1,7 @@ from building import * import rtconfig cwd = GetCurrentDir() -src = ['MM32L3xx/Source/system_MM32L3xx.c'] +src = ['MM32L3xx/Source/system_MM32L3xx.c'] CPPPATH = [cwd + '/CMSIS/KEIL_CORE', cwd + '/MM32L3xx/Include', cwd + '/MM32L3xx/Source', cwd + '/MM32L3xx/HAL_lib/inc'] src += Glob('MM32L3xx/HAL_lib/src/*.c') diff --git a/bsp/mm32l3xx/SConstruct b/bsp/mm32l3xx/SConstruct index 9c29eeb2b5..35a7f75de0 100644 --- a/bsp/mm32l3xx/SConstruct +++ b/bsp/mm32l3xx/SConstruct @@ -19,10 +19,10 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: diff --git a/bsp/mm32l3xx/drivers/Kconfig b/bsp/mm32l3xx/drivers/Kconfig index ae70f1800e..fda41de573 100644 --- a/bsp/mm32l3xx/drivers/Kconfig +++ b/bsp/mm32l3xx/drivers/Kconfig @@ -6,18 +6,18 @@ menu "Hardware Drivers Config" bool "Enable GPIO" select RT_USING_PIN default n - endmenu + endmenu menu "UART Drivers" config BSP_USING_UART1 bool "Enable UART1 PA9/10(T/R)" select RT_USING_SERIAL default n - + config BSP_USING_UART2 bool "Enable UART2 PA2/3(T/R)" select RT_USING_SERIAL default y - endmenu + endmenu endmenu - + endmenu diff --git a/bsp/n32/libraries/Kconfig b/bsp/n32/libraries/Kconfig index cdcd5bfc26..dabb77040d 100644 --- a/bsp/n32/libraries/Kconfig +++ b/bsp/n32/libraries/Kconfig @@ -19,4 +19,4 @@ config SOC_SERIES_N32WB452 config SOC_SERIES_N32G4FR bool select ARCH_ARM_CORTEX_M4 - select SOC_FAMILY_N32 \ No newline at end of file + select SOC_FAMILY_N32 diff --git a/bsp/n32/libraries/N32G43x_Firmware_Library/SConscript b/bsp/n32/libraries/N32G43x_Firmware_Library/SConscript index 24ba3e9f43..24b530897e 100644 --- a/bsp/n32/libraries/N32G43x_Firmware_Library/SConscript +++ b/bsp/n32/libraries/N32G43x_Firmware_Library/SConscript @@ -14,10 +14,10 @@ n32g43x_std_periph_driver/src/n32g43x_rcc.c n32g43x_std_periph_driver/src/n32g43x_exti.c n32g43x_std_periph_driver/src/misc.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['n32g43x_std_periph_driver/src/n32g43x_usart.c'] - + if GetDepend(['RT_USING_I2C']): src += ['n32g43x_std_periph_driver/src/n32g43x_i2c.c'] @@ -44,7 +44,7 @@ if GetDepend(['RT_USING_RTC']): if GetDepend(['RT_USING_WDT']): src += ['n32g43x_std_periph_driver/src/n32g43x_iwdg.c'] src += ['n32g43x_std_periph_driver/src/n32g43x_wwdg.c'] - + if GetDepend(['RT_USING_BSP_USB']): path += [cwd + '/n32g43x_usbfs_driver/inc'] src += [cwd + '/n32g43x_usbfs_driver/src'] diff --git a/bsp/n32/libraries/N32G45x_Firmware_Library/SConscript b/bsp/n32/libraries/N32G45x_Firmware_Library/SConscript index bff005385c..f3bce0e030 100644 --- a/bsp/n32/libraries/N32G45x_Firmware_Library/SConscript +++ b/bsp/n32/libraries/N32G45x_Firmware_Library/SConscript @@ -14,10 +14,10 @@ n32g45x_std_periph_driver/src/n32g45x_rcc.c n32g45x_std_periph_driver/src/n32g45x_exti.c n32g45x_std_periph_driver/src/misc.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['n32g45x_std_periph_driver/src/n32g45x_usart.c'] - + if GetDepend(['RT_USING_I2C']): src += ['n32g45x_std_periph_driver/src/n32g45x_i2c.c'] @@ -46,13 +46,13 @@ if GetDepend(['RT_USING_RTC']): if GetDepend(['RT_USING_WDT']): src += ['n32g45x_std_periph_driver/src/n32g45x_wwdg.c'] src += ['n32g45x_std_periph_driver/src/n32g45x_iwdg.c'] - + if GetDepend(['BSP_USING_RTC']): src += ['n32g45x_std_periph_driver/src/n32g45x_bkp.c'] if GetDepend(['RT_USING_SDIO']): src += ['n32g45x_std_periph_driver/src/n32g45x_sdio.c'] - + if GetDepend(['RT_USING_BSP_USB']): path += [cwd + '/n32g45x_usbfs_driver/inc'] src += [cwd + '/n32g45x_usbfs_driver/src'] diff --git a/bsp/n32/libraries/N32G4FR_Firmware_Library/SConscript b/bsp/n32/libraries/N32G4FR_Firmware_Library/SConscript index a22f97e338..d10b610de1 100644 --- a/bsp/n32/libraries/N32G4FR_Firmware_Library/SConscript +++ b/bsp/n32/libraries/N32G4FR_Firmware_Library/SConscript @@ -13,10 +13,10 @@ n32g4fr_std_periph_driver/src/n32g4fr_rcc.c n32g4fr_std_periph_driver/src/n32g4fr_exti.c n32g4fr_std_periph_driver/src/misc.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['n32g4fr_std_periph_driver/src/n32g4fr_usart.c'] - + if GetDepend(['RT_USING_I2C']): src += ['n32g4fr_std_periph_driver/src/n32g4fr_i2c.c'] diff --git a/bsp/n32/libraries/N32L40x_Firmware_Library/SConscript b/bsp/n32/libraries/N32L40x_Firmware_Library/SConscript index 55291a12fa..49b8b0a13b 100644 --- a/bsp/n32/libraries/N32L40x_Firmware_Library/SConscript +++ b/bsp/n32/libraries/N32L40x_Firmware_Library/SConscript @@ -14,10 +14,10 @@ n32l40x_std_periph_driver/src/n32l40x_rcc.c n32l40x_std_periph_driver/src/n32l40x_exti.c n32l40x_std_periph_driver/src/misc.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['n32l40x_std_periph_driver/src/n32l40x_usart.c'] - + if GetDepend(['RT_USING_I2C']): src += ['n32l40x_std_periph_driver/src/n32l40x_i2c.c'] @@ -44,7 +44,7 @@ if GetDepend(['RT_USING_RTC']): if GetDepend(['RT_USING_WDT']): src += ['n32l40x_std_periph_driver/src/n32l40x_iwdg.c'] src += ['n32l40x_std_periph_driver/src/n32l40x_wwdg.c'] - + if GetDepend(['RT_USING_BSP_USB']): path += [cwd + '/n32l40x_usbfs_driver/inc'] src += [cwd + '/n32l40x_usbfs_driver/src'] diff --git a/bsp/n32/libraries/N32L43x_Firmware_Library/SConscript b/bsp/n32/libraries/N32L43x_Firmware_Library/SConscript index 93fb32cc45..f8180cfb79 100644 --- a/bsp/n32/libraries/N32L43x_Firmware_Library/SConscript +++ b/bsp/n32/libraries/N32L43x_Firmware_Library/SConscript @@ -14,10 +14,10 @@ n32l43x_std_periph_driver/src/n32l43x_rcc.c n32l43x_std_periph_driver/src/n32l43x_exti.c n32l43x_std_periph_driver/src/misc.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['n32l43x_std_periph_driver/src/n32l43x_usart.c'] - + if GetDepend(['RT_USING_I2C']): src += ['n32l43x_std_periph_driver/src/n32l43x_i2c.c'] @@ -44,7 +44,7 @@ if GetDepend(['RT_USING_RTC']): if GetDepend(['RT_USING_WDT']): src += ['n32l43x_std_periph_driver/src/n32l43x_iwdg.c'] src += ['n32l43x_std_periph_driver/src/n32l43x_wwdg.c'] - + if GetDepend(['RT_USING_BSP_USB']): path += [cwd + '/n32l43x_usbfs_driver/inc'] src += [cwd + '/n32l43x_usbfs_driver/src'] diff --git a/bsp/n32/libraries/N32WB452_Firmware_Library/SConscript b/bsp/n32/libraries/N32WB452_Firmware_Library/SConscript index 35dab246b3..ec1ac4502a 100644 --- a/bsp/n32/libraries/N32WB452_Firmware_Library/SConscript +++ b/bsp/n32/libraries/N32WB452_Firmware_Library/SConscript @@ -14,10 +14,10 @@ n32wb452_std_periph_driver/src/n32wb452_rcc.c n32wb452_std_periph_driver/src/n32wb452_exti.c n32wb452_std_periph_driver/src/misc.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['n32wb452_std_periph_driver/src/n32wb452_usart.c'] - + if GetDepend(['RT_USING_I2C']): src += ['n32wb452_std_periph_driver/src/n32wb452_i2c.c'] @@ -47,7 +47,7 @@ if GetDepend(['RT_USING_WDT']): if GetDepend(['RT_USING_SDIO']): src += ['n32wb452_std_periph_driver/src/n32wb452_sdio.c'] - + if GetDepend(['RT_USING_BSP_USB']): path += [cwd + '/n32wb452_usbfs_driver/inc'] src += [cwd + '/n32wb452_usbfs_driver/src'] diff --git a/bsp/n32/libraries/n32_drivers/SConscript b/bsp/n32/libraries/n32_drivers/SConscript index 98d4d616a6..107e4d1b33 100644 --- a/bsp/n32/libraries/n32_drivers/SConscript +++ b/bsp/n32/libraries/n32_drivers/SConscript @@ -38,7 +38,7 @@ if GetDepend(['RT_USING_DAC']): if GetDepend(['RT_USING_CAN']): src += ['drv_can.c'] - + if GetDepend(['RT_USING_RTC']): src += ['drv_rtc.c'] diff --git a/bsp/n32/n32g43xcl-stb/Kconfig b/bsp/n32/n32g43xcl-stb/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/n32/n32g43xcl-stb/Kconfig +++ b/bsp/n32/n32g43xcl-stb/Kconfig @@ -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" diff --git a/bsp/n32/n32g43xcl-stb/board/Kconfig b/bsp/n32/n32g43xcl-stb/board/Kconfig index 6d228a471f..3530f4f591 100644 --- a/bsp/n32/n32g43xcl-stb/board/Kconfig +++ b/bsp/n32/n32g43xcl-stb/board/Kconfig @@ -3,14 +3,14 @@ menu "Hardware Drivers Config" config SOC_SERIES_N32G43X bool default y - + config SOC_N32G43X bool select SOC_SERIES_N32G43X select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -46,7 +46,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART5 bool "Enable UART5" default n - + endif menuconfig BSP_USING_SPI @@ -57,8 +57,8 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI1 bool "Enable SPI1 BUS" default n - - config BSP_USING_SPI2 + + config BSP_USING_SPI2 bool "Enable SPI2 BUS" default n @@ -75,14 +75,14 @@ menu "On-chip Peripheral Drivers" int "i2c1 scl pin number" range 0 64 default 22 - + config BSP_I2C1_SDA_PIN int "I2C1 sda pin number" range 0 64 default 23 endif - - menuconfig BSP_USING_RTC + + menuconfig BSP_USING_RTC bool "Enable RTC" select RT_USING_RTC default n @@ -93,11 +93,11 @@ menu "On-chip Peripheral Drivers" config BSP_RTC_USING_LSE bool "RTC USING LSE" - - config BSP_RTC_USING_HSE + + config BSP_RTC_USING_HSE bool "RTC USING HSE" - - config BSP_RTC_USING_LSI + + config BSP_RTC_USING_LSI bool "RTC USING LSI" endchoice endif @@ -115,55 +115,55 @@ menu "On-chip Peripheral Drivers" config BSP_USING_HWTIMER1 bool "using hwtimer1" default n - + config BSP_USING_HWTIMER2 bool "using hwtimer2" default n - + config BSP_USING_HWTIMER3 bool "using hwtimer3" default n - + config BSP_USING_HWTIMER4 bool "using hwtimer4" default n - + config BSP_USING_HWTIMER5 bool "using hwtimer5" default n - + config BSP_USING_HWTIMER6 bool "using hwtimer6" default n - + config BSP_USING_HWTIMER7 bool "using hwtimer7" default n - - config BSP_USING_HWTIMER8 + + config BSP_USING_HWTIMER8 bool "using hwtimer8" default n - - config BSP_USING_HWTIMER9 + + config BSP_USING_HWTIMER9 bool "using hwtimer9" default n endif - + config BSP_USING_ADC bool "Enable ADC" select RT_USING_ADC default n - + config BSP_USING_DAC bool "Enable DAC" select RT_USING_DAC default n - + config BSP_USING_CAN bool "Enable CAN" select RT_USING_CAN default n - + source "../libraries/n32_drivers/Kconfig" endmenu diff --git a/bsp/n32/n32g43xcl-stb/board/SConscript b/bsp/n32/n32g43xcl-stb/board/SConscript index 30f84a19bc..8281269354 100644 --- a/bsp/n32/n32g43xcl-stb/board/SConscript +++ b/bsp/n32/n32g43xcl-stb/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/N32G43x_Firmware_Library/CMSIS/device/startup/startup_n32g43x.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/N32G43x_Firmware_Library/CMSIS/device/startup/startup_n32g43x_EWARM.s'] - + CPPDEFINES = ['N32G43X'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/n32/n32g457qel-stb/Kconfig b/bsp/n32/n32g457qel-stb/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/n32/n32g457qel-stb/Kconfig +++ b/bsp/n32/n32g457qel-stb/Kconfig @@ -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" diff --git a/bsp/n32/n32g457qel-stb/board/Kconfig b/bsp/n32/n32g457qel-stb/board/Kconfig index 353a8986c2..a9953ee19f 100644 --- a/bsp/n32/n32g457qel-stb/board/Kconfig +++ b/bsp/n32/n32g457qel-stb/board/Kconfig @@ -3,14 +3,14 @@ menu "Hardware Drivers Config" config SOC_SERIES_N32G45X bool default y - + config SOC_N32G45X bool select SOC_SERIES_N32G45X select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -46,12 +46,12 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART5 bool "Enable UART5" default n - - config BSP_USING_UART6 + + config BSP_USING_UART6 bool "Enable UART6" default n - - config BSP_USING_UART7 + + config BSP_USING_UART7 bool "Enable UART7" default n endif @@ -64,12 +64,12 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI1 bool "Enable SPI1 BUS" default n - - config BSP_USING_SPI2 + + config BSP_USING_SPI2 bool "Enable SPI2 BUS" default n - - config BSP_USING_SPI3 + + config BSP_USING_SPI3 bool "Enable SPI3 BUS" default n @@ -91,8 +91,8 @@ menu "On-chip Peripheral Drivers" range 0 111 default 23 endif - - menuconfig BSP_USING_RTC + + menuconfig BSP_USING_RTC bool "Enable RTC" select RT_USING_RTC default n @@ -140,7 +140,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_HWTIMER7 bool "using hwtimer7" default n - config BSP_USING_HWTIMER8 + config BSP_USING_HWTIMER8 bool "using hwtimer8" default n endif @@ -156,28 +156,28 @@ menu "On-chip Peripheral Drivers" config BSP_USING_ADC2 bool "using adc2" default n - config BSP_USING_ADC3 + config BSP_USING_ADC3 bool "using adc3" default n - config BSP_USING_ADC4 + config BSP_USING_ADC4 bool "using adc4" default n endif - - menuconfig BSP_USING_DAC + + menuconfig BSP_USING_DAC bool "Enable DAC" default n select RT_USING_DAC if BSP_USING_DAC - config BSP_USING_DAC1 + config BSP_USING_DAC1 bool "using dac1" default n config BSP_USING_DAC2 bool "using dac2" default n endif - - menuconfig BSP_USING_CAN + + menuconfig BSP_USING_CAN bool "Enable CAN" default n select RT_USING_CAN @@ -189,7 +189,7 @@ menu "On-chip Peripheral Drivers" bool "using can2" default n endif - + source "../libraries/n32_drivers/Kconfig" endmenu diff --git a/bsp/n32/n32g457qel-stb/board/SConscript b/bsp/n32/n32g457qel-stb/board/SConscript index 5977ae68a5..92c58caed8 100644 --- a/bsp/n32/n32g457qel-stb/board/SConscript +++ b/bsp/n32/n32g457qel-stb/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/N32G45x_Firmware_Library/CMSIS/device/startup/startup_n32g45x.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/N32G45x_Firmware_Library/CMSIS/device/startup/startup_n32g45x_EWARM.s'] - + CPPDEFINES = ['N32G45X'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/n32/n32g45xcl-stb/Kconfig b/bsp/n32/n32g45xcl-stb/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/n32/n32g45xcl-stb/Kconfig +++ b/bsp/n32/n32g45xcl-stb/Kconfig @@ -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" diff --git a/bsp/n32/n32g45xcl-stb/board/Kconfig b/bsp/n32/n32g45xcl-stb/board/Kconfig index 08503ba556..867c0bce0b 100644 --- a/bsp/n32/n32g45xcl-stb/board/Kconfig +++ b/bsp/n32/n32g45xcl-stb/board/Kconfig @@ -3,14 +3,14 @@ menu "Hardware Drivers Config" config SOC_SERIES_N32G45X bool default y - + config SOC_N32G45X bool select SOC_SERIES_N32G45X select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -46,11 +46,11 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART5 bool "Enable UART5" default n - - config BSP_USING_UART6 + + config BSP_USING_UART6 bool "Enable UART6" default n - + endif menuconfig BSP_USING_SPI @@ -61,12 +61,12 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI1 bool "Enable SPI1 BUS" default n - - config BSP_USING_SPI2 + + config BSP_USING_SPI2 bool "Enable SPI2 BUS" default n - - config BSP_USING_SPI3 + + config BSP_USING_SPI3 bool "Enable SPI3 BUS" default n @@ -88,8 +88,8 @@ menu "On-chip Peripheral Drivers" range 0 111 default 23 endif - - menuconfig BSP_USING_RTC + + menuconfig BSP_USING_RTC bool "Enable RTC" select RT_USING_RTC default n @@ -100,8 +100,8 @@ menu "On-chip Peripheral Drivers" config BSP_RTC_USING_LSE bool "RTC USING LSE" - - config BSP_RTC_USING_HSE + + config BSP_RTC_USING_HSE bool "RTC USING HSE" config BSP_RTC_USING_LSI @@ -140,7 +140,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_HWTIMER7 bool "using hwtimer7" default n - config BSP_USING_HWTIMER8 + config BSP_USING_HWTIMER8 bool "using hwtimer8" default n endif @@ -156,15 +156,15 @@ menu "On-chip Peripheral Drivers" config BSP_USING_ADC2 bool "using adc2" default n - config BSP_USING_ADC3 + config BSP_USING_ADC3 bool "using adc3" default n - config BSP_USING_ADC4 + config BSP_USING_ADC4 bool "using adc4" default n endif - - menuconfig BSP_USING_DAC + + menuconfig BSP_USING_DAC bool "Enable DAC" default n select RT_USING_DAC @@ -176,8 +176,8 @@ menu "On-chip Peripheral Drivers" bool "using dac2" default n endif - - menuconfig BSP_USING_CAN + + menuconfig BSP_USING_CAN bool "Enable CAN" default n select RT_USING_CAN @@ -189,7 +189,7 @@ menu "On-chip Peripheral Drivers" bool "using can2" default n endif - + source "../libraries/n32_drivers/Kconfig" endmenu diff --git a/bsp/n32/n32g45xcl-stb/board/SConscript b/bsp/n32/n32g45xcl-stb/board/SConscript index 5977ae68a5..92c58caed8 100644 --- a/bsp/n32/n32g45xcl-stb/board/SConscript +++ b/bsp/n32/n32g45xcl-stb/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/N32G45x_Firmware_Library/CMSIS/device/startup/startup_n32g45x.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/N32G45x_Firmware_Library/CMSIS/device/startup/startup_n32g45x_EWARM.s'] - + CPPDEFINES = ['N32G45X'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/n32/n32g45xml-stb/Kconfig b/bsp/n32/n32g45xml-stb/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/n32/n32g45xml-stb/Kconfig +++ b/bsp/n32/n32g45xml-stb/Kconfig @@ -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" diff --git a/bsp/n32/n32g45xml-stb/board/Kconfig b/bsp/n32/n32g45xml-stb/board/Kconfig index 8d7f1007bd..a9953ee19f 100644 --- a/bsp/n32/n32g45xml-stb/board/Kconfig +++ b/bsp/n32/n32g45xml-stb/board/Kconfig @@ -3,14 +3,14 @@ menu "Hardware Drivers Config" config SOC_SERIES_N32G45X bool default y - + config SOC_N32G45X bool select SOC_SERIES_N32G45X select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -46,12 +46,12 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART5 bool "Enable UART5" default n - - config BSP_USING_UART6 + + config BSP_USING_UART6 bool "Enable UART6" default n - - config BSP_USING_UART7 + + config BSP_USING_UART7 bool "Enable UART7" default n endif @@ -64,12 +64,12 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI1 bool "Enable SPI1 BUS" default n - - config BSP_USING_SPI2 + + config BSP_USING_SPI2 bool "Enable SPI2 BUS" default n - - config BSP_USING_SPI3 + + config BSP_USING_SPI3 bool "Enable SPI3 BUS" default n @@ -91,8 +91,8 @@ menu "On-chip Peripheral Drivers" range 0 111 default 23 endif - - menuconfig BSP_USING_RTC + + menuconfig BSP_USING_RTC bool "Enable RTC" select RT_USING_RTC default n @@ -140,7 +140,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_HWTIMER7 bool "using hwtimer7" default n - config BSP_USING_HWTIMER8 + config BSP_USING_HWTIMER8 bool "using hwtimer8" default n endif @@ -156,15 +156,15 @@ menu "On-chip Peripheral Drivers" config BSP_USING_ADC2 bool "using adc2" default n - config BSP_USING_ADC3 + config BSP_USING_ADC3 bool "using adc3" default n - config BSP_USING_ADC4 + config BSP_USING_ADC4 bool "using adc4" default n endif - - menuconfig BSP_USING_DAC + + menuconfig BSP_USING_DAC bool "Enable DAC" default n select RT_USING_DAC @@ -176,8 +176,8 @@ menu "On-chip Peripheral Drivers" bool "using dac2" default n endif - - menuconfig BSP_USING_CAN + + menuconfig BSP_USING_CAN bool "Enable CAN" default n select RT_USING_CAN @@ -189,7 +189,7 @@ menu "On-chip Peripheral Drivers" bool "using can2" default n endif - + source "../libraries/n32_drivers/Kconfig" endmenu diff --git a/bsp/n32/n32g45xml-stb/board/SConscript b/bsp/n32/n32g45xml-stb/board/SConscript index 5977ae68a5..92c58caed8 100644 --- a/bsp/n32/n32g45xml-stb/board/SConscript +++ b/bsp/n32/n32g45xml-stb/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/N32G45x_Firmware_Library/CMSIS/device/startup/startup_n32g45x.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/N32G45x_Firmware_Library/CMSIS/device/startup/startup_n32g45x_EWARM.s'] - + CPPDEFINES = ['N32G45X'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/n32/n32g45xrl-stb/Kconfig b/bsp/n32/n32g45xrl-stb/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/n32/n32g45xrl-stb/Kconfig +++ b/bsp/n32/n32g45xrl-stb/Kconfig @@ -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" diff --git a/bsp/n32/n32g45xrl-stb/board/Kconfig b/bsp/n32/n32g45xrl-stb/board/Kconfig index 8d7f1007bd..a9953ee19f 100644 --- a/bsp/n32/n32g45xrl-stb/board/Kconfig +++ b/bsp/n32/n32g45xrl-stb/board/Kconfig @@ -3,14 +3,14 @@ menu "Hardware Drivers Config" config SOC_SERIES_N32G45X bool default y - + config SOC_N32G45X bool select SOC_SERIES_N32G45X select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -46,12 +46,12 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART5 bool "Enable UART5" default n - - config BSP_USING_UART6 + + config BSP_USING_UART6 bool "Enable UART6" default n - - config BSP_USING_UART7 + + config BSP_USING_UART7 bool "Enable UART7" default n endif @@ -64,12 +64,12 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI1 bool "Enable SPI1 BUS" default n - - config BSP_USING_SPI2 + + config BSP_USING_SPI2 bool "Enable SPI2 BUS" default n - - config BSP_USING_SPI3 + + config BSP_USING_SPI3 bool "Enable SPI3 BUS" default n @@ -91,8 +91,8 @@ menu "On-chip Peripheral Drivers" range 0 111 default 23 endif - - menuconfig BSP_USING_RTC + + menuconfig BSP_USING_RTC bool "Enable RTC" select RT_USING_RTC default n @@ -140,7 +140,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_HWTIMER7 bool "using hwtimer7" default n - config BSP_USING_HWTIMER8 + config BSP_USING_HWTIMER8 bool "using hwtimer8" default n endif @@ -156,15 +156,15 @@ menu "On-chip Peripheral Drivers" config BSP_USING_ADC2 bool "using adc2" default n - config BSP_USING_ADC3 + config BSP_USING_ADC3 bool "using adc3" default n - config BSP_USING_ADC4 + config BSP_USING_ADC4 bool "using adc4" default n endif - - menuconfig BSP_USING_DAC + + menuconfig BSP_USING_DAC bool "Enable DAC" default n select RT_USING_DAC @@ -176,8 +176,8 @@ menu "On-chip Peripheral Drivers" bool "using dac2" default n endif - - menuconfig BSP_USING_CAN + + menuconfig BSP_USING_CAN bool "Enable CAN" default n select RT_USING_CAN @@ -189,7 +189,7 @@ menu "On-chip Peripheral Drivers" bool "using can2" default n endif - + source "../libraries/n32_drivers/Kconfig" endmenu diff --git a/bsp/n32/n32g45xrl-stb/board/SConscript b/bsp/n32/n32g45xrl-stb/board/SConscript index 5977ae68a5..92c58caed8 100644 --- a/bsp/n32/n32g45xrl-stb/board/SConscript +++ b/bsp/n32/n32g45xrl-stb/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/N32G45x_Firmware_Library/CMSIS/device/startup/startup_n32g45x.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/N32G45x_Firmware_Library/CMSIS/device/startup/startup_n32g45x_EWARM.s'] - + CPPDEFINES = ['N32G45X'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/n32/n32g45xvl-stb/Kconfig b/bsp/n32/n32g45xvl-stb/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/n32/n32g45xvl-stb/Kconfig +++ b/bsp/n32/n32g45xvl-stb/Kconfig @@ -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" diff --git a/bsp/n32/n32g45xvl-stb/board/Kconfig b/bsp/n32/n32g45xvl-stb/board/Kconfig index f2d5d60bd2..7269a18eca 100644 --- a/bsp/n32/n32g45xvl-stb/board/Kconfig +++ b/bsp/n32/n32g45xvl-stb/board/Kconfig @@ -3,14 +3,14 @@ menu "Hardware Drivers Config" config SOC_SERIES_N32G45X bool default y - + config SOC_N32G45X bool select SOC_SERIES_N32G45X select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -46,12 +46,12 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART5 bool "Enable UART5" default n - - config BSP_USING_UART6 + + config BSP_USING_UART6 bool "Enable UART6" default n - - config BSP_USING_UART7 + + config BSP_USING_UART7 bool "Enable UART7" default n endif @@ -64,12 +64,12 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI1 bool "Enable SPI1 BUS" default n - - config BSP_USING_SPI2 + + config BSP_USING_SPI2 bool "Enable SPI2 BUS" default n - - config BSP_USING_SPI3 + + config BSP_USING_SPI3 bool "Enable SPI3 BUS" default n @@ -91,8 +91,8 @@ menu "On-chip Peripheral Drivers" range 0 111 default 23 endif - - menuconfig BSP_USING_RTC + + menuconfig BSP_USING_RTC bool "Enable RTC" select RT_USING_RTC default n @@ -103,8 +103,8 @@ menu "On-chip Peripheral Drivers" config BSP_RTC_USING_LSE bool "RTC USING LSE" - - config BSP_RTC_USING_HSE + + config BSP_RTC_USING_HSE bool "RTC USING HSE" config BSP_RTC_USING_LSI @@ -143,7 +143,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_HWTIMER7 bool "using hwtimer7" default n - config BSP_USING_HWTIMER8 + config BSP_USING_HWTIMER8 bool "using hwtimer8" default n endif @@ -159,15 +159,15 @@ menu "On-chip Peripheral Drivers" config BSP_USING_ADC2 bool "using adc2" default n - config BSP_USING_ADC3 + config BSP_USING_ADC3 bool "using adc3" default n - config BSP_USING_ADC4 + config BSP_USING_ADC4 bool "using adc4" default n endif - - menuconfig BSP_USING_DAC + + menuconfig BSP_USING_DAC bool "Enable DAC" default n select RT_USING_DAC @@ -179,8 +179,8 @@ menu "On-chip Peripheral Drivers" bool "using dac2" default n endif - - menuconfig BSP_USING_CAN + + menuconfig BSP_USING_CAN bool "Enable CAN" default n select RT_USING_CAN @@ -192,7 +192,7 @@ menu "On-chip Peripheral Drivers" bool "using can2" default n endif - + source "../libraries/n32_drivers/Kconfig" endmenu diff --git a/bsp/n32/n32g45xvl-stb/board/SConscript b/bsp/n32/n32g45xvl-stb/board/SConscript index 5977ae68a5..92c58caed8 100644 --- a/bsp/n32/n32g45xvl-stb/board/SConscript +++ b/bsp/n32/n32g45xvl-stb/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/N32G45x_Firmware_Library/CMSIS/device/startup/startup_n32g45x.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/N32G45x_Firmware_Library/CMSIS/device/startup/startup_n32g45x_EWARM.s'] - + CPPDEFINES = ['N32G45X'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/n32/n32g4frml-stb/Kconfig b/bsp/n32/n32g4frml-stb/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/n32/n32g4frml-stb/Kconfig +++ b/bsp/n32/n32g4frml-stb/Kconfig @@ -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" diff --git a/bsp/n32/n32g4frml-stb/board/Kconfig b/bsp/n32/n32g4frml-stb/board/Kconfig index 1b69f9179d..3134a79c98 100644 --- a/bsp/n32/n32g4frml-stb/board/Kconfig +++ b/bsp/n32/n32g4frml-stb/board/Kconfig @@ -46,12 +46,12 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART5 bool "Enable UART5" default n - - config BSP_USING_UART6 + + config BSP_USING_UART6 bool "Enable UART6" default n - - config BSP_USING_UART7 + + config BSP_USING_UART7 bool "Enable UART7" default n endif @@ -176,8 +176,8 @@ menu "On-chip Peripheral Drivers" bool "using dac2" default n endif - - menuconfig BSP_USING_CAN + + menuconfig BSP_USING_CAN bool "Enable CAN" default n select RT_USING_CAN diff --git a/bsp/n32/n32l40xcl-stb/Kconfig b/bsp/n32/n32l40xcl-stb/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/n32/n32l40xcl-stb/Kconfig +++ b/bsp/n32/n32l40xcl-stb/Kconfig @@ -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" diff --git a/bsp/n32/n32l40xcl-stb/board/Kconfig b/bsp/n32/n32l40xcl-stb/board/Kconfig index 7324883c35..0911554328 100644 --- a/bsp/n32/n32l40xcl-stb/board/Kconfig +++ b/bsp/n32/n32l40xcl-stb/board/Kconfig @@ -3,14 +3,14 @@ menu "Hardware Drivers Config" config SOC_SERIES_N32L40X bool default y - + config SOC_N32L40X bool select SOC_SERIES_N32L40X select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -46,7 +46,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART5 bool "Enable UART5" default n - + endif menuconfig BSP_USING_SPI @@ -57,8 +57,8 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI1 bool "Enable SPI1 BUS" default n - - config BSP_USING_SPI2 + + config BSP_USING_SPI2 bool "Enable SPI2 BUS" default n @@ -75,14 +75,14 @@ menu "On-chip Peripheral Drivers" int "i2c1 scl pin number" range 0 64 default 22 - + config BSP_I2C1_SDA_PIN int "I2C1 sda pin number" range 0 64 default 23 endif - - menuconfig BSP_USING_RTC + + menuconfig BSP_USING_RTC bool "Enable RTC" select RT_USING_RTC default n @@ -93,11 +93,11 @@ menu "On-chip Peripheral Drivers" config BSP_RTC_USING_LSE bool "RTC USING LSE" - - config BSP_RTC_USING_HSE + + config BSP_RTC_USING_HSE bool "RTC USING HSE" - - config BSP_RTC_USING_LSI + + config BSP_RTC_USING_LSI bool "RTC USING LSI" endchoice endif @@ -115,55 +115,55 @@ menu "On-chip Peripheral Drivers" config BSP_USING_HWTIMER1 bool "using hwtimer1" default n - + config BSP_USING_HWTIMER2 bool "using hwtimer2" default n - + config BSP_USING_HWTIMER3 bool "using hwtimer3" default n - + config BSP_USING_HWTIMER4 bool "using hwtimer4" default n - + config BSP_USING_HWTIMER5 bool "using hwtimer5" default n - + config BSP_USING_HWTIMER6 bool "using hwtimer6" default n - + config BSP_USING_HWTIMER7 bool "using hwtimer7" default n - - config BSP_USING_HWTIMER8 + + config BSP_USING_HWTIMER8 bool "using hwtimer8" default n - - config BSP_USING_HWTIMER9 + + config BSP_USING_HWTIMER9 bool "using hwtimer9" default n endif - + config BSP_USING_ADC bool "Enable ADC" select RT_USING_ADC default n - + config BSP_USING_DAC bool "Enable DAC" select RT_USING_DAC default n - + config BSP_USING_CAN bool "Enable CAN" select RT_USING_CAN default n - + source "../libraries/n32_drivers/Kconfig" endmenu diff --git a/bsp/n32/n32l40xcl-stb/board/SConscript b/bsp/n32/n32l40xcl-stb/board/SConscript index 9a41147876..2e803bafb7 100644 --- a/bsp/n32/n32l40xcl-stb/board/SConscript +++ b/bsp/n32/n32l40xcl-stb/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/N32L40x_Firmware_Library/CMSIS/device/startup/startup_n32l40x.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/N32L40x_Firmware_Library/CMSIS/device/startup/startup_n32l40x_EWARM.s'] - + CPPDEFINES = ['N32L40X'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/n32/n32l436-evb/Kconfig b/bsp/n32/n32l436-evb/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/n32/n32l436-evb/Kconfig +++ b/bsp/n32/n32l436-evb/Kconfig @@ -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" diff --git a/bsp/n32/n32l436-evb/board/Kconfig b/bsp/n32/n32l436-evb/board/Kconfig index 1500598bdd..a1726c008a 100644 --- a/bsp/n32/n32l436-evb/board/Kconfig +++ b/bsp/n32/n32l436-evb/board/Kconfig @@ -3,14 +3,14 @@ menu "Hardware Drivers Config" config SOC_SERIES_N32L43X bool default y - + config SOC_N32L43X bool select SOC_SERIES_N32L43X select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -46,7 +46,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART5 bool "Enable UART5" default n - + endif menuconfig BSP_USING_SPI @@ -57,8 +57,8 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI1 bool "Enable SPI1 BUS" default n - - config BSP_USING_SPI2 + + config BSP_USING_SPI2 bool "Enable SPI2 BUS" default n @@ -75,14 +75,14 @@ menu "On-chip Peripheral Drivers" int "i2c1 scl pin number" range 0 64 default 22 - + config BSP_I2C1_SDA_PIN int "I2C1 sda pin number" range 0 64 default 23 endif - - menuconfig BSP_USING_RTC + + menuconfig BSP_USING_RTC bool "Enable RTC" select RT_USING_RTC default n @@ -93,10 +93,10 @@ menu "On-chip Peripheral Drivers" config BSP_RTC_USING_LSE bool "RTC USING LSE" - - config BSP_RTC_USING_HSE + + config BSP_RTC_USING_HSE bool "RTC USING HSE" - + config BSP_RTC_USING_LSI bool "RTC USING LSI" endchoice @@ -115,55 +115,55 @@ menu "On-chip Peripheral Drivers" config BSP_USING_HWTIMER1 bool "using hwtimer1" default n - + config BSP_USING_HWTIMER2 bool "using hwtimer2" default n - + config BSP_USING_HWTIMER3 bool "using hwtimer3" default n - + config BSP_USING_HWTIMER4 bool "using hwtimer4" default n - + config BSP_USING_HWTIMER5 bool "using hwtimer5" default n - + config BSP_USING_HWTIMER6 bool "using hwtimer6" default n - + config BSP_USING_HWTIMER7 bool "using hwtimer7" default n - - config BSP_USING_HWTIMER8 + + config BSP_USING_HWTIMER8 bool "using hwtimer8" default n - - config BSP_USING_HWTIMER9 + + config BSP_USING_HWTIMER9 bool "using hwtimer9" default n endif - + config BSP_USING_ADC bool "Enable ADC" select RT_USING_ADC default n - + config BSP_USING_DAC bool "Enable DAC" select RT_USING_DAC default n - + config BSP_USING_CAN bool "Enable CAN" select RT_USING_CAN default n - + source "../libraries/n32_drivers/Kconfig" endmenu diff --git a/bsp/n32/n32l436-evb/board/SConscript b/bsp/n32/n32l436-evb/board/SConscript index 2c060b1673..879778bcec 100644 --- a/bsp/n32/n32l436-evb/board/SConscript +++ b/bsp/n32/n32l436-evb/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/N32L43x_Firmware_Library/CMSIS/device/startup/startup_n32l43x.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/N32L43x_Firmware_Library/CMSIS/device/startup/startup_n32l43x_EWARM.s'] - + CPPDEFINES = ['N32L43X'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/n32/n32l43xml-stb/Kconfig b/bsp/n32/n32l43xml-stb/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/n32/n32l43xml-stb/Kconfig +++ b/bsp/n32/n32l43xml-stb/Kconfig @@ -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" diff --git a/bsp/n32/n32l43xml-stb/board/Kconfig b/bsp/n32/n32l43xml-stb/board/Kconfig index 09ba3f8f7c..a1726c008a 100644 --- a/bsp/n32/n32l43xml-stb/board/Kconfig +++ b/bsp/n32/n32l43xml-stb/board/Kconfig @@ -3,14 +3,14 @@ menu "Hardware Drivers Config" config SOC_SERIES_N32L43X bool default y - + config SOC_N32L43X bool select SOC_SERIES_N32L43X select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -46,7 +46,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART5 bool "Enable UART5" default n - + endif menuconfig BSP_USING_SPI @@ -57,8 +57,8 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI1 bool "Enable SPI1 BUS" default n - - config BSP_USING_SPI2 + + config BSP_USING_SPI2 bool "Enable SPI2 BUS" default n @@ -75,14 +75,14 @@ menu "On-chip Peripheral Drivers" int "i2c1 scl pin number" range 0 64 default 22 - + config BSP_I2C1_SDA_PIN int "I2C1 sda pin number" range 0 64 default 23 endif - - menuconfig BSP_USING_RTC + + menuconfig BSP_USING_RTC bool "Enable RTC" select RT_USING_RTC default n @@ -93,11 +93,11 @@ menu "On-chip Peripheral Drivers" config BSP_RTC_USING_LSE bool "RTC USING LSE" - - config BSP_RTC_USING_HSE + + config BSP_RTC_USING_HSE bool "RTC USING HSE" - - config BSP_RTC_USING_LSI + + config BSP_RTC_USING_LSI bool "RTC USING LSI" endchoice endif @@ -115,55 +115,55 @@ menu "On-chip Peripheral Drivers" config BSP_USING_HWTIMER1 bool "using hwtimer1" default n - + config BSP_USING_HWTIMER2 bool "using hwtimer2" default n - + config BSP_USING_HWTIMER3 bool "using hwtimer3" default n - + config BSP_USING_HWTIMER4 bool "using hwtimer4" default n - + config BSP_USING_HWTIMER5 bool "using hwtimer5" default n - + config BSP_USING_HWTIMER6 bool "using hwtimer6" default n - + config BSP_USING_HWTIMER7 bool "using hwtimer7" default n - - config BSP_USING_HWTIMER8 + + config BSP_USING_HWTIMER8 bool "using hwtimer8" default n - - config BSP_USING_HWTIMER9 + + config BSP_USING_HWTIMER9 bool "using hwtimer9" default n endif - + config BSP_USING_ADC bool "Enable ADC" select RT_USING_ADC default n - + config BSP_USING_DAC bool "Enable DAC" select RT_USING_DAC default n - + config BSP_USING_CAN bool "Enable CAN" select RT_USING_CAN default n - + source "../libraries/n32_drivers/Kconfig" endmenu diff --git a/bsp/n32/n32l43xml-stb/board/SConscript b/bsp/n32/n32l43xml-stb/board/SConscript index 2c060b1673..879778bcec 100644 --- a/bsp/n32/n32l43xml-stb/board/SConscript +++ b/bsp/n32/n32l43xml-stb/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/N32L43x_Firmware_Library/CMSIS/device/startup/startup_n32l43x.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/N32L43x_Firmware_Library/CMSIS/device/startup/startup_n32l43x_EWARM.s'] - + CPPDEFINES = ['N32L43X'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/n32/n32l43xrl-stb/Kconfig b/bsp/n32/n32l43xrl-stb/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/n32/n32l43xrl-stb/Kconfig +++ b/bsp/n32/n32l43xrl-stb/Kconfig @@ -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" diff --git a/bsp/n32/n32l43xrl-stb/board/Kconfig b/bsp/n32/n32l43xrl-stb/board/Kconfig index 09ba3f8f7c..a1726c008a 100644 --- a/bsp/n32/n32l43xrl-stb/board/Kconfig +++ b/bsp/n32/n32l43xrl-stb/board/Kconfig @@ -3,14 +3,14 @@ menu "Hardware Drivers Config" config SOC_SERIES_N32L43X bool default y - + config SOC_N32L43X bool select SOC_SERIES_N32L43X select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -46,7 +46,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART5 bool "Enable UART5" default n - + endif menuconfig BSP_USING_SPI @@ -57,8 +57,8 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI1 bool "Enable SPI1 BUS" default n - - config BSP_USING_SPI2 + + config BSP_USING_SPI2 bool "Enable SPI2 BUS" default n @@ -75,14 +75,14 @@ menu "On-chip Peripheral Drivers" int "i2c1 scl pin number" range 0 64 default 22 - + config BSP_I2C1_SDA_PIN int "I2C1 sda pin number" range 0 64 default 23 endif - - menuconfig BSP_USING_RTC + + menuconfig BSP_USING_RTC bool "Enable RTC" select RT_USING_RTC default n @@ -93,11 +93,11 @@ menu "On-chip Peripheral Drivers" config BSP_RTC_USING_LSE bool "RTC USING LSE" - - config BSP_RTC_USING_HSE + + config BSP_RTC_USING_HSE bool "RTC USING HSE" - - config BSP_RTC_USING_LSI + + config BSP_RTC_USING_LSI bool "RTC USING LSI" endchoice endif @@ -115,55 +115,55 @@ menu "On-chip Peripheral Drivers" config BSP_USING_HWTIMER1 bool "using hwtimer1" default n - + config BSP_USING_HWTIMER2 bool "using hwtimer2" default n - + config BSP_USING_HWTIMER3 bool "using hwtimer3" default n - + config BSP_USING_HWTIMER4 bool "using hwtimer4" default n - + config BSP_USING_HWTIMER5 bool "using hwtimer5" default n - + config BSP_USING_HWTIMER6 bool "using hwtimer6" default n - + config BSP_USING_HWTIMER7 bool "using hwtimer7" default n - - config BSP_USING_HWTIMER8 + + config BSP_USING_HWTIMER8 bool "using hwtimer8" default n - - config BSP_USING_HWTIMER9 + + config BSP_USING_HWTIMER9 bool "using hwtimer9" default n endif - + config BSP_USING_ADC bool "Enable ADC" select RT_USING_ADC default n - + config BSP_USING_DAC bool "Enable DAC" select RT_USING_DAC default n - + config BSP_USING_CAN bool "Enable CAN" select RT_USING_CAN default n - + source "../libraries/n32_drivers/Kconfig" endmenu diff --git a/bsp/n32/n32l43xrl-stb/board/SConscript b/bsp/n32/n32l43xrl-stb/board/SConscript index 2c060b1673..879778bcec 100644 --- a/bsp/n32/n32l43xrl-stb/board/SConscript +++ b/bsp/n32/n32l43xrl-stb/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/N32L43x_Firmware_Library/CMSIS/device/startup/startup_n32l43x.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/N32L43x_Firmware_Library/CMSIS/device/startup/startup_n32l43x_EWARM.s'] - + CPPDEFINES = ['N32L43X'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/n32/n32wb45xl-evb/Kconfig b/bsp/n32/n32wb45xl-evb/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/n32/n32wb45xl-evb/Kconfig +++ b/bsp/n32/n32wb45xl-evb/Kconfig @@ -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" diff --git a/bsp/n32/n32wb45xl-evb/board/Kconfig b/bsp/n32/n32wb45xl-evb/board/Kconfig index 3b8b14454f..c52cffecd2 100644 --- a/bsp/n32/n32wb45xl-evb/board/Kconfig +++ b/bsp/n32/n32wb45xl-evb/board/Kconfig @@ -3,14 +3,14 @@ menu "Hardware Drivers Config" config SOC_SERIES_N32WB452 bool default y - + config SOC_N32WB452 bool select SOC_SERIES_N32WB452 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "Onboard Peripheral Drivers" endmenu @@ -46,12 +46,12 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART5 bool "Enable UART5" default n - - config BSP_USING_UART6 + + config BSP_USING_UART6 bool "Enable UART6" default n - - config BSP_USING_UART7 + + config BSP_USING_UART7 bool "Enable UART7" default n endif @@ -64,12 +64,12 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI1 bool "Enable SPI1 BUS" default n - - config BSP_USING_SPI2 + + config BSP_USING_SPI2 bool "Enable SPI2 BUS" default n - - config BSP_USING_SPI3 + + config BSP_USING_SPI3 bool "Enable SPI3 BUS" default n @@ -91,8 +91,8 @@ menu "On-chip Peripheral Drivers" range 0 79 default 25 endif - - menuconfig BSP_USING_RTC + + menuconfig BSP_USING_RTC bool "Enable RTC" select RT_USING_RTC default n @@ -140,7 +140,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_HWTIMER7 bool "using hwtimer7" default n - config BSP_USING_HWTIMER8 + config BSP_USING_HWTIMER8 bool "using hwtimer8" default n endif @@ -157,8 +157,8 @@ menu "On-chip Peripheral Drivers" bool "using adc2" default n endif - - menuconfig BSP_USING_DAC + + menuconfig BSP_USING_DAC bool "Enable DAC" default n select RT_USING_DAC @@ -170,8 +170,8 @@ menu "On-chip Peripheral Drivers" bool "using dac2" default n endif - - menuconfig BSP_USING_CAN + + menuconfig BSP_USING_CAN bool "Enable CAN" default n select RT_USING_CAN @@ -183,7 +183,7 @@ menu "On-chip Peripheral Drivers" bool "using can2" default n endif - + source "../libraries/n32_drivers/Kconfig" endmenu diff --git a/bsp/n32/n32wb45xl-evb/board/SConscript b/bsp/n32/n32wb45xl-evb/board/SConscript index 1374a0df7a..87e9e7d7ce 100644 --- a/bsp/n32/n32wb45xl-evb/board/SConscript +++ b/bsp/n32/n32wb45xl-evb/board/SConscript @@ -21,7 +21,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/N32WB452_Firmware_Library/CMSIS/device/startup/startup_n32wb452.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/N32WB452_Firmware_Library/CMSIS/device/startup/startup_n32wb452_EWARM.s'] - + CPPDEFINES = ['N32WB452'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/n32g452xx/Libraries/rt_drivers/SConscript b/bsp/n32g452xx/Libraries/rt_drivers/SConscript index 1baccfdf5a..b082134ed4 100755 --- a/bsp/n32g452xx/Libraries/rt_drivers/SConscript +++ b/bsp/n32g452xx/Libraries/rt_drivers/SConscript @@ -57,10 +57,10 @@ if GetDepend(['BSP_USING_CAN']): if GetDepend(['BSP_USING_SDIO']): src += ['drv_sdio.c'] - + if GetDepend(['RT_USING_HWCRYPTO']): src += ['drv_crypto.c'] - + CPPPATH = [cwd] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/n32g452xx/n32g452xx-mini-system/board/Kconfig b/bsp/n32g452xx/n32g452xx-mini-system/board/Kconfig index 59a042bf99..0f3cfab5e5 100755 --- a/bsp/n32g452xx/n32g452xx-mini-system/board/Kconfig +++ b/bsp/n32g452xx/n32g452xx-mini-system/board/Kconfig @@ -48,7 +48,7 @@ menu "On-chip Peripheral Drivers" if BSP_USING_GPIO menu "Remap JTAG Port" - choice + choice prompt "Remap JTAG Port" default BSP_RMP_SW_JTAG_SW_ENABLE config BSP_RMP_SW_JTAG_FULL_ENABLE @@ -81,7 +81,7 @@ menu "On-chip Peripheral Drivers" bool "Enable USART1" default y if BSP_USING_UART1 - choice + choice prompt "Select TX/RX Pin of USART1" default BSP_USING_UART1_NO_RMP config BSP_USING_UART1_PIN_RMP @@ -95,7 +95,7 @@ menu "On-chip Peripheral Drivers" bool "Enable USART2" default n if BSP_USING_UART2 - choice + choice prompt "Select TX/RX Pin of USART2" default BSP_USING_UART2_NO_RMP config BSP_USING_UART2_NO_RMP @@ -109,12 +109,12 @@ menu "On-chip Peripheral Drivers" endchoice endif - + config BSP_USING_UART3 bool "Enable USART3" default n if BSP_USING_UART3 - choice + choice prompt "Select TX/RX Pin of USART3" default BSP_USING_UART3_PIN_NO_RMP config BSP_USING_UART3_PIN_NO_RMP @@ -130,7 +130,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART4" default n if BSP_USING_UART4 - choice + choice prompt "Select TX/RX Pin of UART4" default BSP_USING_UART4_PIN_NORMP config BSP_USING_UART4_PIN_NORMP @@ -148,7 +148,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART5" default n if BSP_USING_UART5 - choice + choice prompt "Select TX/RX Pin of UART5" default BSP_USING_UART5_PIN_NORMP config BSP_USING_UART5_PIN_NORMP @@ -161,12 +161,12 @@ menu "On-chip Peripheral Drivers" bool "UART5:TX:PB8, RX:PB9" endchoice endif - + config BSP_USING_UART6 bool "Enable UART6" default n if BSP_USING_UART6 - choice + choice prompt "Select TX/RX Pin of UART6" default BSP_USING_UART6_PIN_NORMP config BSP_USING_UART6_PIN_NORMP @@ -177,12 +177,12 @@ menu "On-chip Peripheral Drivers" bool "UART6:TX:PB0, RX:PB1" endchoice endif - + config BSP_USING_UART7 bool "Enable UART7" default n if BSP_USING_UART7 - choice + choice prompt "Select TX/RX Pin of UART7" default BSP_USING_UART7_PIN_NORMP config BSP_USING_UART7_PIN_NORMP diff --git a/bsp/nrf5x/libraries/drivers/SConscript b/bsp/nrf5x/libraries/drivers/SConscript index 2dfe2fdb6f..53987e54c8 100644 --- a/bsp/nrf5x/libraries/drivers/SConscript +++ b/bsp/nrf5x/libraries/drivers/SConscript @@ -11,26 +11,26 @@ src = Split(""" if GetDepend(['BSP_USING_UART']): if GetDepend(['NRFX_USING_UART']): src += ['drv_uart.c'] - else: - src += ['drv_uarte.c'] + else: + src += ['drv_uarte.c'] if GetDepend(['BSP_USING_ON_CHIP_FLASH']): src += ['drv_flash.c'] if GetDepend(['BSP_USING_QSPI_FLASH']): src += ['drv_qspi_flash.c'] - + if GetDepend(['BSP_USING_I2C']): src += ['drv_i2c.c'] if GetDepend(['BSP_USING_SPI']): src += ['drv_spi.c'] - + if GetDepend(['BSP_USING_GPIO']): src += ['drv_gpio.c'] if GetDepend(['BSP_USING_SAADC']): src += ['drv_adc.c'] - + if GetDepend(['BSP_USING_PWM']): src += ['drv_pwm.c'] @@ -39,7 +39,7 @@ if GetDepend(['BSP_USING_WDT']): if GetDepend(['BSP_USING_ONCHIP_RTC']): src += ['drv_rtc.c'] - + if GetDepend(['BSP_USING_TIM']): src += ['drv_hwtimer.c'] diff --git a/bsp/nrf5x/libraries/templates/nrfx/board/Kconfig b/bsp/nrf5x/libraries/templates/nrfx/board/Kconfig index 81fa49369d..57a84bf360 100644 --- a/bsp/nrf5x/libraries/templates/nrfx/board/Kconfig +++ b/bsp/nrf5x/libraries/templates/nrfx/board/Kconfig @@ -5,9 +5,9 @@ config SOC_NRF52840 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + config SOC_NORDIC - bool + bool default y choice @@ -16,24 +16,24 @@ choice config BSP_BOARD_PCA_10056 bool "NRF52840 pca10056 " - + endchoice -menu "On-chip Peripheral Drivers" +menu "On-chip Peripheral Drivers" config BSP_USING_UART - bool "Enable UART" + bool "Enable UART" default y select RT_USING_SERIAL config BSP_USING_UART0 bool "Enable UART0" - default y + default y depends on BSP_USING_UART - + config BSP_UART0_RX_PIN depends on BSP_USING_UART0 int "uart0 rx pin number" default 8 if BSP_BOARD_PCA_10056 - + config BSP_UART0_TX_PIN depends on BSP_USING_UART0 int "uart0 tx pin number" @@ -41,52 +41,52 @@ menu "On-chip Peripheral Drivers" menu "On-chip flash config" - config MCU_FLASH_START_ADDRESS + config MCU_FLASH_START_ADDRESS hex "MCU FLASH START ADDRESS" default 0x00000000 - config MCU_FLASH_SIZE_KB + config MCU_FLASH_SIZE_KB int "MCU FLASH SIZE, MAX size 1024 KB" default 1024 - config MCU_SRAM_START_ADDRESS + config MCU_SRAM_START_ADDRESS hex "MCU RAM START ADDRESS" default 0x20000000 - config MCU_SRAM_SIZE_KB + config MCU_SRAM_SIZE_KB int "MCU RAM SIZE" default 256 - config MCU_FLASH_PAGE_SIZE + config MCU_FLASH_PAGE_SIZE hex "MCU FLASH PAGE SIZE, please not change,nrfx default is 0x1000" default 0x1000 - endmenu + endmenu endmenu if SOC_NORDIC config NRFX_CLOCK_ENABLED - int + int default 1 config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY - int + int default 7 config NRFX_CLOCK_CONFIG_LF_SRC - int - default 1 + int + default 1 endif if BSP_USING_UART config NRFX_USING_UART bool default y - + config NRFX_UART_ENABLED - int + int default 1 - + config NRFX_UART0_ENABLED - int + int default 1 depends on BSP_USING_UART0 endif diff --git a/bsp/nrf5x/nrf51822/board/Kconfig b/bsp/nrf5x/nrf51822/board/Kconfig index 64ee8325ed..810c3b1a93 100644 --- a/bsp/nrf5x/nrf51822/board/Kconfig +++ b/bsp/nrf5x/nrf51822/board/Kconfig @@ -5,9 +5,9 @@ config SOC_NRF51822 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + config SOC_NORDIC - bool + bool default y choice @@ -16,22 +16,22 @@ choice config BSP_BOARD_MICROBIT_1_5 bool "microbit nrf51822 v1.5" - + config BSP_BOARD_MICROBIT_1_0 bool "microbit nrf51822 v1.0" - + endchoice -menu "On-chip Peripheral Drivers" +menu "On-chip Peripheral Drivers" config BSP_USING_UART - bool "Enable UART" + bool "Enable UART" default y select RT_USING_SERIAL config BSP_USING_UART0 bool "Enable UART0" - default y + default y depends on BSP_USING_UART - + config BSP_UART0_RX_PIN depends on BSP_USING_UART0 int "uart0 rx pin number" @@ -45,52 +45,52 @@ menu "On-chip Peripheral Drivers" menu "On-chip flash config" - config MCU_FLASH_START_ADDRESS + config MCU_FLASH_START_ADDRESS hex "MCU FLASH START ADDRESS" default 0x00000000 - config MCU_FLASH_SIZE_KB + config MCU_FLASH_SIZE_KB int "MCU FLASH SIZE, MAX size 1024 KB" default 1024 - config MCU_SRAM_START_ADDRESS + config MCU_SRAM_START_ADDRESS hex "MCU RAM START ADDRESS" default 0x20000000 - config MCU_SRAM_SIZE_KB + config MCU_SRAM_SIZE_KB int "MCU RAM SIZE" default 16 - config MCU_FLASH_PAGE_SIZE + config MCU_FLASH_PAGE_SIZE hex "MCU FLASH PAGE SIZE, please not change,nrfx default is 0x1000" default 0x1000 - endmenu + endmenu endmenu if SOC_NORDIC config NRFX_CLOCK_ENABLED - int + int default 1 config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY - int + int default 7 config NRFX_CLOCK_CONFIG_LF_SRC - int - default 1 + int + default 1 endif if BSP_USING_UART config NRFX_USING_UART bool default y - + config NRFX_UART_ENABLED - int + int default 1 - + config NRFX_UART0_ENABLED - int + int default 1 depends on BSP_USING_UART0 endif diff --git a/bsp/nrf5x/nrf52832/applications/SConscript b/bsp/nrf5x/nrf52832/applications/SConscript index 8c116cfa3c..7f26848d1d 100644 --- a/bsp/nrf5x/nrf52832/applications/SConscript +++ b/bsp/nrf5x/nrf52832/applications/SConscript @@ -15,4 +15,4 @@ for item in list: if os.path.isfile(os.path.join(cwd, item, 'SConscript')): group = group + SConscript(os.path.join(item, 'SConscript')) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/nrf5x/nrf52832/board/Kconfig b/bsp/nrf5x/nrf52832/board/Kconfig index 7d4dee293a..261c5ff997 100644 --- a/bsp/nrf5x/nrf52832/board/Kconfig +++ b/bsp/nrf5x/nrf52832/board/Kconfig @@ -7,18 +7,18 @@ config SOC_NRF52832 select RT_USING_USER_MAIN default y config NRFX_CLOCK_ENABLED - int + int default 1 config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY - int + int default 7 config NRFX_CLOCK_CONFIG_LF_SRC - int - default 1 + int + default 1 config SOC_NORDIC - bool + bool config SOC_NORDIC default y @@ -38,8 +38,8 @@ menu "On-chip Peripheral Drivers" default y if BSP_USING_GPIO config NRFX_GPIOTE_ENABLED - int - default 1 + int + default 1 endif config BSP_USING_SAADC bool "Enable SAADC" @@ -47,8 +47,8 @@ menu "On-chip Peripheral Drivers" default n if BSP_USING_SAADC config NRFX_SAADC_ENABLED - int - default 1 + int + default 1 endif menuconfig BSP_USING_PWM bool "Enable PWM" @@ -56,14 +56,14 @@ menu "On-chip Peripheral Drivers" default n if BSP_USING_PWM config NRFX_PWM_ENABLED - int + int default 1 config BSP_USING_PWM0 bool "Enable PWM0 bus" default y if BSP_USING_PWM0 config NRFX_PWM0_ENABLED - int + int default 1 config BSP_USING_PWM0_CH0 int "PWM0 channel 0 pin number set" @@ -87,7 +87,7 @@ menu "On-chip Peripheral Drivers" default n if BSP_USING_PWM1 config NRFX_PWM1_ENABLED - int + int default 1 config BSP_USING_PWM1_CH0 int "PWM1 channel 0 pin number set" @@ -111,7 +111,7 @@ menu "On-chip Peripheral Drivers" default n if BSP_USING_PWM2 config NRFX_PWM2_ENABLED - int + int default 1 config BSP_USING_PWM2_CH0 int "PWM2 channel 0 pin number set" @@ -135,7 +135,7 @@ menu "On-chip Peripheral Drivers" default n if BSP_USING_PWM3 config NRFX_PWM3_ENABLED - int + int default 1 config BSP_USING_PWM3_CH0 int "PWM3 channel 0 pin number set" @@ -156,35 +156,35 @@ menu "On-chip Peripheral Drivers" endif endif - + config BSP_USING_UART - bool "Enable UART" + bool "Enable UART" default y select RT_USING_SERIAL - if BSP_USING_UART - choice - prompt "UART or UARTE" - default NRFX_USING_UART - help - Select the UART or UARTE - config NRFX_USING_UART - bool "UART" - - config NRFX_USING_UARTE - bool "UARTE" - endchoice - endif + if BSP_USING_UART + choice + prompt "UART or UARTE" + default NRFX_USING_UART + help + Select the UART or UARTE + config NRFX_USING_UART + bool "UART" + + config NRFX_USING_UARTE + bool "UARTE" + endchoice + endif if BSP_USING_UART&&NRFX_USING_UART config NRFX_UART_ENABLED - int + int default 1 config BSP_USING_UART0 bool "Enable UART0" - default y + default y if BSP_USING_UART0 config NRFX_UART0_ENABLED - int + int default 1 config BSP_UART0_RX_PIN int "uart0 rx pin number" @@ -198,15 +198,15 @@ menu "On-chip Peripheral Drivers" endif if BSP_USING_UART&&NRFX_USING_UARTE config NRFX_UARTE_ENABLED - int + int default 1 config BSP_USING_UART0 bool "Enable UARTE0" - default n + default n if BSP_USING_UART0 config NRFX_UARTE0_ENABLED - int + int default 1 config BSP_UART0_RX_PIN int "uarte0 rx pin number" @@ -218,21 +218,21 @@ menu "On-chip Peripheral Drivers" default 6 endif endif - + config BSP_USING_I2C bool "Enable I2C" select RT_USING_I2C default n if BSP_USING_I2C config NRFX_TWIM_ENABLED - int + int default 1 config BSP_USING_I2C0 bool "Enable I2C0 bus" default y if BSP_USING_I2C0 config NRFX_TWIM0_ENABLED - int + int default 1 config BSP_I2C0_SCL_PIN int "i2c0 scl pin number" @@ -248,7 +248,7 @@ menu "On-chip Peripheral Drivers" default n if BSP_USING_I2C1 config NRFX_TWIM1_ENABLED - int + int default 1 config BSP_I2C1_SCL_PIN int "i2c1 scl pin number" @@ -260,7 +260,7 @@ menu "On-chip Peripheral Drivers" default 2 endif endif - + config BSP_USING_SPI bool "Enable SPI" select RT_USING_PIN @@ -268,7 +268,7 @@ menu "On-chip Peripheral Drivers" if BSP_USING_SPI config NRFX_SPI_ENABLED - int + int default 1 config BSP_USING_SPI0 bool "Enable SPI0 bus" @@ -341,36 +341,36 @@ menu "On-chip Peripheral Drivers" select RT_USING_FAL bool "Enable on-chip FLASH" default n - + config BSP_USING_ON_CHIP_FS - bool "Enable on-chip filesystem" + bool "Enable on-chip filesystem" default n menu "On-chip flash config" - config MCU_FLASH_START_ADDRESS + config MCU_FLASH_START_ADDRESS hex "MCU FLASH START ADDRESS" default 0x00000000 - config MCU_FLASH_SIZE_KB + config MCU_FLASH_SIZE_KB int "MCU FLASH SIZE, MAX size 1024 KB" range 1 1024 - default 512 + default 512 - config MCU_SRAM_START_ADDRESS + config MCU_SRAM_START_ADDRESS hex "MCU RAM START ADDRESS" default 0x20000000 - config MCU_SRAM_SIZE_KB + config MCU_SRAM_SIZE_KB int "MCU RAM SIZE, MAX size 256 KB" range 1 256 default 64 - config MCU_FLASH_PAGE_SIZE + config MCU_FLASH_PAGE_SIZE hex "MCU FLASH PAGE SIZE, please not change,nrfx default is 0x1000" range 0x1000 0x1000 default 0x1000 - endmenu + endmenu config BSP_USING_WDT bool "Enable WDT" select RT_USING_WDT @@ -393,13 +393,13 @@ menu "On-chip Peripheral Drivers" default n if BSP_USING_ONCHIP_RTC config NRFX_CLOCK_ENABLED - int + int default 1 config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY int default 7 config NRFX_RTC_ENABLED - int + int default 1 config NRFX_RTC0_ENABLED int @@ -411,7 +411,7 @@ menu "On-chip Peripheral Drivers" int default 1 config RTC_INSTANCE_ID - int + int default 2 config RTC_INSTANCE_ID int "select RTC instance id, must be 0, 1, 2" @@ -425,14 +425,14 @@ menu "On-chip Peripheral Drivers" default n if BSP_USING_TIM config NRFX_TIMER_ENABLED - int + int default 1 config BSP_USING_TIM0 bool "Enable TIMER0" default n if BSP_USING_TIM0 config NRFX_TIMER0_ENABLED - int + int default 1 endif config BSP_USING_TIM1 @@ -440,7 +440,7 @@ menu "On-chip Peripheral Drivers" default n if BSP_USING_TIM1 config NRFX_TIMER1_ENABLED - int + int default 1 endif config BSP_USING_TIM2 @@ -448,7 +448,7 @@ menu "On-chip Peripheral Drivers" default n if BSP_USING_TIM2 config NRFX_TIMER2_ENABLED - int + int default 1 endif config BSP_USING_TIM3 @@ -456,7 +456,7 @@ menu "On-chip Peripheral Drivers" default n if BSP_USING_TIM3 config NRFX_TIMER3_ENABLED - int + int default 1 endif @@ -465,7 +465,7 @@ menu "On-chip Peripheral Drivers" default n if BSP_USING_TIM4 config NRFX_TIMER4_ENABLED - int + int default 1 endif endif diff --git a/bsp/nrf5x/nrf52833/board/Kconfig b/bsp/nrf5x/nrf52833/board/Kconfig index 8bcbba093b..714247bdec 100644 --- a/bsp/nrf5x/nrf52833/board/Kconfig +++ b/bsp/nrf5x/nrf52833/board/Kconfig @@ -5,9 +5,9 @@ config SOC_NRF52833 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + config SOC_NORDIC - bool + bool default y choice @@ -16,24 +16,24 @@ choice config BSP_BOARD_PCA_10100 bool "NRF52833 pca10100" - + endchoice -menu "On-chip Peripheral Drivers" +menu "On-chip Peripheral Drivers" config BSP_USING_UART - bool "Enable UART" + bool "Enable UART" default y select RT_USING_SERIAL config BSP_USING_UART0 bool "Enable UART0" - default y + default y depends on BSP_USING_UART - + config BSP_UART0_RX_PIN depends on BSP_USING_UART0 int "uart0 rx pin number" default 8 if BSP_BOARD_PCA_10100 - + config BSP_UART0_TX_PIN depends on BSP_USING_UART0 int "uart0 tx pin number" @@ -41,52 +41,52 @@ menu "On-chip Peripheral Drivers" menu "On-chip flash config" - config MCU_FLASH_START_ADDRESS + config MCU_FLASH_START_ADDRESS hex "MCU FLASH START ADDRESS" default 0x00000000 - config MCU_FLASH_SIZE_KB + config MCU_FLASH_SIZE_KB int "MCU FLASH SIZE, MAX size 1024 KB" default 1024 - config MCU_SRAM_START_ADDRESS + config MCU_SRAM_START_ADDRESS hex "MCU RAM START ADDRESS" default 0x20000000 - config MCU_SRAM_SIZE_KB + config MCU_SRAM_SIZE_KB int "MCU RAM SIZE" default 256 - config MCU_FLASH_PAGE_SIZE + config MCU_FLASH_PAGE_SIZE hex "MCU FLASH PAGE SIZE, please not change,nrfx default is 0x1000" default 0x1000 - endmenu + endmenu endmenu if SOC_NORDIC config NRFX_CLOCK_ENABLED - int + int default 1 config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY - int + int default 7 config NRFX_CLOCK_CONFIG_LF_SRC - int - default 1 + int + default 1 endif if BSP_USING_UART config NRFX_USING_UART bool default y - + config NRFX_UART_ENABLED - int + int default 1 - + config NRFX_UART0_ENABLED - int + int default 1 depends on BSP_USING_UART0 endif diff --git a/bsp/nrf5x/nrf52840/Kconfig b/bsp/nrf5x/nrf52840/Kconfig index 2fcf68b3ec..3640eaa0ed 100644 --- a/bsp/nrf5x/nrf52840/Kconfig +++ b/bsp/nrf5x/nrf52840/Kconfig @@ -14,7 +14,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" source "board/Kconfig" diff --git a/bsp/nrf5x/nrf52840/board/Kconfig b/bsp/nrf5x/nrf52840/board/Kconfig index 1337a2315e..a15d5800d3 100644 --- a/bsp/nrf5x/nrf52840/board/Kconfig +++ b/bsp/nrf5x/nrf52840/board/Kconfig @@ -5,9 +5,9 @@ config SOC_NRF52840 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + config SOC_NORDIC - bool + bool default y choice @@ -20,7 +20,7 @@ choice bool "NRF52840 pca10056 " config BSP_BOARD_ARDUINO_NANO_33_BLE - bool "Arduino Nano 33 BLE (Sense)" + bool "Arduino Nano 33 BLE (Sense)" endchoice menu "Onboard Peripheral Drivers" @@ -28,14 +28,14 @@ menu "Onboard Peripheral Drivers" bool "Enable JLINK TO USART (uart0|RX_PIN:8|TX_PIN:6)" default y depends on BSP_BOARD_PCA_10056 - + config BSP_USING_SEGGER_RTT_CONSOLE bool "Enable SEGGER_RTT to console" select PKG_USING_SEGGER_RTT default n config RT_BSP_LED_PIN - int + int default 13 if BSP_BOARD_PCA_10056 default 16 if BSP_BOARD_ARDUINO_NANO_33_BLE depends on BSP_USING_GPIO @@ -49,7 +49,7 @@ menu "Onboard Peripheral Drivers" if BSP_USING_QSPI_FLASH config NRFX_QSPI_ENABLED - int + int default 1 config BSP_QSPI_SCK_PIN int "QSPI SCK pin number" @@ -75,7 +75,7 @@ menu "Onboard Peripheral Drivers" int "QSPI IO3 pin number" range 0 31 default 23 - config QSPI_FLASH_SIZE_KB + config QSPI_FLASH_SIZE_KB int "QSPI FLASH SIZE, DEFAULT size 8192 KB" default 8192 endif @@ -88,28 +88,28 @@ menu "On-chip Peripheral Drivers" bool "Enable GPIO" select RT_USING_PIN default y - + config BSP_USING_UART - bool "Enable UART" + bool "Enable UART" default n select RT_USING_SERIAL - if BSP_USING_UART - choice - prompt "UART or UARTE" - default NRFX_USING_UART - help - Select the UART or UARTE - config NRFX_USING_UART - bool "UART" - - config NRFX_USING_UARTE - bool "UARTE" - endchoice - endif + if BSP_USING_UART + choice + prompt "UART or UARTE" + default NRFX_USING_UART + help + Select the UART or UARTE + config NRFX_USING_UART + bool "UART" + + config NRFX_USING_UARTE + bool "UARTE" + endchoice + endif if BSP_USING_UART&&NRFX_USING_UART config BSP_USING_UART0 bool "Enable UART0" - default y + default y if BSP_USING_UART0 config BSP_UART0_RX_PIN int "uart0 rx pin number" @@ -125,15 +125,15 @@ menu "On-chip Peripheral Drivers" endif if BSP_USING_UART&&NRFX_USING_UARTE config NRFX_UARTE_ENABLED - int + int default 1 config BSP_USING_UART0 bool "Enable UARTE0" - default n + default n if BSP_USING_UART0 config NRFX_UARTE0_ENABLED - int + int default 1 config BSP_UART0_RX_PIN int "uarte0 rx pin number" @@ -146,10 +146,10 @@ menu "On-chip Peripheral Drivers" endif config BSP_USING_UART1 bool "Enable UARTE1" - default n + default n if BSP_USING_UART1 config NRFX_UARTE1_ENABLED - int + int default 1 config BSP_UART1_RX_PIN int "uarte1 rx pin number" @@ -202,7 +202,7 @@ menu "On-chip Peripheral Drivers" menuconfig BSP_USING_SPI bool "Enable SPI" - select RT_USING_SPI + select RT_USING_SPI default n if BSP_USING_SPI @@ -308,7 +308,7 @@ menu "On-chip Peripheral Drivers" default n if BSP_USING_PWM1 config NRFX_PWM1_ENABLED - int + int default 1 config BSP_USING_PWM1_CH0 int "PWM1 channel 0 pin number set" @@ -389,41 +389,41 @@ menu "On-chip Peripheral Drivers" menu "MCU flash config" - config MCU_FLASH_START_ADDRESS + config MCU_FLASH_START_ADDRESS hex "MCU FLASH START ADDRESS" default 0x00000000 - config MCU_FLASH_SIZE_KB + config MCU_FLASH_SIZE_KB int "MCU FLASH SIZE, MAX size 1024 KB" default 1024 - config MCU_SRAM_START_ADDRESS + config MCU_SRAM_START_ADDRESS hex "MCU RAM START ADDRESS" default 0x20000000 - config MCU_SRAM_SIZE_KB + config MCU_SRAM_SIZE_KB int "MCU RAM SIZE" default 256 - config MCU_FLASH_PAGE_SIZE + config MCU_FLASH_PAGE_SIZE hex "MCU FLASH PAGE SIZE, please not change,nrfx default is 0x1000" default 0x1000 - endmenu - - config BSP_USING_TIM + endmenu + + config BSP_USING_TIM bool "Enable TIMER" select RT_USING_HWTIMER default n if BSP_USING_TIM config NRFX_TIMER_ENABLED - int + int default 1 config BSP_USING_TIM0 bool "Enable TIMER0" default n if BSP_USING_TIM0 config NRFX_TIMER0_ENABLED - int + int default 1 endif config BSP_USING_TIM1 @@ -431,7 +431,7 @@ menu "On-chip Peripheral Drivers" default n if BSP_USING_TIM1 config NRFX_TIMER1_ENABLED - int + int default 1 endif config BSP_USING_TIM2 @@ -439,7 +439,7 @@ menu "On-chip Peripheral Drivers" default n if BSP_USING_TIM2 config NRFX_TIMER2_ENABLED - int + int default 1 endif config BSP_USING_TIM3 @@ -447,7 +447,7 @@ menu "On-chip Peripheral Drivers" default n if BSP_USING_TIM3 config NRFX_TIMER3_ENABLED - int + int default 1 endif @@ -456,7 +456,7 @@ menu "On-chip Peripheral Drivers" default n if BSP_USING_TIM4 config NRFX_TIMER4_ENABLED - int + int default 1 endif endif @@ -464,7 +464,7 @@ menu "On-chip Peripheral Drivers" if PKG_USING_TINYUSB config NRFX_POWER_ENABLED - int + int default 1 endif @@ -491,39 +491,39 @@ endchoice if SOC_NORDIC config NRFX_CLOCK_ENABLED - int + int default 1 config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY - int + int default 7 config NRFX_CLOCK_CONFIG_LF_SRC - int - default 1 + int + default 1 endif if BSP_USING_UART config NRFX_USING_UART bool default y - + config NRFX_UART_ENABLED - int + int default 1 if BSP_USING_UART0 config NRFX_UART0_ENABLED - int + int default 1 endif if NRFX_USING_UART config NRFX_UART_ENABLED - int + int default 1 endif if NRFX_USING_UARTE config NRFX_UARTE0_ENABLED - int + int default 1 endif @@ -532,79 +532,79 @@ endif if BSP_USING_GPIO config NRFX_GPIOTE_ENABLED - int - default 1 + int + default 1 endif if BSP_USING_SAADC config NRFX_SAADC_ENABLED - int - default 1 + int + default 1 endif if BSP_USING_I2C config NRFX_TWIM_ENABLED - int + int default 1 if BSP_USING_I2C0 config NRFX_TWIM0_ENABLED - int + int default 1 endif if BSP_USING_I2C1 config NRFX_TWIM1_ENABLED - int + int default 1 endif endif if BSP_USING_SPI config NRFX_SPI_ENABLED - int + int default 1 if BSP_USING_SPI0 config NRFX_SPI0_ENABLED - int + int default 1 endif if BSP_USING_SPI1 config NRFX_SPI1_ENABLED - int + int default 1 endif if BSP_USING_SPI2 config NRFX_SPI2_ENABLED - int + int default 1 endif endif if BSP_USING_PWM config NRFX_PWM_ENABLED - int + int default 1 if BSP_USING_PWM0 config NRFX_PWM0_ENABLED - int + int default 1 endif if BSP_USING_PWM1 config NRFX_PWM1_ENABLED - int + int default 1 endif if BSP_USING_PWM2 config NRFX_PWM2_ENABLED - int + int default 1 endif if BSP_USING_PWM3 config NRFX_PWM3_ENABLED - int + int default 1 endif @@ -624,13 +624,13 @@ endif if BSP_USING_ONCHIP_RTC config NRFX_CLOCK_ENABLED - int + int default 1 config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY int default 7 config NRFX_RTC_ENABLED - int + int default 1 config NRFX_RTC0_ENABLED int @@ -642,7 +642,7 @@ if BSP_USING_ONCHIP_RTC int default 1 config RTC_INSTANCE_ID - int + int default 2 config RTC_INSTANCE_ID int diff --git a/bsp/nrf5x/nrf5340/Kconfig b/bsp/nrf5x/nrf5340/Kconfig index 56d486baed..22f914e51d 100644 --- a/bsp/nrf5x/nrf5340/Kconfig +++ b/bsp/nrf5x/nrf5340/Kconfig @@ -14,7 +14,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + source "board/Kconfig" source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" diff --git a/bsp/nrf5x/nrf5340/board/Kconfig b/bsp/nrf5x/nrf5340/board/Kconfig index 2a49ac5fb3..323e979abb 100644 --- a/bsp/nrf5x/nrf5340/board/Kconfig +++ b/bsp/nrf5x/nrf5340/board/Kconfig @@ -5,9 +5,9 @@ config SOC_NRF5340 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + config SOC_NORDIC - bool + bool default y choice @@ -20,7 +20,7 @@ choice bool "NRF5340 pca10095 " config BSP_BOARD_ARDUINO_NANO_33_BLE - bool "Arduino Nano 33 BLE (Sense)" + bool "Arduino Nano 33 BLE (Sense)" endchoice menu "Onboard Peripheral Drivers" @@ -30,7 +30,7 @@ menu "Onboard Peripheral Drivers" depends on BSP_BOARD_PCA_10095 config RT_BSP_LED_PIN - int + int default 28 if BSP_BOARD_PCA_10095 default 16 if BSP_BOARD_ARDUINO_NANO_33_BLE depends on BSP_USING_GPIO @@ -44,7 +44,7 @@ menu "Onboard Peripheral Drivers" if BSP_USING_QSPI_FLASH config NRFX_QSPI_ENABLED - int + int default 1 config BSP_QSPI_SCK_PIN int "QSPI SCK pin number" @@ -70,7 +70,7 @@ menu "Onboard Peripheral Drivers" int "QSPI IO3 pin number" range 0 31 default 16 - config QSPI_FLASH_SIZE_KB + config QSPI_FLASH_SIZE_KB int "QSPI FLASH SIZE, DEFAULT size 8192 KB" default 8192 endif @@ -83,28 +83,28 @@ menu "On-chip Peripheral Drivers" bool "Enable GPIO" select RT_USING_PIN default y - + config BSP_USING_UART - bool "Enable UART" + bool "Enable UART" default n select RT_USING_SERIAL - if BSP_USING_UART - choice - prompt "UART or UARTE" - default NRFX_USING_UARTE - help - Select the UART or UARTE - config NRFX_USING_UART - bool "UART" - - config NRFX_USING_UARTE - bool "UARTE" - endchoice - endif + if BSP_USING_UART + choice + prompt "UART or UARTE" + default NRFX_USING_UARTE + help + Select the UART or UARTE + config NRFX_USING_UART + bool "UART" + + config NRFX_USING_UARTE + bool "UARTE" + endchoice + endif if BSP_USING_UART&&NRFX_USING_UART config BSP_USING_UART0 bool "Enable UART0" - default y + default y if BSP_USING_UART0 config BSP_UART0_RX_PIN int "uart0 rx pin number" @@ -120,15 +120,15 @@ menu "On-chip Peripheral Drivers" endif if BSP_USING_UART&&NRFX_USING_UARTE config NRFX_UARTE_ENABLED - int + int default 1 config BSP_USING_UART0 bool "Enable UARTE0" - default n + default n if BSP_USING_UART0 config NRFX_UARTE0_ENABLED - int + int default 1 config BSP_UART0_RX_PIN int "uarte0 rx pin number" @@ -141,10 +141,10 @@ menu "On-chip Peripheral Drivers" endif config BSP_USING_UART1 bool "Enable UARTE1" - default n + default n if BSP_USING_UART1 config NRFX_UARTE1_ENABLED - int + int default 1 config BSP_UART1_RX_PIN int "uarte1 rx pin number" @@ -155,12 +155,12 @@ menu "On-chip Peripheral Drivers" range 0 64 default 5 endif - config BSP_USING_UART2 + config BSP_USING_UART2 bool "Enable UARTE2" - default n + default n if BSP_USING_UART2 config NRFX_UARTE2_ENABLED - int + int default 1 config BSP_UART2_RX_PIN int "uarte2 rx pin number" @@ -171,12 +171,12 @@ menu "On-chip Peripheral Drivers" range 0 64 default 5 endif - config BSP_USING_UART3 + config BSP_USING_UART3 bool "Enable UARTE3" - default n + default n if BSP_USING_UART3 config NRFX_UARTE3_ENABLED - int + int default 1 config BSP_UART3_RX_PIN int "uarte3 rx pin number" @@ -193,12 +193,12 @@ menu "On-chip Peripheral Drivers" bool "Enable ADC" select RT_USING_ADC default n - - config BSP_USING_IPC + + config BSP_USING_IPC bool "Enable IPC" select RT_USING_IPC default n - + menuconfig BSP_USING_I2C bool "Enable I2C" select RT_USING_I2C @@ -230,7 +230,7 @@ menu "On-chip Peripheral Drivers" range 0 31 default 25 endif - config BSP_USING_I2C2 + config BSP_USING_I2C2 bool "Enable I2C2 bus" default n if BSP_USING_I2C2 @@ -243,7 +243,7 @@ menu "On-chip Peripheral Drivers" range 0 31 default 2 endif - config BSP_USING_I2C3 + config BSP_USING_I2C3 bool "Enable I2C3 bus" default n if BSP_USING_I2C3 @@ -260,7 +260,7 @@ menu "On-chip Peripheral Drivers" menuconfig BSP_USING_SPI bool "Enable SPI" - select RT_USING_SPI + select RT_USING_SPI default n if BSP_USING_SPI @@ -332,7 +332,7 @@ menu "On-chip Peripheral Drivers" range 0 47 default 31 endif - config BSP_USING_SPI3 + config BSP_USING_SPI3 bool "Enable SPI3 bus" default n if BSP_USING_SPI3 @@ -353,7 +353,7 @@ menu "On-chip Peripheral Drivers" range 0 47 default 31 endif - config BSP_USING_SPI4 + config BSP_USING_SPI4 bool "Enable SPI4 bus" default n if BSP_USING_SPI4 @@ -407,7 +407,7 @@ menu "On-chip Peripheral Drivers" default n if BSP_USING_PWM1 config NRFX_PWM1_ENABLED - int + int default 1 config BSP_USING_PWM1_CH0 int "PWM1 channel 0 pin number set" @@ -488,41 +488,41 @@ menu "On-chip Peripheral Drivers" menu "MCU flash config" - config MCU_FLASH_START_ADDRESS + config MCU_FLASH_START_ADDRESS hex "MCU FLASH START ADDRESS" default 0x00000000 - config MCU_FLASH_SIZE_KB + config MCU_FLASH_SIZE_KB int "MCU FLASH SIZE, MAX size 1024 KB" default 1024 - config MCU_SRAM_START_ADDRESS + config MCU_SRAM_START_ADDRESS hex "MCU RAM START ADDRESS" default 0x20000000 - config MCU_SRAM_SIZE_KB + config MCU_SRAM_SIZE_KB int "MCU RAM SIZE" default 256 - config MCU_FLASH_PAGE_SIZE + config MCU_FLASH_PAGE_SIZE hex "MCU FLASH PAGE SIZE, please not change,nrfx default is 0x1000" default 0x1000 - endmenu - - config BSP_USING_TIM + endmenu + + config BSP_USING_TIM bool "Enable TIMER" select RT_USING_HWTIMER default n if BSP_USING_TIM config NRFX_TIMER_ENABLED - int + int default 1 config BSP_USING_TIM1 bool "Enable TIMER1" default n if BSP_USING_TIM1 config NRFX_TIMER1_ENABLED - int + int default 1 endif config BSP_USING_TIM2 @@ -530,7 +530,7 @@ menu "On-chip Peripheral Drivers" default n if BSP_USING_TIM2 config NRFX_TIMER2_ENABLED - int + int default 1 endif endif @@ -538,7 +538,7 @@ menu "On-chip Peripheral Drivers" if PKG_USING_TINYUSB config NRFX_POWER_ENABLED - int + int default 1 endif @@ -565,39 +565,39 @@ endchoice if SOC_NORDIC config NRFX_CLOCK_ENABLED - int + int default 1 config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY - int + int default 7 config NRFX_CLOCK_CONFIG_LF_SRC - int - default 1 + int + default 1 endif if BSP_USING_UART config NRFX_USING_UART bool default y - + config NRFX_UART_ENABLED - int + int default 1 if BSP_USING_UART0 config NRFX_UART0_ENABLED - int + int default 1 endif if NRFX_USING_UART config NRFX_UART_ENABLED - int + int default 1 endif if NRFX_USING_UARTE config NRFX_UARTE0_ENABLED - int + int default 1 endif @@ -606,103 +606,103 @@ endif if BSP_USING_GPIO config NRFX_GPIOTE_ENABLED - int - default 1 + int + default 1 endif if BSP_USING_SAADC config NRFX_SAADC_ENABLED - int - default 1 + int + default 1 endif if BSP_USING_I2C config NRFX_TWIM_ENABLED - int + int default 1 if BSP_USING_I2C0 config NRFX_TWIM0_ENABLED - int + int default 1 endif if BSP_USING_I2C1 config NRFX_TWIM1_ENABLED - int + int default 1 endif - - if BSP_USING_I2C2 + + if BSP_USING_I2C2 config NRFX_TWIM2_ENABLED - int + int default 1 endif - - if BSP_USING_I2C3 + + if BSP_USING_I2C3 config NRFX_TWIM3_ENABLED - int + int default 1 endif endif if BSP_USING_SPI config NRFX_SPIM_ENABLED - int + int default 1 if BSP_USING_SPI0 config NRFX_SPIM0_ENABLED - int + int default 1 endif if BSP_USING_SPI1 config NRFX_SPIM1_ENABLED - int + int default 1 endif if BSP_USING_SPI2 config NRFX_SPIM2_ENABLED - int + int default 1 endif - - if BSP_USING_SPI3 + + if BSP_USING_SPI3 config NRFX_SPIM3_ENABLED - int + int default 1 endif - - if BSP_USING_SPI4 + + if BSP_USING_SPI4 config NRFX_SPIM4_ENABLED - int + int default 1 endif endif if BSP_USING_PWM config NRFX_PWM_ENABLED - int + int default 1 if BSP_USING_PWM0 config NRFX_PWM0_ENABLED - int + int default 1 endif if BSP_USING_PWM1 config NRFX_PWM1_ENABLED - int + int default 1 endif if BSP_USING_PWM2 config NRFX_PWM2_ENABLED - int + int default 1 endif if BSP_USING_PWM3 config NRFX_PWM3_ENABLED - int + int default 1 endif @@ -722,13 +722,13 @@ endif if BSP_USING_ONCHIP_RTC config NRFX_CLOCK_ENABLED - int + int default 1 config NRFX_CLOCK_DEFAULT_CONFIG_IRQ_PRIORITY int default 7 config NRFX_RTC_ENABLED - int + int default 1 config NRFX_RTC1_ENABLED int @@ -737,7 +737,7 @@ if BSP_USING_ONCHIP_RTC int default 0 config RTC_INSTANCE_ID - int + int default 1 endif diff --git a/bsp/nuclei/gd32vf103_rvstar/Kconfig b/bsp/nuclei/gd32vf103_rvstar/Kconfig index fb1ab0ffd5..2b84caa989 100644 --- a/bsp/nuclei/gd32vf103_rvstar/Kconfig +++ b/bsp/nuclei/gd32vf103_rvstar/Kconfig @@ -14,7 +14,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" source "board/Kconfig" diff --git a/bsp/nuclei/nuclei_fpga_eval/Kconfig b/bsp/nuclei/nuclei_fpga_eval/Kconfig index 0527005641..fc1efc804a 100644 --- a/bsp/nuclei/nuclei_fpga_eval/Kconfig +++ b/bsp/nuclei/nuclei_fpga_eval/Kconfig @@ -14,7 +14,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" source "board/Kconfig" diff --git a/bsp/nuvoton/libraries/m031/Device/SConscript b/bsp/nuvoton/libraries/m031/Device/SConscript index 316f5d2e77..fcd850fa09 100644 --- a/bsp/nuvoton/libraries/m031/Device/SConscript +++ b/bsp/nuvoton/libraries/m031/Device/SConscript @@ -10,7 +10,7 @@ src = Split(""" Nuvoton/M031/Source/system_M031Series.c """) -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: src = src + ['Nuvoton/M031/Source/GCC/startup_M031Series.S'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: diff --git a/bsp/nuvoton/libraries/m031/StdDriver/SConscript b/bsp/nuvoton/libraries/m031/StdDriver/SConscript index b01b6766d9..b8c471cad1 100644 --- a/bsp/nuvoton/libraries/m031/StdDriver/SConscript +++ b/bsp/nuvoton/libraries/m031/StdDriver/SConscript @@ -9,20 +9,20 @@ cpppath = [cwd + '/inc'] libpath = [cwd + '/lib'] if not GetDepend('BSP_USE_STDDRIVER_SOURCE'): - if rtconfig.PLATFORM in ['armcc', 'armclang']: - if GetOption('target') == 'mdk5' and os.path.isfile('./lib/libstddriver_keil.lib'): - libs += ['libstddriver_keil'] - elif GetOption('target') == 'mdk4' and os.path.isfile('./lib/libstddriver_keil4.lib'): - libs += ['libstddriver_keil4'] - elif rtconfig.PLATFORM in ['gcc'] and os.path.isfile('./lib/libstddriver_gcc.a'): - libs += ['libstddriver_gcc'] - elif os.path.isfile('./lib/libstddriver_iar.a'): - libs += ['libstddriver_iar'] + if rtconfig.PLATFORM in ['armcc', 'armclang']: + if GetOption('target') == 'mdk5' and os.path.isfile('./lib/libstddriver_keil.lib'): + libs += ['libstddriver_keil'] + elif GetOption('target') == 'mdk4' and os.path.isfile('./lib/libstddriver_keil4.lib'): + libs += ['libstddriver_keil4'] + elif rtconfig.PLATFORM in ['gcc'] and os.path.isfile('./lib/libstddriver_gcc.a'): + libs += ['libstddriver_gcc'] + elif os.path.isfile('./lib/libstddriver_iar.a'): + libs += ['libstddriver_iar'] if not libs: - group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath) + group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath) else: - src = [] - group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath, LIBS = libs, LIBPATH = libpath) + src = [] + group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath, LIBS = libs, LIBPATH = libpath) Return('group') diff --git a/bsp/nuvoton/libraries/m031/rtt_port/Kconfig b/bsp/nuvoton/libraries/m031/rtt_port/Kconfig index 8ec7e2e005..cd579bc5cf 100644 --- a/bsp/nuvoton/libraries/m031/rtt_port/Kconfig +++ b/bsp/nuvoton/libraries/m031/rtt_port/Kconfig @@ -248,7 +248,7 @@ config SOC_SERIES_M032 config BSP_USING_UART5_RX_DMA bool "Enable UART5 RX DMA" depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA - + config BSP_USING_UART6 bool "Enable UART6" diff --git a/bsp/nuvoton/libraries/m031/rtt_port/SConscript b/bsp/nuvoton/libraries/m031/rtt_port/SConscript index 54a599e9d7..ade6704605 100644 --- a/bsp/nuvoton/libraries/m031/rtt_port/SConscript +++ b/bsp/nuvoton/libraries/m031/rtt_port/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component Import('RTT_ROOT') from building import * @@ -10,3 +10,4 @@ CPPPATH = [cwd] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) Return('group') +') diff --git a/bsp/nuvoton/libraries/m2354/Device/SConscript b/bsp/nuvoton/libraries/m2354/Device/SConscript index 6d119ce408..39a6e29072 100644 --- a/bsp/nuvoton/libraries/m2354/Device/SConscript +++ b/bsp/nuvoton/libraries/m2354/Device/SConscript @@ -10,7 +10,7 @@ src = Split(""" Nuvoton/M2354/Source/system_M2354.c """) -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: src = src + ['Nuvoton/M2354/Source/GCC/startup_M2354.S'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: diff --git a/bsp/nuvoton/libraries/m2354/StdDriver/SConscript b/bsp/nuvoton/libraries/m2354/StdDriver/SConscript index b01b6766d9..b8c471cad1 100644 --- a/bsp/nuvoton/libraries/m2354/StdDriver/SConscript +++ b/bsp/nuvoton/libraries/m2354/StdDriver/SConscript @@ -9,20 +9,20 @@ cpppath = [cwd + '/inc'] libpath = [cwd + '/lib'] if not GetDepend('BSP_USE_STDDRIVER_SOURCE'): - if rtconfig.PLATFORM in ['armcc', 'armclang']: - if GetOption('target') == 'mdk5' and os.path.isfile('./lib/libstddriver_keil.lib'): - libs += ['libstddriver_keil'] - elif GetOption('target') == 'mdk4' and os.path.isfile('./lib/libstddriver_keil4.lib'): - libs += ['libstddriver_keil4'] - elif rtconfig.PLATFORM in ['gcc'] and os.path.isfile('./lib/libstddriver_gcc.a'): - libs += ['libstddriver_gcc'] - elif os.path.isfile('./lib/libstddriver_iar.a'): - libs += ['libstddriver_iar'] + if rtconfig.PLATFORM in ['armcc', 'armclang']: + if GetOption('target') == 'mdk5' and os.path.isfile('./lib/libstddriver_keil.lib'): + libs += ['libstddriver_keil'] + elif GetOption('target') == 'mdk4' and os.path.isfile('./lib/libstddriver_keil4.lib'): + libs += ['libstddriver_keil4'] + elif rtconfig.PLATFORM in ['gcc'] and os.path.isfile('./lib/libstddriver_gcc.a'): + libs += ['libstddriver_gcc'] + elif os.path.isfile('./lib/libstddriver_iar.a'): + libs += ['libstddriver_iar'] if not libs: - group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath) + group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath) else: - src = [] - group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath, LIBS = libs, LIBPATH = libpath) + src = [] + group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath, LIBS = libs, LIBPATH = libpath) Return('group') diff --git a/bsp/nuvoton/libraries/m2354/USBHostLib/SConscript b/bsp/nuvoton/libraries/m2354/USBHostLib/SConscript index d4902362e1..18b78e6e3d 100644 --- a/bsp/nuvoton/libraries/m2354/USBHostLib/SConscript +++ b/bsp/nuvoton/libraries/m2354/USBHostLib/SConscript @@ -5,8 +5,8 @@ from building import * cwd = GetCurrentDir() group = [] if GetDepend('BSP_USING_USBH'): - src = Glob('*src/*.c') + Glob('src/*.cpp') - CPPPATH = [cwd + '/inc'] - group = DefineGroup('m2354_usbhostlib', src, depend = [''], CPPPATH = CPPPATH) + src = Glob('*src/*.c') + Glob('src/*.cpp') + CPPPATH = [cwd + '/inc'] + group = DefineGroup('m2354_usbhostlib', src, depend = [''], CPPPATH = CPPPATH) Return('group') diff --git a/bsp/nuvoton/libraries/m2354/rtt_port/SConscript b/bsp/nuvoton/libraries/m2354/rtt_port/SConscript index 0822565fbb..0e798d87f4 100644 --- a/bsp/nuvoton/libraries/m2354/rtt_port/SConscript +++ b/bsp/nuvoton/libraries/m2354/rtt_port/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component Import('RTT_ROOT') from building import * @@ -21,3 +21,4 @@ else: group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) Return('group') +') diff --git a/bsp/nuvoton/libraries/m460/Device/SConscript b/bsp/nuvoton/libraries/m460/Device/SConscript index 7a0f718611..16d4765ba8 100644 --- a/bsp/nuvoton/libraries/m460/Device/SConscript +++ b/bsp/nuvoton/libraries/m460/Device/SConscript @@ -10,7 +10,7 @@ src = Split(""" Nuvoton/m460/Source/system_m460.c """) -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: src = src + ['Nuvoton/m460/Source/GCC/startup_M460.S'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: diff --git a/bsp/nuvoton/libraries/m460/StdDriver/SConscript b/bsp/nuvoton/libraries/m460/StdDriver/SConscript index 57025d2246..668101f381 100644 --- a/bsp/nuvoton/libraries/m460/StdDriver/SConscript +++ b/bsp/nuvoton/libraries/m460/StdDriver/SConscript @@ -9,20 +9,20 @@ cpppath = [cwd + '/inc'] libpath = [cwd + '/lib'] if not GetDepend('BSP_USE_STDDRIVER_SOURCE'): - if rtconfig.CROSS_TOOL == 'keil': - if GetOption('target') == 'mdk5' and os.path.isfile('./lib/libstddriver_keil.lib'): - libs += ['libstddriver_keil'] - elif GetOption('target') == 'mdk4' and os.path.isfile('./lib/libstddriver_keil4.lib'): - libs += ['libstddriver_keil4'] - elif rtconfig.CROSS_TOOL == 'gcc' and os.path.isfile('./lib/libstddriver_gcc.a'): - libs += ['libstddriver_gcc'] - elif os.path.isfile('./lib/libstddriver_iar.a'): - libs += ['libstddriver_iar'] + if rtconfig.CROSS_TOOL == 'keil': + if GetOption('target') == 'mdk5' and os.path.isfile('./lib/libstddriver_keil.lib'): + libs += ['libstddriver_keil'] + elif GetOption('target') == 'mdk4' and os.path.isfile('./lib/libstddriver_keil4.lib'): + libs += ['libstddriver_keil4'] + elif rtconfig.CROSS_TOOL == 'gcc' and os.path.isfile('./lib/libstddriver_gcc.a'): + libs += ['libstddriver_gcc'] + elif os.path.isfile('./lib/libstddriver_iar.a'): + libs += ['libstddriver_iar'] if not libs: - group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath) + group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath) else: - src = [] - group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath, LIBS = libs, LIBPATH = libpath) + src = [] + group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath, LIBS = libs, LIBPATH = libpath) Return('group') diff --git a/bsp/nuvoton/libraries/m460/USBHostLib/SConscript b/bsp/nuvoton/libraries/m460/USBHostLib/SConscript index b3bf0934fe..8119a1ff1d 100644 --- a/bsp/nuvoton/libraries/m460/USBHostLib/SConscript +++ b/bsp/nuvoton/libraries/m460/USBHostLib/SConscript @@ -5,8 +5,8 @@ from building import * cwd = GetCurrentDir() group = [] if GetDepend('BSP_USING_HSUSBH') or GetDepend('BSP_USING_USBH'): - src = Glob('*src/*.c') + Glob('src/*.cpp') - CPPPATH = [cwd + '/inc'] - group = DefineGroup('m460_usbhostlib', src, depend = [''], CPPPATH = CPPPATH) + src = Glob('*src/*.c') + Glob('src/*.cpp') + CPPPATH = [cwd + '/inc'] + group = DefineGroup('m460_usbhostlib', src, depend = [''], CPPPATH = CPPPATH) Return('group') diff --git a/bsp/nuvoton/libraries/m460/rtt_port/SConscript b/bsp/nuvoton/libraries/m460/rtt_port/SConscript index e9c5584d5b..dda4d2e1b6 100644 --- a/bsp/nuvoton/libraries/m460/rtt_port/SConscript +++ b/bsp/nuvoton/libraries/m460/rtt_port/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component import os Import('RTT_ROOT') @@ -43,3 +43,4 @@ for d in list: objs += group Return('objs') +') diff --git a/bsp/nuvoton/libraries/m480/Device/SConscript b/bsp/nuvoton/libraries/m480/Device/SConscript index ea24c630d7..df9500d062 100644 --- a/bsp/nuvoton/libraries/m480/Device/SConscript +++ b/bsp/nuvoton/libraries/m480/Device/SConscript @@ -10,7 +10,7 @@ src = Split(""" Nuvoton/M480/Source/system_M480.c """) -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: src = src + ['Nuvoton/M480/Source/GCC/startup_M480.S'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: diff --git a/bsp/nuvoton/libraries/m480/StdDriver/SConscript b/bsp/nuvoton/libraries/m480/StdDriver/SConscript index b01b6766d9..b8c471cad1 100644 --- a/bsp/nuvoton/libraries/m480/StdDriver/SConscript +++ b/bsp/nuvoton/libraries/m480/StdDriver/SConscript @@ -9,20 +9,20 @@ cpppath = [cwd + '/inc'] libpath = [cwd + '/lib'] if not GetDepend('BSP_USE_STDDRIVER_SOURCE'): - if rtconfig.PLATFORM in ['armcc', 'armclang']: - if GetOption('target') == 'mdk5' and os.path.isfile('./lib/libstddriver_keil.lib'): - libs += ['libstddriver_keil'] - elif GetOption('target') == 'mdk4' and os.path.isfile('./lib/libstddriver_keil4.lib'): - libs += ['libstddriver_keil4'] - elif rtconfig.PLATFORM in ['gcc'] and os.path.isfile('./lib/libstddriver_gcc.a'): - libs += ['libstddriver_gcc'] - elif os.path.isfile('./lib/libstddriver_iar.a'): - libs += ['libstddriver_iar'] + if rtconfig.PLATFORM in ['armcc', 'armclang']: + if GetOption('target') == 'mdk5' and os.path.isfile('./lib/libstddriver_keil.lib'): + libs += ['libstddriver_keil'] + elif GetOption('target') == 'mdk4' and os.path.isfile('./lib/libstddriver_keil4.lib'): + libs += ['libstddriver_keil4'] + elif rtconfig.PLATFORM in ['gcc'] and os.path.isfile('./lib/libstddriver_gcc.a'): + libs += ['libstddriver_gcc'] + elif os.path.isfile('./lib/libstddriver_iar.a'): + libs += ['libstddriver_iar'] if not libs: - group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath) + group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath) else: - src = [] - group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath, LIBS = libs, LIBPATH = libpath) + src = [] + group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath, LIBS = libs, LIBPATH = libpath) Return('group') diff --git a/bsp/nuvoton/libraries/m480/USBHostLib/SConscript b/bsp/nuvoton/libraries/m480/USBHostLib/SConscript index bf3b5901e8..acb7a4a732 100644 --- a/bsp/nuvoton/libraries/m480/USBHostLib/SConscript +++ b/bsp/nuvoton/libraries/m480/USBHostLib/SConscript @@ -5,8 +5,8 @@ from building import * cwd = GetCurrentDir() group = [] if GetDepend('BSP_USING_HSUSBH') or GetDepend('BSP_USING_USBH'): - src = Glob('*src/*.c') + Glob('src/*.cpp') - CPPPATH = [cwd + '/inc'] - group = DefineGroup('m480_usbhostlib', src, depend = [''], CPPPATH = CPPPATH) + src = Glob('*src/*.c') + Glob('src/*.cpp') + CPPPATH = [cwd + '/inc'] + group = DefineGroup('m480_usbhostlib', src, depend = [''], CPPPATH = CPPPATH) Return('group') diff --git a/bsp/nuvoton/libraries/m480/rtt_port/SConscript b/bsp/nuvoton/libraries/m480/rtt_port/SConscript index 2e80314127..85f95b5b99 100644 --- a/bsp/nuvoton/libraries/m480/rtt_port/SConscript +++ b/bsp/nuvoton/libraries/m480/rtt_port/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component Import('RTT_ROOT') from building import * @@ -33,3 +33,4 @@ else: group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) Return('group') +') diff --git a/bsp/nuvoton/libraries/ma35/UsbHostLib/SConscript b/bsp/nuvoton/libraries/ma35/UsbHostLib/SConscript index e7e5dcfbb9..06c6912a6d 100644 --- a/bsp/nuvoton/libraries/ma35/UsbHostLib/SConscript +++ b/bsp/nuvoton/libraries/ma35/UsbHostLib/SConscript @@ -5,8 +5,8 @@ from building import * cwd = GetCurrentDir() group = [] if GetDepend('BSP_USING_USBH'): - src = Glob('*src/*.c') + Glob('src/*.cpp') - CPPPATH = [cwd + '/inc'] - group = DefineGroup('ma35d1_usbhostlib', src, depend = [''], CPPPATH = CPPPATH) + src = Glob('*src/*.c') + Glob('src/*.cpp') + CPPPATH = [cwd + '/inc'] + group = DefineGroup('ma35d1_usbhostlib', src, depend = [''], CPPPATH = CPPPATH) Return('group') diff --git a/bsp/nuvoton/libraries/ma35/libcpu/arm/cortex-m4/SConscript b/bsp/nuvoton/libraries/ma35/libcpu/arm/cortex-m4/SConscript index 337a027276..276728c2cc 100644 --- a/bsp/nuvoton/libraries/ma35/libcpu/arm/cortex-m4/SConscript +++ b/bsp/nuvoton/libraries/ma35/libcpu/arm/cortex-m4/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component Import('RTT_ROOT') from building import * @@ -12,3 +12,4 @@ group = [] group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH) Return('group') +') diff --git a/bsp/nuvoton/libraries/ma35/rtt_port/Kconfig b/bsp/nuvoton/libraries/ma35/rtt_port/Kconfig index 5e830cf9c1..18a180732c 100644 --- a/bsp/nuvoton/libraries/ma35/rtt_port/Kconfig +++ b/bsp/nuvoton/libraries/ma35/rtt_port/Kconfig @@ -978,7 +978,7 @@ menuconfig BSP_USING_ECAP bool "Enable Enhanced Input Capture Timer(ECAP)" - select RT_USING_INPUT_CAPTURE + select RT_USING_INPUT_CAPTURE if BSP_USING_ECAP diff --git a/bsp/nuvoton/libraries/ma35/rtt_port/SConscript b/bsp/nuvoton/libraries/ma35/rtt_port/SConscript index 8e375e6708..1edc1a3537 100644 --- a/bsp/nuvoton/libraries/ma35/rtt_port/SConscript +++ b/bsp/nuvoton/libraries/ma35/rtt_port/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component import os Import('RTT_ROOT') @@ -19,3 +19,4 @@ for d in list: objs += group Return('objs') +') diff --git a/bsp/nuvoton/libraries/n9h30/Driver/SConscript b/bsp/nuvoton/libraries/n9h30/Driver/SConscript index 9b4fef5f2d..b2639335d5 100644 --- a/bsp/nuvoton/libraries/n9h30/Driver/SConscript +++ b/bsp/nuvoton/libraries/n9h30/Driver/SConscript @@ -9,18 +9,18 @@ cpppath = [cwd + '/Include'] libpath = [cwd + '/Library'] if not GetDepend('BSP_USE_STDDRIVER_SOURCE'): - if rtconfig.PLATFORM in ['armcc', 'armclang']: - if GetOption('target') == 'mdk4' and os.path.isfile('./Library/libstddriver_keil4.lib'): - libs += ['libstddriver_keil4'] - if GetOption('target') == 'mdk5' and os.path.isfile('./Library/libstddriver_keil.lib'): - libs += ['libstddriver_keil'] - elif rtconfig.PLATFORM in ['gcc'] and os.path.isfile('./Library/libstddriver_gcc.a'): - libs += ['libstddriver_gcc'] + if rtconfig.PLATFORM in ['armcc', 'armclang']: + if GetOption('target') == 'mdk4' and os.path.isfile('./Library/libstddriver_keil4.lib'): + libs += ['libstddriver_keil4'] + if GetOption('target') == 'mdk5' and os.path.isfile('./Library/libstddriver_keil.lib'): + libs += ['libstddriver_keil'] + elif rtconfig.PLATFORM in ['gcc'] and os.path.isfile('./Library/libstddriver_gcc.a'): + libs += ['libstddriver_gcc'] if not libs: - group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath) + group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath) else: - src = [] - group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath, LIBS = libs, LIBPATH = libpath) + src = [] + group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath, LIBS = libs, LIBPATH = libpath) Return('group') diff --git a/bsp/nuvoton/libraries/n9h30/UsbHostLib/SConscript b/bsp/nuvoton/libraries/n9h30/UsbHostLib/SConscript index 6bcad4b630..cc83141d00 100644 --- a/bsp/nuvoton/libraries/n9h30/UsbHostLib/SConscript +++ b/bsp/nuvoton/libraries/n9h30/UsbHostLib/SConscript @@ -5,8 +5,8 @@ from building import * cwd = GetCurrentDir() group = [] if GetDepend('BSP_USING_HSUSBH') or GetDepend('BSP_USING_USBH'): - src = Glob('*src/*.c') + Glob('src/*.cpp') - CPPPATH = [cwd + '/inc'] - group = DefineGroup('n9h30_usbhostlib', src, depend = [''], CPPPATH = CPPPATH) + src = Glob('*src/*.c') + Glob('src/*.cpp') + CPPPATH = [cwd + '/inc'] + group = DefineGroup('n9h30_usbhostlib', src, depend = [''], CPPPATH = CPPPATH) Return('group') diff --git a/bsp/nuvoton/libraries/n9h30/rtt_port/SConscript b/bsp/nuvoton/libraries/n9h30/rtt_port/SConscript index 8e375e6708..1edc1a3537 100644 --- a/bsp/nuvoton/libraries/n9h30/rtt_port/SConscript +++ b/bsp/nuvoton/libraries/n9h30/rtt_port/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component import os Import('RTT_ROOT') @@ -19,3 +19,4 @@ for d in list: objs += group Return('objs') +') diff --git a/bsp/nuvoton/libraries/nu_packages/ADC_TOUCH/SConscript b/bsp/nuvoton/libraries/nu_packages/ADC_TOUCH/SConscript index fb5a6cbfa0..a7552937b6 100644 --- a/bsp/nuvoton/libraries/nu_packages/ADC_TOUCH/SConscript +++ b/bsp/nuvoton/libraries/nu_packages/ADC_TOUCH/SConscript @@ -6,8 +6,8 @@ from building import * cwd = GetCurrentDir() group = [] if GetDepend('NU_PKG_USING_ADC_TOUCH'): - src = Glob('*.c') + Glob('*.cpp') - CPPPATH = [cwd] - group = DefineGroup('nu_pkgs_adc_touch', src, depend = [''], CPPPATH = CPPPATH) + src = Glob('*.c') + Glob('*.cpp') + CPPPATH = [cwd] + group = DefineGroup('nu_pkgs_adc_touch', src, depend = [''], CPPPATH = CPPPATH) Return('group') diff --git a/bsp/nuvoton/libraries/nu_packages/DA9062/SConscript b/bsp/nuvoton/libraries/nu_packages/DA9062/SConscript index 693c5e91d3..a6c80b8e3f 100644 --- a/bsp/nuvoton/libraries/nu_packages/DA9062/SConscript +++ b/bsp/nuvoton/libraries/nu_packages/DA9062/SConscript @@ -6,8 +6,8 @@ from building import * cwd = GetCurrentDir() group = [] if GetDepend('NU_PKG_USING_DA9062'): - src = Glob('*.c') + Glob('*.cpp') - CPPPATH = [cwd] - group = DefineGroup('nu_pkgs_da9062', src, depend = [''], CPPPATH = CPPPATH) + src = Glob('*.c') + Glob('*.cpp') + CPPPATH = [cwd] + group = DefineGroup('nu_pkgs_da9062', src, depend = [''], CPPPATH = CPPPATH) Return('group') diff --git a/bsp/nuvoton/libraries/nu_packages/ILI9341/SConscript b/bsp/nuvoton/libraries/nu_packages/ILI9341/SConscript index cc4a5c38dd..fe8ed6c9a3 100644 --- a/bsp/nuvoton/libraries/nu_packages/ILI9341/SConscript +++ b/bsp/nuvoton/libraries/nu_packages/ILI9341/SConscript @@ -19,4 +19,4 @@ if GetDepend('NU_PKG_USING_ILI9341'): group = DefineGroup('nu_pkgs_ili9341', src, depend = [''], CPPPATH = CPPPATH) Return('group') - + diff --git a/bsp/nuvoton/libraries/nu_packages/Kconfig b/bsp/nuvoton/libraries/nu_packages/Kconfig index c6f978f247..98f95f7e3d 100644 --- a/bsp/nuvoton/libraries/nu_packages/Kconfig +++ b/bsp/nuvoton/libraries/nu_packages/Kconfig @@ -216,13 +216,13 @@ menu "Nuvoton Packages Config" config NU_PKG_USING_ADC_TOUCH bool "ADC touch function" default n - + if NU_PKG_USING_ADC_TOUCH config NU_PKG_USING_ADC_TOUCH_SW bool "Using SW ADC touch" select RT_USING_ADC - default n + default n endif config NU_PKG_USING_SPINAND diff --git a/bsp/nuvoton/libraries/nu_packages/SLCD/SConscript b/bsp/nuvoton/libraries/nu_packages/SLCD/SConscript index 5f8372725f..263e9e12cd 100644 --- a/bsp/nuvoton/libraries/nu_packages/SLCD/SConscript +++ b/bsp/nuvoton/libraries/nu_packages/SLCD/SConscript @@ -5,8 +5,8 @@ from building import * cwd = GetCurrentDir() group = [] if GetDepend('BSP_USING_SLCD'): - src = Glob('*.c') + Glob('*.cpp') - CPPPATH = [cwd] - group = DefineGroup('nu_pkgs_slcd', src, depend = [''], CPPPATH = CPPPATH) + src = Glob('*.c') + Glob('*.cpp') + CPPPATH = [cwd] + group = DefineGroup('nu_pkgs_slcd', src, depend = [''], CPPPATH = CPPPATH) Return('group') diff --git a/bsp/nuvoton/libraries/nu_packages/SPINAND/SConscript b/bsp/nuvoton/libraries/nu_packages/SPINAND/SConscript index b455139402..3ed28d6bc9 100644 --- a/bsp/nuvoton/libraries/nu_packages/SPINAND/SConscript +++ b/bsp/nuvoton/libraries/nu_packages/SPINAND/SConscript @@ -5,8 +5,8 @@ from building import * cwd = GetCurrentDir() group = [] if GetDepend('NU_PKG_USING_SPINAND'): - src = Glob('*.c') + Glob('*.cpp') - CPPPATH = [cwd] - group = DefineGroup('nu_pkgs_spinand', src, depend = [''], CPPPATH = CPPPATH) + src = Glob('*.c') + Glob('*.cpp') + CPPPATH = [cwd] + group = DefineGroup('nu_pkgs_spinand', src, depend = [''], CPPPATH = CPPPATH) Return('group') diff --git a/bsp/nuvoton/libraries/nuc980/Driver/SConscript b/bsp/nuvoton/libraries/nuc980/Driver/SConscript index 9b4fef5f2d..b2639335d5 100644 --- a/bsp/nuvoton/libraries/nuc980/Driver/SConscript +++ b/bsp/nuvoton/libraries/nuc980/Driver/SConscript @@ -9,18 +9,18 @@ cpppath = [cwd + '/Include'] libpath = [cwd + '/Library'] if not GetDepend('BSP_USE_STDDRIVER_SOURCE'): - if rtconfig.PLATFORM in ['armcc', 'armclang']: - if GetOption('target') == 'mdk4' and os.path.isfile('./Library/libstddriver_keil4.lib'): - libs += ['libstddriver_keil4'] - if GetOption('target') == 'mdk5' and os.path.isfile('./Library/libstddriver_keil.lib'): - libs += ['libstddriver_keil'] - elif rtconfig.PLATFORM in ['gcc'] and os.path.isfile('./Library/libstddriver_gcc.a'): - libs += ['libstddriver_gcc'] + if rtconfig.PLATFORM in ['armcc', 'armclang']: + if GetOption('target') == 'mdk4' and os.path.isfile('./Library/libstddriver_keil4.lib'): + libs += ['libstddriver_keil4'] + if GetOption('target') == 'mdk5' and os.path.isfile('./Library/libstddriver_keil.lib'): + libs += ['libstddriver_keil'] + elif rtconfig.PLATFORM in ['gcc'] and os.path.isfile('./Library/libstddriver_gcc.a'): + libs += ['libstddriver_gcc'] if not libs: - group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath) + group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath) else: - src = [] - group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath, LIBS = libs, LIBPATH = libpath) + src = [] + group = DefineGroup('Libraries', src, depend = [''], CPPPATH = cpppath, LIBS = libs, LIBPATH = libpath) Return('group') diff --git a/bsp/nuvoton/libraries/nuc980/UsbHostLib/SConscript b/bsp/nuvoton/libraries/nuc980/UsbHostLib/SConscript index c480e1d099..2044bf324e 100644 --- a/bsp/nuvoton/libraries/nuc980/UsbHostLib/SConscript +++ b/bsp/nuvoton/libraries/nuc980/UsbHostLib/SConscript @@ -5,8 +5,8 @@ from building import * cwd = GetCurrentDir() group = [] if GetDepend('BSP_USING_HSUSBH') or GetDepend('BSP_USING_USBH'): - src = Glob('*src/*.c') + Glob('src/*.cpp') - CPPPATH = [cwd + '/inc'] - group = DefineGroup('nuc980_usbhostlib', src, depend = [''], CPPPATH = CPPPATH) + src = Glob('*src/*.c') + Glob('src/*.cpp') + CPPPATH = [cwd + '/inc'] + group = DefineGroup('nuc980_usbhostlib', src, depend = [''], CPPPATH = CPPPATH) Return('group') diff --git a/bsp/nuvoton/libraries/nuc980/rtt_port/Kconfig b/bsp/nuvoton/libraries/nuc980/rtt_port/Kconfig index fb92e3a931..d5a7f21a81 100644 --- a/bsp/nuvoton/libraries/nuc980/rtt_port/Kconfig +++ b/bsp/nuvoton/libraries/nuc980/rtt_port/Kconfig @@ -598,4 +598,4 @@ config SOC_SERIES_NUC980 config BSP_USING_USBH bool "Enable USB Host Controller(USBH)" select RT_USING_USB_HOST - select RT_USBH_MSTORAGE \ No newline at end of file + select RT_USBH_MSTORAGE diff --git a/bsp/nuvoton/libraries/nuc980/rtt_port/SConscript b/bsp/nuvoton/libraries/nuc980/rtt_port/SConscript index e1b907cc3c..778fc4b949 100644 --- a/bsp/nuvoton/libraries/nuc980/rtt_port/SConscript +++ b/bsp/nuvoton/libraries/nuc980/rtt_port/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component Import('RTT_ROOT') from building import * @@ -12,3 +12,4 @@ group = [] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) Return('group') +') diff --git a/bsp/nuvoton/ma35-rtp/Kconfig b/bsp/nuvoton/ma35-rtp/Kconfig index 03dd8ae611..f2bb8156ee 100644 --- a/bsp/nuvoton/ma35-rtp/Kconfig +++ b/bsp/nuvoton/ma35-rtp/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" diff --git a/bsp/nuvoton/ma35-rtp/board/SConscript b/bsp/nuvoton/ma35-rtp/board/SConscript index 38791565a2..f41e5a19a5 100644 --- a/bsp/nuvoton/ma35-rtp/board/SConscript +++ b/bsp/nuvoton/ma35-rtp/board/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component from building import * @@ -16,3 +16,4 @@ CPPPATH = [cwd, cwd + '/nutool_pincfg'] group = DefineGroup('board', src, depend = [''], CPPPATH = CPPPATH) Return('group') +') diff --git a/bsp/nuvoton/nk-980iot/Kconfig b/bsp/nuvoton/nk-980iot/Kconfig index b396340d12..02bdd664bf 100644 --- a/bsp/nuvoton/nk-980iot/Kconfig +++ b/bsp/nuvoton/nk-980iot/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" diff --git a/bsp/nuvoton/nk-980iot/SConstruct b/bsp/nuvoton/nk-980iot/SConstruct index 455c067b94..9972e22e07 100644 --- a/bsp/nuvoton/nk-980iot/SConstruct +++ b/bsp/nuvoton/nk-980iot/SConstruct @@ -19,11 +19,11 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/nuvoton/nk-980iot/board/SConscript b/bsp/nuvoton/nk-980iot/board/SConscript index 3f8e1c167f..14f90edca2 100644 --- a/bsp/nuvoton/nk-980iot/board/SConscript +++ b/bsp/nuvoton/nk-980iot/board/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component from building import * @@ -12,3 +12,4 @@ CPPPATH = [ cwd ] group = DefineGroup('board', src, depend = [''], CPPPATH = CPPPATH) Return('group') +') diff --git a/bsp/nuvoton/nk-n9h30/Kconfig b/bsp/nuvoton/nk-n9h30/Kconfig index b396340d12..02bdd664bf 100644 --- a/bsp/nuvoton/nk-n9h30/Kconfig +++ b/bsp/nuvoton/nk-n9h30/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" diff --git a/bsp/nuvoton/nk-n9h30/SConstruct b/bsp/nuvoton/nk-n9h30/SConstruct index 18f034a61d..7ddc395e03 100644 --- a/bsp/nuvoton/nk-n9h30/SConstruct +++ b/bsp/nuvoton/nk-n9h30/SConstruct @@ -19,11 +19,11 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/nuvoton/nk-n9h30/board/Kconfig b/bsp/nuvoton/nk-n9h30/board/Kconfig index 7f9b675dbf..1cdf0e33d7 100644 --- a/bsp/nuvoton/nk-n9h30/board/Kconfig +++ b/bsp/nuvoton/nk-n9h30/board/Kconfig @@ -127,7 +127,7 @@ menu "Hardware Drivers Config" endchoice endif - + endmenu source "$BSP_DIR/../libraries/nu_packages/Kconfig" diff --git a/bsp/nuvoton/nk-n9h30/board/SConscript b/bsp/nuvoton/nk-n9h30/board/SConscript index 3f8e1c167f..14f90edca2 100644 --- a/bsp/nuvoton/nk-n9h30/board/SConscript +++ b/bsp/nuvoton/nk-n9h30/board/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component from building import * @@ -12,3 +12,4 @@ CPPPATH = [ cwd ] group = DefineGroup('board', src, depend = [''], CPPPATH = CPPPATH) Return('group') +') diff --git a/bsp/nuvoton/nk-rtu980/Kconfig b/bsp/nuvoton/nk-rtu980/Kconfig index b396340d12..02bdd664bf 100644 --- a/bsp/nuvoton/nk-rtu980/Kconfig +++ b/bsp/nuvoton/nk-rtu980/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" diff --git a/bsp/nuvoton/nk-rtu980/SConstruct b/bsp/nuvoton/nk-rtu980/SConstruct index 455c067b94..9972e22e07 100644 --- a/bsp/nuvoton/nk-rtu980/SConstruct +++ b/bsp/nuvoton/nk-rtu980/SConstruct @@ -19,11 +19,11 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/nuvoton/nk-rtu980/board/SConscript b/bsp/nuvoton/nk-rtu980/board/SConscript index 3f8e1c167f..14f90edca2 100644 --- a/bsp/nuvoton/nk-rtu980/board/SConscript +++ b/bsp/nuvoton/nk-rtu980/board/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component from building import * @@ -12,3 +12,4 @@ CPPPATH = [ cwd ] group = DefineGroup('board', src, depend = [''], CPPPATH = CPPPATH) Return('group') +') diff --git a/bsp/nuvoton/numaker-hmi-ma35d1/Kconfig b/bsp/nuvoton/numaker-hmi-ma35d1/Kconfig index a78782d615..f41e7fa252 100644 --- a/bsp/nuvoton/numaker-hmi-ma35d1/Kconfig +++ b/bsp/nuvoton/numaker-hmi-ma35d1/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" @@ -19,7 +19,7 @@ config PKGS_DIR default "packages" config USE_MA35D1_AARCH32 - bool + bool default y source "$RTT_DIR/Kconfig" diff --git a/bsp/nuvoton/numaker-hmi-ma35d1/SConstruct b/bsp/nuvoton/numaker-hmi-ma35d1/SConstruct index 5143e3012d..e6f379c630 100644 --- a/bsp/nuvoton/numaker-hmi-ma35d1/SConstruct +++ b/bsp/nuvoton/numaker-hmi-ma35d1/SConstruct @@ -19,12 +19,12 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CCFLAGS = rtconfig.CFLAGS, - CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS, - CXXCOM = '$CXX -o $TARGET -c $CXXFLAGS $_CCCOMCOM $SOURCES') + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CCFLAGS = rtconfig.CFLAGS, + CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS, + CXXCOM = '$CXX -o $TARGET -c $CXXFLAGS $_CCCOMCOM $SOURCES') env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env['ASCOM'] = env['ASPPCOM'] diff --git a/bsp/nuvoton/numaker-hmi-ma35d1/board/Kconfig b/bsp/nuvoton/numaker-hmi-ma35d1/board/Kconfig index 134a2e50b9..1f5e384c98 100644 --- a/bsp/nuvoton/numaker-hmi-ma35d1/board/Kconfig +++ b/bsp/nuvoton/numaker-hmi-ma35d1/board/Kconfig @@ -60,7 +60,7 @@ menu "Hardware Drivers Config" config BOARD_USING_MPU6500 bool "MPU6500 6-axis MotionTracking Sensor(over i2c1)" - select RT_USING_SENSOR + select RT_USING_SENSOR select PKG_USING_MPU6XXX select PKG_USING_MPU6XXX_LATEST_VERSION select PKG_USING_MPU6XXX_ACCE diff --git a/bsp/nuvoton/numaker-hmi-ma35d1/board/SConscript b/bsp/nuvoton/numaker-hmi-ma35d1/board/SConscript index 38791565a2..f41e5a19a5 100644 --- a/bsp/nuvoton/numaker-hmi-ma35d1/board/SConscript +++ b/bsp/nuvoton/numaker-hmi-ma35d1/board/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component from building import * @@ -16,3 +16,4 @@ CPPPATH = [cwd, cwd + '/nutool_pincfg'] group = DefineGroup('board', src, depend = [''], CPPPATH = CPPPATH) Return('group') +') diff --git a/bsp/nuvoton/numaker-hmi-ma35d1/preload/SConscript b/bsp/nuvoton/numaker-hmi-ma35d1/preload/SConscript index 73123b415f..a17bbcde20 100644 --- a/bsp/nuvoton/numaker-hmi-ma35d1/preload/SConscript +++ b/bsp/nuvoton/numaker-hmi-ma35d1/preload/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component from building import * @@ -12,3 +12,4 @@ CPPPATH = [ cwd ] group = DefineGroup('board', src, depend = [''], CPPPATH = CPPPATH) Return('group') +') diff --git a/bsp/nuvoton/numaker-iot-m467/Kconfig b/bsp/nuvoton/numaker-iot-m467/Kconfig index b396340d12..02bdd664bf 100644 --- a/bsp/nuvoton/numaker-iot-m467/Kconfig +++ b/bsp/nuvoton/numaker-iot-m467/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" diff --git a/bsp/nuvoton/numaker-iot-m467/board/Kconfig b/bsp/nuvoton/numaker-iot-m467/board/Kconfig index bdbb46d7b9..052f927b55 100644 --- a/bsp/nuvoton/numaker-iot-m467/board/Kconfig +++ b/bsp/nuvoton/numaker-iot-m467/board/Kconfig @@ -110,7 +110,7 @@ menu "Hardware Drivers Config" config BOARD_USING_LCD_ILI9341 bool "LCD ILI9341 (over spi2)" - select RT_USING_TOUCH + select RT_USING_TOUCH select BSP_USING_SPI2 select BSP_USING_EADC select BSP_USING_EADC0 diff --git a/bsp/nuvoton/numaker-iot-m467/board/SConscript b/bsp/nuvoton/numaker-iot-m467/board/SConscript index c845376d01..9c29d8d3f1 100644 --- a/bsp/nuvoton/numaker-iot-m467/board/SConscript +++ b/bsp/nuvoton/numaker-iot-m467/board/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component from building import * @@ -17,3 +17,4 @@ CPPPATH = [cwd, cwd + '/NuPinConfig'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) Return('group') +') diff --git a/bsp/nuvoton/numaker-iot-m487/Kconfig b/bsp/nuvoton/numaker-iot-m487/Kconfig index b396340d12..02bdd664bf 100644 --- a/bsp/nuvoton/numaker-iot-m487/Kconfig +++ b/bsp/nuvoton/numaker-iot-m487/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" diff --git a/bsp/nuvoton/numaker-iot-m487/board/Kconfig b/bsp/nuvoton/numaker-iot-m487/board/Kconfig index 2f3bf4a475..8cca205915 100644 --- a/bsp/nuvoton/numaker-iot-m487/board/Kconfig +++ b/bsp/nuvoton/numaker-iot-m487/board/Kconfig @@ -109,7 +109,7 @@ menu "Hardware Drivers Config" config BOARD_USING_LCD_ILI9341 bool "LCD ILI9341 (over spi2)" - select RT_USING_TOUCH + select RT_USING_TOUCH select BSP_USING_SPI2 select BSP_USING_EADC select BSP_USING_EADC0 diff --git a/bsp/nuvoton/numaker-iot-m487/board/SConscript b/bsp/nuvoton/numaker-iot-m487/board/SConscript index 1cea397523..204cf25779 100644 --- a/bsp/nuvoton/numaker-iot-m487/board/SConscript +++ b/bsp/nuvoton/numaker-iot-m487/board/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component from building import * @@ -18,3 +18,4 @@ CPPPATH = [cwd, cwd + '/NuClockConfig', cwd + '/NuPinConfig'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) Return('group') +') diff --git a/bsp/nuvoton/numaker-iot-ma35d1/Kconfig b/bsp/nuvoton/numaker-iot-ma35d1/Kconfig index a78782d615..f41e7fa252 100644 --- a/bsp/nuvoton/numaker-iot-ma35d1/Kconfig +++ b/bsp/nuvoton/numaker-iot-ma35d1/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" @@ -19,7 +19,7 @@ config PKGS_DIR default "packages" config USE_MA35D1_AARCH32 - bool + bool default y source "$RTT_DIR/Kconfig" diff --git a/bsp/nuvoton/numaker-iot-ma35d1/SConstruct b/bsp/nuvoton/numaker-iot-ma35d1/SConstruct index 5143e3012d..e6f379c630 100644 --- a/bsp/nuvoton/numaker-iot-ma35d1/SConstruct +++ b/bsp/nuvoton/numaker-iot-ma35d1/SConstruct @@ -19,12 +19,12 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CCFLAGS = rtconfig.CFLAGS, - CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS, - CXXCOM = '$CXX -o $TARGET -c $CXXFLAGS $_CCCOMCOM $SOURCES') + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CCFLAGS = rtconfig.CFLAGS, + CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS, + CXXCOM = '$CXX -o $TARGET -c $CXXFLAGS $_CCCOMCOM $SOURCES') env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env['ASCOM'] = env['ASPPCOM'] diff --git a/bsp/nuvoton/numaker-iot-ma35d1/board/SConscript b/bsp/nuvoton/numaker-iot-ma35d1/board/SConscript index 38791565a2..f41e5a19a5 100644 --- a/bsp/nuvoton/numaker-iot-ma35d1/board/SConscript +++ b/bsp/nuvoton/numaker-iot-ma35d1/board/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component from building import * @@ -16,3 +16,4 @@ CPPPATH = [cwd, cwd + '/nutool_pincfg'] group = DefineGroup('board', src, depend = [''], CPPPATH = CPPPATH) Return('group') +') diff --git a/bsp/nuvoton/numaker-iot-ma35d1/preload/SConscript b/bsp/nuvoton/numaker-iot-ma35d1/preload/SConscript index 73123b415f..a17bbcde20 100644 --- a/bsp/nuvoton/numaker-iot-ma35d1/preload/SConscript +++ b/bsp/nuvoton/numaker-iot-ma35d1/preload/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component from building import * @@ -12,3 +12,4 @@ CPPPATH = [ cwd ] group = DefineGroup('board', src, depend = [''], CPPPATH = CPPPATH) Return('group') +') diff --git a/bsp/nuvoton/numaker-m032ki/Kconfig b/bsp/nuvoton/numaker-m032ki/Kconfig index b396340d12..02bdd664bf 100644 --- a/bsp/nuvoton/numaker-m032ki/Kconfig +++ b/bsp/nuvoton/numaker-m032ki/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" diff --git a/bsp/nuvoton/numaker-m032ki/board/SConscript b/bsp/nuvoton/numaker-m032ki/board/SConscript index 6ed8f178ba..49ab72e083 100644 --- a/bsp/nuvoton/numaker-m032ki/board/SConscript +++ b/bsp/nuvoton/numaker-m032ki/board/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component from building import * @@ -18,3 +18,4 @@ CPPPATH = [cwd, cwd + '/NuClockConfig', cwd + '/NuPinConfig'] group = DefineGroup('board', src, depend = [''], CPPPATH = CPPPATH) Return('group') +') diff --git a/bsp/nuvoton/numaker-m2354/Kconfig b/bsp/nuvoton/numaker-m2354/Kconfig index b396340d12..02bdd664bf 100644 --- a/bsp/nuvoton/numaker-m2354/Kconfig +++ b/bsp/nuvoton/numaker-m2354/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" diff --git a/bsp/nuvoton/numaker-m2354/board/SConscript b/bsp/nuvoton/numaker-m2354/board/SConscript index 6ed8f178ba..49ab72e083 100644 --- a/bsp/nuvoton/numaker-m2354/board/SConscript +++ b/bsp/nuvoton/numaker-m2354/board/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component from building import * @@ -18,3 +18,4 @@ CPPPATH = [cwd, cwd + '/NuClockConfig', cwd + '/NuPinConfig'] group = DefineGroup('board', src, depend = [''], CPPPATH = CPPPATH) Return('group') +') diff --git a/bsp/nuvoton/numaker-m467hj/Kconfig b/bsp/nuvoton/numaker-m467hj/Kconfig index b396340d12..02bdd664bf 100644 --- a/bsp/nuvoton/numaker-m467hj/Kconfig +++ b/bsp/nuvoton/numaker-m467hj/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" diff --git a/bsp/nuvoton/numaker-m467hj/board/SConscript b/bsp/nuvoton/numaker-m467hj/board/SConscript index c845376d01..9c29d8d3f1 100644 --- a/bsp/nuvoton/numaker-m467hj/board/SConscript +++ b/bsp/nuvoton/numaker-m467hj/board/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component from building import * @@ -17,3 +17,4 @@ CPPPATH = [cwd, cwd + '/NuPinConfig'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) Return('group') +') diff --git a/bsp/nuvoton/numaker-pfm-m487/Kconfig b/bsp/nuvoton/numaker-pfm-m487/Kconfig index b396340d12..02bdd664bf 100644 --- a/bsp/nuvoton/numaker-pfm-m487/Kconfig +++ b/bsp/nuvoton/numaker-pfm-m487/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" diff --git a/bsp/nuvoton/numaker-pfm-m487/board/SConscript b/bsp/nuvoton/numaker-pfm-m487/board/SConscript index 1cea397523..204cf25779 100644 --- a/bsp/nuvoton/numaker-pfm-m487/board/SConscript +++ b/bsp/nuvoton/numaker-pfm-m487/board/SConscript @@ -1,4 +1,4 @@ -# RT-Thread building script for component +# RT-Thread building script for component from building import * @@ -18,3 +18,4 @@ CPPPATH = [cwd, cwd + '/NuClockConfig', cwd + '/NuPinConfig'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) Return('group') +') diff --git a/bsp/nv32f100x/SConstruct b/bsp/nv32f100x/SConstruct index b943bd2ba9..8ed28aef6d 100644 --- a/bsp/nv32f100x/SConstruct +++ b/bsp/nv32f100x/SConstruct @@ -14,16 +14,16 @@ TARGET = 'rtthread-nv32f100x.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: - env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) - env.Replace(ARFLAGS = ['']) - env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) + env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) + env.Replace(ARFLAGS = ['']) + env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) Export('RTT_ROOT') Export('rtconfig') diff --git a/bsp/nv32f100x/app/SConscript b/bsp/nv32f100x/app/SConscript index 5260088eb3..54ddf66b2c 100644 --- a/bsp/nv32f100x/app/SConscript +++ b/bsp/nv32f100x/app/SConscript @@ -4,11 +4,11 @@ from building import * cwd = os.path.join(str(Dir('#')), 'app') -src = Glob('./src/*.c') +src = Glob('./src/*.c') path = [cwd + '/inc', - cwd + '/..', - ] + cwd + '/..', + ] group = DefineGroup('Applications', src, depend = [''], CPPPATH = path) diff --git a/bsp/nv32f100x/board/SConscript b/bsp/nv32f100x/board/SConscript index 90fe4bb007..dc45c3874a 100644 --- a/bsp/nv32f100x/board/SConscript +++ b/bsp/nv32f100x/board/SConscript @@ -3,9 +3,9 @@ Import('rtconfig') from building import * cwd = os.path.join(str(Dir('#')), 'board') -src = Glob('./src/*.c') +src = Glob('./src/*.c') path = [cwd + '/inc' - ] + ] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path) diff --git a/bsp/nv32f100x/lib/SConscript b/bsp/nv32f100x/lib/SConscript index d92d8ba176..896d33232b 100644 --- a/bsp/nv32f100x/lib/SConscript +++ b/bsp/nv32f100x/lib/SConscript @@ -3,11 +3,11 @@ Import('rtconfig') from building import * cwd = os.path.join(str(Dir('#')), 'lib') -src = Glob('./src/*.c') +src = Glob('./src/*.c') src += Glob('./src/*.s') path = [cwd + '/inc' - ] + ] CPPDEFINES = ['NV32', 'KEIL'] diff --git a/bsp/phytium/aarch32/Kconfig b/bsp/phytium/aarch32/Kconfig index cc9a3fe042..8293bc245d 100644 --- a/bsp/phytium/aarch32/Kconfig +++ b/bsp/phytium/aarch32/Kconfig @@ -38,14 +38,14 @@ menu "Standalone Setting" config TARGET_ARMV8_AARCH32 bool "Armv8 Aarch32" default y - + config USE_AARCH64_L1_TO_AARCH32 bool prompt "Use Aarch64 L1 to Aarch32 code" default y help Use the Aarch64 to Aarch32 mode function - + source "$STANDALONE_DIR/board/Kconfig" source "$STANDALONE_DIR/drivers/Kconfig" source "$STANDALONE_DIR/common/Kconfig" diff --git a/bsp/phytium/aarch32/applications/SConscript b/bsp/phytium/aarch32/applications/SConscript index 01eb940dfb..5206463fe9 100644 --- a/bsp/phytium/aarch32/applications/SConscript +++ b/bsp/phytium/aarch32/applications/SConscript @@ -3,7 +3,7 @@ Import('rtconfig') from building import * cwd = os.path.join(str(Dir('#')), 'applications') -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd, str(Dir('#'))] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/phytium/aarch64/applications/SConscript b/bsp/phytium/aarch64/applications/SConscript index 01eb940dfb..5206463fe9 100644 --- a/bsp/phytium/aarch64/applications/SConscript +++ b/bsp/phytium/aarch64/applications/SConscript @@ -3,7 +3,7 @@ Import('rtconfig') from building import * cwd = os.path.join(str(Dir('#')), 'applications') -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd, str(Dir('#'))] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/phytium/board/SConscript b/bsp/phytium/board/SConscript index c86f3413fb..0cf8e84721 100644 --- a/bsp/phytium/board/SConscript +++ b/bsp/phytium/board/SConscript @@ -2,21 +2,21 @@ from building import * cwd = GetCurrentDir() src = Glob('*.S') -src += Glob('*.c') +src += Glob('*.c') if GetDepend(['TARGET_E2000']): if GetDepend(['TARGET_E2000Q']): - src += Glob(cwd + '/e2000/q/parameters.c') + src += Glob(cwd + '/e2000/q/parameters.c') elif GetDepend(['TARGET_E2000D']): - src += Glob(cwd + '/e2000/d/parameters.c') + src += Glob(cwd + '/e2000/d/parameters.c') elif GetDepend(['TARGET_E2000S']): - src += Glob(cwd + '/e2000/s/parameters.c') + src += Glob(cwd + '/e2000/s/parameters.c') if GetDepend(['TARGET_F2000_4']): - src += Glob(cwd + '/d2000/parameters.c') + src += Glob(cwd + '/d2000/parameters.c') if GetDepend(['TARGET_D2000']): - src += Glob(cwd + '/ft2004/parameters.c') + src += Glob(cwd + '/ft2004/parameters.c') CPPPATH = [cwd] diff --git a/bsp/phytium/libraries/SConscript b/bsp/phytium/libraries/SConscript index afb3769ac9..e387424fab 100644 --- a/bsp/phytium/libraries/SConscript +++ b/bsp/phytium/libraries/SConscript @@ -19,54 +19,54 @@ if GetDepend(['TARGET_ARMV8_AARCH32']): path += [STANDALONE_DIR + '/arch/armv8/aarch32'] elif GetDepend(['TARGET_ARMV8_AARCH64']): src += Glob(STANDALONE_DIR+'/arch/armv8/aarch64/*.c') + Glob(STANDALONE_DIR+'/arch/armv8/aarch64/gcc/*.S') - path += [STANDALONE_DIR + '/arch/armv8/aarch64'] + path += [STANDALONE_DIR + '/arch/armv8/aarch64'] # board src += Glob(STANDALONE_DIR+'/board/common/*.c') + Glob(STANDALONE_DIR+'/board/common/*.S') -path += [STANDALONE_DIR + '/board/common'] +path += [STANDALONE_DIR + '/board/common'] if GetDepend(['TARGET_F2000_4']): src += Glob(STANDALONE_DIR+'/board/ft2004/*.c') - path += [STANDALONE_DIR + '/board/ft2004'] + path += [STANDALONE_DIR + '/board/ft2004'] if GetDepend(['TARGET_E2000']): src += Glob(STANDALONE_DIR+'/board/e2000/*.c') - path += [STANDALONE_DIR + '/board/e2000'] + path += [STANDALONE_DIR + '/board/e2000'] if GetDepend(['TARGET_E2000Q']): src += Glob(STANDALONE_DIR+'/board/e2000/q/*.c') - path += [STANDALONE_DIR + '/board/e2000/q'] + path += [STANDALONE_DIR + '/board/e2000/q'] if GetDepend(['TARGET_E2000D']): src += Glob(STANDALONE_DIR+'/board/e2000/d/*.c') - path += [STANDALONE_DIR + '/board/e2000/d'] - + path += [STANDALONE_DIR + '/board/e2000/d'] + if GetDepend(['ARGET_E2000S']): src += Glob(STANDALONE_DIR+'/board/e2000/s/*.c') - path += [STANDALONE_DIR + '/board/e2000/s'] - + path += [STANDALONE_DIR + '/board/e2000/s'] + if GetDepend(['TARGET_D2000']): src += Glob(STANDALONE_DIR+'/board/d2000/*.c') - path += [STANDALONE_DIR + '/board/d2000'] + path += [STANDALONE_DIR + '/board/d2000'] # driver ## serial if GetDepend(['ENABLE_Pl011_UART']): src += Glob(STANDALONE_DIR+'/drivers/serial/fpl011/*.c') - path += [STANDALONE_DIR + '/drivers/serial/fpl011'] + path += [STANDALONE_DIR + '/drivers/serial/fpl011'] ## gicv3 if GetDepend(['ENABLE_GICV3']): src += Glob(STANDALONE_DIR+'/drivers/gic/fgic/*.c') + Glob(STANDALONE_DIR+'/drivers/gic/fgic/*.S') - path += [STANDALONE_DIR + '/drivers/gic/fgic'] + path += [STANDALONE_DIR + '/drivers/gic/fgic'] # phytium ports rt-thread drivers PORT_DRV_DIR = cwd + '/drivers' src += Glob(PORT_DRV_DIR + '/*.S') -src += Glob(PORT_DRV_DIR + '/*.c') +src += Glob(PORT_DRV_DIR + '/*.c') ASFLAGS = '' group = DefineGroup('FT_DRIVER', src, depend=[ diff --git a/bsp/phytium/libraries/drivers/Kconfig b/bsp/phytium/libraries/drivers/Kconfig index 3e264eedfd..9714fdd098 100644 --- a/bsp/phytium/libraries/drivers/Kconfig +++ b/bsp/phytium/libraries/drivers/Kconfig @@ -11,7 +11,7 @@ menu "On-chip Peripheral Drivers" config RT_USING_UART1 bool "Enable UART1" default y - + config RT_USING_UART0 bool "Enable UART0" default n diff --git a/bsp/phytium/libraries/standalone/board/Kconfig b/bsp/phytium/libraries/standalone/board/Kconfig index c8fee782a4..f0a7ec4b70 100644 --- a/bsp/phytium/libraries/standalone/board/Kconfig +++ b/bsp/phytium/libraries/standalone/board/Kconfig @@ -11,15 +11,15 @@ menu "Board Configuration" config TARGET_D2000 bool "D2000" - + config TARGET_E2000Q bool "E2000Q" select TARGET_E2000 - + config TARGET_E2000D bool "E2000D" select TARGET_E2000 - + config TARGET_E2000S bool "E2000S" select TARGET_E2000 @@ -43,7 +43,7 @@ menu "Board Configuration" config DEFAULT_DEBUG_PRINT_UART2 bool "Use uart2" endchoice # DEBUG_PRINT_UART - + endmenu diff --git a/bsp/phytium/libraries/standalone/common/Kconfig b/bsp/phytium/libraries/standalone/common/Kconfig index 3ffaf15c65..aa2fd1c471 100644 --- a/bsp/phytium/libraries/standalone/common/Kconfig +++ b/bsp/phytium/libraries/standalone/common/Kconfig @@ -31,7 +31,7 @@ config USE_DEFAULT_INTERRUPT_CONFIG bool prompt "Use default interrupt configuration" default y - help + help "If this option is not selected, core0 is used as the main core by default and all interrupt driver modules are initialized. Non-0 core initializes only the necessary interrupt driver modules. If this option is selected, the developer needs to initiate each module independently " if USE_DEFAULT_INTERRUPT_CONFIG choice INTERRUPT_ROLE_SELECT @@ -41,8 +41,8 @@ config USE_DEFAULT_INTERRUPT_CONFIG "Select Interrupt role" config INTERRUPT_ROLE_MASTER - bool "use master role" - + bool "use master role" + config INTERRUPT_ROLE_SLAVE bool "use slave role" @@ -61,4 +61,4 @@ config BOOTUP_DEBUG_PRINTS default n help Enable Bootup debug printing - + diff --git a/bsp/phytium/libraries/standalone/drivers/Kconfig b/bsp/phytium/libraries/standalone/drivers/Kconfig index 69f79376af..27388c475c 100644 --- a/bsp/phytium/libraries/standalone/drivers/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/Kconfig @@ -27,7 +27,7 @@ config USE_GIC default y help Include Generic Interrupt Controllor - + if USE_GIC source "$STANDALONE_DIR/drivers/gic/Kconfig" endif @@ -38,7 +38,7 @@ config USE_SERIAL default n help Include serial modules and enable serial - + if USE_SERIAL source "$STANDALONE_DIR/drivers/serial/Kconfig" endif @@ -150,18 +150,18 @@ config USE_DMA prompt "Use DMA" default n help - Include DMA + Include DMA if USE_DMA source "$STANDALONE_DIR/drivers/dma/Kconfig" endif - + config USE_NAND bool prompt "Use NAND" help Include NAND - + if USE_NAND source "$STANDALONE_DIR/drivers/nand/Kconfig" endif @@ -187,7 +187,7 @@ config USE_SATA if USE_SATA source "$STANDALONE_DIR/drivers/sata/Kconfig" endif - + config USE_USB bool prompt "Use USB" @@ -197,8 +197,8 @@ config USE_USB if USE_USB source "$STANDALONE_DIR/drivers/usb/Kconfig" - endif - + endif + config USE_ADC bool prompt "Use ADC" @@ -209,7 +209,7 @@ config USE_ADC if USE_ADC source "$STANDALONE_DIR/drivers/adc/Kconfig" endif - + config USE_PWM bool prompt "Use PWM" diff --git a/bsp/phytium/libraries/standalone/drivers/adc/Kconfig b/bsp/phytium/libraries/standalone/drivers/adc/Kconfig index 58f7dd8a6f..15ffeaa8fe 100644 --- a/bsp/phytium/libraries/standalone/drivers/adc/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/adc/Kconfig @@ -4,7 +4,7 @@ menu "ADC Configuration" bool prompt "Use FADC" default n - + endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/can/Kconfig b/bsp/phytium/libraries/standalone/drivers/can/Kconfig index a6b59e8753..c3e16b4834 100644 --- a/bsp/phytium/libraries/standalone/drivers/can/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/can/Kconfig @@ -13,6 +13,6 @@ menu "CAN Configuration" help use canfd protocol endif - + endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/dma/Kconfig b/bsp/phytium/libraries/standalone/drivers/dma/Kconfig index 9ed7f94848..16336f66e1 100644 --- a/bsp/phytium/libraries/standalone/drivers/dma/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/dma/Kconfig @@ -2,9 +2,9 @@ config ENABLE_FGDMA bool prompt "Use FGDMA" - default n + default n config ENABLE_FDDMA bool prompt "Use FDDMA" - default n \ No newline at end of file + default n diff --git a/bsp/phytium/libraries/standalone/drivers/eth/Kconfig b/bsp/phytium/libraries/standalone/drivers/eth/Kconfig index f041d27764..c9531733fe 100644 --- a/bsp/phytium/libraries/standalone/drivers/eth/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/eth/Kconfig @@ -4,11 +4,11 @@ menu "Eth Configuration" bool prompt "Use FXMAC" default n - + config ENABLE_FGMAC bool prompt "Use FGMAC" - default n + default n if ENABLE_FGMAC source "$STANDALONE_DIR/drivers/eth/fgmac/Kconfig" @@ -17,6 +17,6 @@ menu "Eth Configuration" if ENABLE_FXMAC source "$STANDALONE_DIR/drivers/eth/fxmac/Kconfig" endif - + endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/gic/Kconfig b/bsp/phytium/libraries/standalone/drivers/gic/Kconfig index 9946994e6d..1bf1dc91df 100644 --- a/bsp/phytium/libraries/standalone/drivers/gic/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/gic/Kconfig @@ -3,4 +3,4 @@ prompt "Use Generic Interrupt Controller v3" default y - \ No newline at end of file + diff --git a/bsp/phytium/libraries/standalone/drivers/i2c/Kconfig b/bsp/phytium/libraries/standalone/drivers/i2c/Kconfig index 1195673525..6f34251dd2 100644 --- a/bsp/phytium/libraries/standalone/drivers/i2c/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/i2c/Kconfig @@ -4,5 +4,5 @@ config USE_FI2C default n help Include FI2C driver component - - \ No newline at end of file + + diff --git a/bsp/phytium/libraries/standalone/drivers/ipc/Kconfig b/bsp/phytium/libraries/standalone/drivers/ipc/Kconfig index 2012b165d2..92b76a91f6 100644 --- a/bsp/phytium/libraries/standalone/drivers/ipc/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/ipc/Kconfig @@ -5,5 +5,5 @@ config ENABLE_FSEMAPHORE depends on TARGET_E2000S || TARGET_E2000D || TARGET_E2000Q help Select FSemaphore driver component - - \ No newline at end of file + + diff --git a/bsp/phytium/libraries/standalone/drivers/mmc/Kconfig b/bsp/phytium/libraries/standalone/drivers/mmc/Kconfig index 4bf40f4a68..31805318a8 100644 --- a/bsp/phytium/libraries/standalone/drivers/mmc/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/mmc/Kconfig @@ -15,5 +15,5 @@ config ENABLE_FSDIO depends on TARGET_E2000S || TARGET_E2000D || TARGET_E2000Q help Select FSdio driver component - - \ No newline at end of file + + diff --git a/bsp/phytium/libraries/standalone/drivers/nand/Kconfig b/bsp/phytium/libraries/standalone/drivers/nand/Kconfig index 4638b049f9..2740b716bf 100644 --- a/bsp/phytium/libraries/standalone/drivers/nand/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/nand/Kconfig @@ -1,33 +1,33 @@ menu "NAND Configuration" menu "FNAND ip config" - choice - prompt "choice fnand driver" + choice + prompt "choice fnand driver" config ENABLE_FNAND bool prompt "Use FNAND" - - if ENABLE_FNAND - config FNAND_COMMON_DEBUG_EN - bool - prompt "Use FNAND common mode debug" - - config FNAND_DMA_DEBUG_EN - bool - prompt "Use FNAND DMA mode debug" - - config FNAND_TOGGLE_DEBUG_EN - bool - prompt "Use FNAND toggle mode debug" - config FNAND_ONFI_DEBUG_EN - bool - prompt "Use FNAND onfi mode debug" + if ENABLE_FNAND + config FNAND_COMMON_DEBUG_EN + bool + prompt "Use FNAND common mode debug" - endif + config FNAND_DMA_DEBUG_EN + bool + prompt "Use FNAND DMA mode debug" - endchoice - endmenu + config FNAND_TOGGLE_DEBUG_EN + bool + prompt "Use FNAND toggle mode debug" + + config FNAND_ONFI_DEBUG_EN + bool + prompt "Use FNAND onfi mode debug" + + endif + + endchoice + endmenu endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/pcie/Kconfig b/bsp/phytium/libraries/standalone/drivers/pcie/Kconfig index c4476fa491..5d00a5bed0 100644 --- a/bsp/phytium/libraries/standalone/drivers/pcie/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/pcie/Kconfig @@ -4,6 +4,6 @@ menu "Pcie Configuration" bool prompt "Use F_PCIE" default n - + endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/pin/fgpio/Kconfig b/bsp/phytium/libraries/standalone/drivers/pin/fgpio/Kconfig index 02c30d70d6..0d8106298f 100644 --- a/bsp/phytium/libraries/standalone/drivers/pin/fgpio/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/pin/fgpio/Kconfig @@ -3,5 +3,5 @@ config ENABLE_FGPIO bool prompt "Use FGPIO" default n - - + + diff --git a/bsp/phytium/libraries/standalone/drivers/pwm/Kconfig b/bsp/phytium/libraries/standalone/drivers/pwm/Kconfig index 5a6185cf4e..992039d544 100644 --- a/bsp/phytium/libraries/standalone/drivers/pwm/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/pwm/Kconfig @@ -3,7 +3,7 @@ menu "FPWM Configuration" bool prompt "Use FPWM" default n - + endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/qspi/Kconfig b/bsp/phytium/libraries/standalone/drivers/qspi/Kconfig index a16b375482..7e7a9e54c2 100644 --- a/bsp/phytium/libraries/standalone/drivers/qspi/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/qspi/Kconfig @@ -2,7 +2,7 @@ menu "Qspi Configuration" config USE_FQSPI bool prompt "Use FQSPI" - default n - + default n + endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/rtc/Kconfig b/bsp/phytium/libraries/standalone/drivers/rtc/Kconfig index 63cedcbe5c..9919d9d29f 100644 --- a/bsp/phytium/libraries/standalone/drivers/rtc/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/rtc/Kconfig @@ -3,7 +3,7 @@ menu "FRTC Configuration" bool prompt "Use FRTC" default n - + endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/sata/Kconfig b/bsp/phytium/libraries/standalone/drivers/sata/Kconfig index f2c51a66d4..594bd36606 100644 --- a/bsp/phytium/libraries/standalone/drivers/sata/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/sata/Kconfig @@ -3,7 +3,7 @@ menu "FSATA Configuration" bool prompt "Use FSATA" default n - + endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/serial/Kconfig b/bsp/phytium/libraries/standalone/drivers/serial/Kconfig index e84c41301c..d01d698f98 100644 --- a/bsp/phytium/libraries/standalone/drivers/serial/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/serial/Kconfig @@ -4,7 +4,7 @@ menu "Usart Configuration" bool prompt "Use Pl011 uart" default n - + endmenu diff --git a/bsp/phytium/libraries/standalone/drivers/spi/Kconfig b/bsp/phytium/libraries/standalone/drivers/spi/Kconfig index 0e35640055..2133ced9fb 100644 --- a/bsp/phytium/libraries/standalone/drivers/spi/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/spi/Kconfig @@ -7,5 +7,5 @@ config USE_FSPIM depends on TARGET_F2000_4 || TARGET_D2000 || TARGET_E2000S || TARGET_E2000D || TARGET_E2000Q help Select FSPIM driver component - - + + diff --git a/bsp/phytium/libraries/standalone/drivers/usb/Kconfig b/bsp/phytium/libraries/standalone/drivers/usb/Kconfig index 18d0f459d8..3ecf7c474c 100644 --- a/bsp/phytium/libraries/standalone/drivers/usb/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/usb/Kconfig @@ -5,5 +5,5 @@ config ENABLE_USB_FXHCI depends on USE_USB help Select USB FUSB_HC_XHCI Host driver component - - + + diff --git a/bsp/phytium/libraries/standalone/drivers/watchdog/Kconfig b/bsp/phytium/libraries/standalone/drivers/watchdog/Kconfig index 5da173ab68..5d2860d27b 100644 --- a/bsp/phytium/libraries/standalone/drivers/watchdog/Kconfig +++ b/bsp/phytium/libraries/standalone/drivers/watchdog/Kconfig @@ -4,7 +4,7 @@ menu "FWDT Configuration" bool prompt "Use FWDT" default n - + endmenu diff --git a/bsp/qemu-virt64-aarch64/SConstruct b/bsp/qemu-virt64-aarch64/SConstruct index 54f12e3636..70cd98c4f4 100644 --- a/bsp/qemu-virt64-aarch64/SConstruct +++ b/bsp/qemu-virt64-aarch64/SConstruct @@ -17,11 +17,11 @@ TRACE_CONFIG = "" content = "" with open("rtconfig.h") as f: - for line in f.readlines(): - if line.find("RT_BACKTRACE_FUNCTION_NAME") != -1: - for token in line.split(" "): - if re.match(r'RT_BACKTRACE_FUNCTION_NAME$', token, flags=0): - TRACE_CONFIG = " " + for line in f.readlines(): + if line.find("RT_BACKTRACE_FUNCTION_NAME") != -1: + for token in line.split(" "): + if re.match(r'RT_BACKTRACE_FUNCTION_NAME$', token, flags=0): + TRACE_CONFIG = " " DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], diff --git a/bsp/qemu-virt64-riscv/Kconfig b/bsp/qemu-virt64-riscv/Kconfig index 42af05ac9b..baba24be4a 100644 --- a/bsp/qemu-virt64-riscv/Kconfig +++ b/bsp/qemu-virt64-riscv/Kconfig @@ -41,7 +41,7 @@ if ENABLE_VECTOR choice prompt "Vector Registers Length in Bits" default ARCH_VECTOR_VLEN_128 - + config ARCH_VECTOR_VLEN_128 bool "128" diff --git a/bsp/qemu-virt64-riscv/applications/SConscript b/bsp/qemu-virt64-riscv/applications/SConscript index 4940e6bc01..7e4f7d3ac3 100644 --- a/bsp/qemu-virt64-riscv/applications/SConscript +++ b/bsp/qemu-virt64-riscv/applications/SConscript @@ -1,7 +1,7 @@ from building import * cwd = GetCurrentDir() -src = Glob('*.c') + Glob('*.cpp') +src = Glob('*.c') + Glob('*.cpp') CPPPATH = [cwd] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/qemu-virt64-riscv/applications/test/SConscript b/bsp/qemu-virt64-riscv/applications/test/SConscript index 72d733c0ad..2597249cbd 100644 --- a/bsp/qemu-virt64-riscv/applications/test/SConscript +++ b/bsp/qemu-virt64-riscv/applications/test/SConscript @@ -1,7 +1,7 @@ from building import * cwd = GetCurrentDir() -src = Glob('*.c') + Glob('*.cpp') +src = Glob('*.c') + Glob('*.cpp') CPPPATH = [cwd] group = DefineGroup('Testcase', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/qemu-virt64-riscv/applications/test/test_vector/SConscript b/bsp/qemu-virt64-riscv/applications/test/test_vector/SConscript index 92c4259bdb..0827b048b2 100644 --- a/bsp/qemu-virt64-riscv/applications/test/test_vector/SConscript +++ b/bsp/qemu-virt64-riscv/applications/test/test_vector/SConscript @@ -1,7 +1,7 @@ from building import * cwd = GetCurrentDir() -src = Glob('*.c') + Glob('*.cpp') +src = Glob('*.c') + Glob('*.cpp') CPPPATH = [cwd] group = DefineGroup('Vector', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/raspberry-pi/raspi3-32/driver/Kconfig b/bsp/raspberry-pi/raspi3-32/driver/Kconfig index aaa7110f1d..c7e7c85597 100644 --- a/bsp/raspberry-pi/raspi3-32/driver/Kconfig +++ b/bsp/raspberry-pi/raspi3-32/driver/Kconfig @@ -14,7 +14,7 @@ menu "Hardware Drivers Config" bool "Enabel UART 1" default n endif - + config BSP_USING_PIN bool "Using PIN" select RT_USING_PIN @@ -52,8 +52,8 @@ menu "Hardware Drivers Config" bool "Enable SPI" select RT_USING_SPI default n - - if BSP_USING_SPI + + if BSP_USING_SPI config BSP_USING_SPI0_BUS bool "Enable SPI0 BUS" default n @@ -83,7 +83,7 @@ menu "Hardware Drivers Config" select RT_USING_ALARM default n endif - + menuconfig BSP_USING_SDIO bool "Enable SDIO" select RT_USING_SDIO diff --git a/bsp/raspberry-pi/raspi3-64/driver/Kconfig b/bsp/raspberry-pi/raspi3-64/driver/Kconfig index 15f9fb94c9..05c0569e5b 100644 --- a/bsp/raspberry-pi/raspi3-64/driver/Kconfig +++ b/bsp/raspberry-pi/raspi3-64/driver/Kconfig @@ -14,7 +14,7 @@ menu "Hardware Drivers Config" bool "Enabel UART 1" default n endif - + config BSP_USING_PIN bool "Using PIN" select RT_USING_PIN @@ -57,8 +57,8 @@ menu "Hardware Drivers Config" bool "Enable SPI" select RT_USING_SPI default n - - if BSP_USING_SPI + + if BSP_USING_SPI config BSP_USING_SPI0_BUS bool "Enable SPI0 BUS" default n @@ -88,7 +88,7 @@ menu "Hardware Drivers Config" select RT_USING_ALARM default n endif - + menuconfig BSP_USING_SDIO bool "Enable SDIO" select RT_USING_SDIO diff --git a/bsp/raspberry-pi/raspi4-32/driver/Kconfig b/bsp/raspberry-pi/raspi4-32/driver/Kconfig index 28c08547f2..558fb59fc9 100644 --- a/bsp/raspberry-pi/raspi4-32/driver/Kconfig +++ b/bsp/raspberry-pi/raspi4-32/driver/Kconfig @@ -31,7 +31,7 @@ menu "Hardware Drivers Config" bool "Enabel UART 5" default n endif - + menuconfig BSP_USING_GIC bool "Enable GIC" select RT_USING_GIC @@ -54,8 +54,8 @@ menu "Hardware Drivers Config" bool "Enable SPI" select RT_USING_SPI default n - - if BSP_USING_SPI + + if BSP_USING_SPI config BSP_USING_SPI0_BUS bool "Enable SPI0 BUS" default n @@ -74,7 +74,7 @@ menu "Hardware Drivers Config" select RT_USING_I2C default n - if BSP_USING_I2C + if BSP_USING_I2C config BSP_USING_I2C0 bool "Enable I2C0 BUS" default n @@ -138,7 +138,7 @@ menu "Hardware Drivers Config" select RT_USING_ALARM default n endif - + menuconfig BSP_USING_SDIO bool "Enable SDIO" select RT_USING_SDIO diff --git a/bsp/raspberry-pi/raspi4-64/driver/Kconfig b/bsp/raspberry-pi/raspi4-64/driver/Kconfig index ec2a36d289..9209c0ae24 100644 --- a/bsp/raspberry-pi/raspi4-64/driver/Kconfig +++ b/bsp/raspberry-pi/raspi4-64/driver/Kconfig @@ -79,7 +79,7 @@ menu "Hardware Drivers Config" select RT_USING_ALARM default n endif - + menuconfig BSP_USING_SDIO bool "Enable SDIO" select RT_USING_SDIO diff --git a/bsp/raspberry-pico/Kconfig b/bsp/raspberry-pico/Kconfig index b8ba681346..d671dc2574 100644 --- a/bsp/raspberry-pico/Kconfig +++ b/bsp/raspberry-pico/Kconfig @@ -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" diff --git a/bsp/raspberry-pico/SConstruct b/bsp/raspberry-pico/SConstruct index 26b423a1d8..6e0d0b32f3 100644 --- a/bsp/raspberry-pico/SConstruct +++ b/bsp/raspberry-pico/SConstruct @@ -14,11 +14,11 @@ TARGET = 'rtthread-pico.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - CXX = rtconfig.CXX, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + CXX = rtconfig.CXX, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/raspberry-pico/board/ports/lcd/SConscript b/bsp/raspberry-pico/board/ports/lcd/SConscript index ab60ebfecf..690efb50f1 100644 --- a/bsp/raspberry-pico/board/ports/lcd/SConscript +++ b/bsp/raspberry-pico/board/ports/lcd/SConscript @@ -4,7 +4,7 @@ import os cwd = GetCurrentDir() src = ['drv_lcd.c'] CPPPATH = [cwd] - + group = DefineGroup('Drivers', src, depend = ['BSP_USING_LVGL'], CPPPATH = CPPPATH) Return('group') diff --git a/bsp/raspberry-pico/drivers/SConscript b/bsp/raspberry-pico/drivers/SConscript index 9c96da4809..14a3ad69d0 100644 --- a/bsp/raspberry-pico/drivers/SConscript +++ b/bsp/raspberry-pico/drivers/SConscript @@ -1,7 +1,7 @@ from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/raspberry-pico/libraries/Kconfig b/bsp/raspberry-pico/libraries/Kconfig index b19e6f25fe..4aea48c614 100644 --- a/bsp/raspberry-pico/libraries/Kconfig +++ b/bsp/raspberry-pico/libraries/Kconfig @@ -5,7 +5,7 @@ config SOC_RP2040 select SOC_SERIES_RP2040_PICO select RT_USING_COMPONENTS_INIT default y - + menu "Onboard Peripheral Drivers" config BSP_USING_LVGL @@ -20,6 +20,6 @@ menu "Onboard Peripheral Drivers" select PKG_USING_LV_MUSIC_DEMO default y endif -endmenu +endmenu -endmenu +endmenu diff --git a/bsp/raspberry-pico/libraries/SConscript b/bsp/raspberry-pico/libraries/SConscript index f0102b2cb5..c7d873a664 100644 --- a/bsp/raspberry-pico/libraries/SConscript +++ b/bsp/raspberry-pico/libraries/SConscript @@ -73,7 +73,7 @@ path = [ cwd + '/pico-sdk/src/rp2_common/hardware_dma/include', cwd + '/pico-sdk/src/rp2_common/hardware_spi/include', cwd + '/pico-sdk/src/rp2_common/hardware_i2c/include', - cwd + '/pico-sdk/src/rp2_common/hardware_pwm/include', + cwd + '/pico-sdk/src/rp2_common/hardware_pwm/include', cwd + '/pico-sdk/src/rp2_common/hardware_divider/include', cwd + '/pico-sdk/src/common/pico_time/include', cwd + '/pico-sdk/src/rp2_common/hardware_timer/include', diff --git a/bsp/renesas/ebf_qi_min_6m5/Kconfig b/bsp/renesas/ebf_qi_min_6m5/Kconfig index 061dbecbd3..006f89db58 100644 --- a/bsp/renesas/ebf_qi_min_6m5/Kconfig +++ b/bsp/renesas/ebf_qi_min_6m5/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" @@ -17,7 +17,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + config ENV_DIR string option env="ENV_ROOT" diff --git a/bsp/renesas/libraries/HAL_Drivers/SConscript b/bsp/renesas/libraries/HAL_Drivers/SConscript index b498af7397..2c137fe107 100644 --- a/bsp/renesas/libraries/HAL_Drivers/SConscript +++ b/bsp/renesas/libraries/HAL_Drivers/SConscript @@ -29,7 +29,7 @@ if GetDepend(['BSP_USING_I2C', 'RT_USING_I2C_BITOPS']): if GetDepend('BSP_USING_I2C0') or GetDepend('BSP_USING_I2C1'): src += ['drv_soft_i2c.c'] -if GetDepend(['BSP_USING_I2C', 'BSP_USING_HW_I2C']): +if GetDepend(['BSP_USING_I2C', 'BSP_USING_HW_I2C']): src += ['drv_i2c.c'] if GetDepend(['BSP_USING_SPI']): diff --git a/bsp/renesas/libraries/Kconfig b/bsp/renesas/libraries/Kconfig index 0ccb06a64a..c36e192970 100644 --- a/bsp/renesas/libraries/Kconfig +++ b/bsp/renesas/libraries/Kconfig @@ -31,4 +31,4 @@ config SOC_SERIES_R7FA4M2 bool select ARCH_ARM_CORTEX_M4 select SOC_FAMILY_RENESAS - default n \ No newline at end of file + default n diff --git a/bsp/renesas/libraries/bsp-template/Kconfig b/bsp/renesas/libraries/bsp-template/Kconfig index 061dbecbd3..006f89db58 100644 --- a/bsp/renesas/libraries/bsp-template/Kconfig +++ b/bsp/renesas/libraries/bsp-template/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" @@ -17,7 +17,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + config ENV_DIR string option env="ENV_ROOT" diff --git a/bsp/renesas/ra2l1-cpk/Kconfig b/bsp/renesas/ra2l1-cpk/Kconfig index 061dbecbd3..006f89db58 100644 --- a/bsp/renesas/ra2l1-cpk/Kconfig +++ b/bsp/renesas/ra2l1-cpk/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" @@ -17,7 +17,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + config ENV_DIR string option env="ENV_ROOT" diff --git a/bsp/renesas/ra2l1-cpk/board/Kconfig b/bsp/renesas/ra2l1-cpk/board/Kconfig index e20cf3558d..c1113b4bc7 100644 --- a/bsp/renesas/ra2l1-cpk/board/Kconfig +++ b/bsp/renesas/ra2l1-cpk/board/Kconfig @@ -197,7 +197,7 @@ menu "Hardware Drivers Config" bool "Enable SPI BUS" default n select RT_USING_SPI - if BSP_USING_SPI + if BSP_USING_SPI config BSP_SPI_USING_DTC_DMA bool "Enable SPI DTC transfers data without using the CPU." default n @@ -205,7 +205,7 @@ menu "Hardware Drivers Config" config BSP_USING_SPI0 bool "Enable SPI0 BUS" default n - + config BSP_USING_SPI1 bool "Enable SPI1 BUS" default n @@ -239,7 +239,7 @@ menu "Hardware Drivers Config" config BSP_USING_PWM0 bool "Enable GPT0 (32-Bits) output PWM" default n - + config BSP_USING_PWM1 bool "Enable GPT1 (32-Bits) output PWM" default n diff --git a/bsp/renesas/ra4m2-eco/Kconfig b/bsp/renesas/ra4m2-eco/Kconfig index 061dbecbd3..006f89db58 100644 --- a/bsp/renesas/ra4m2-eco/Kconfig +++ b/bsp/renesas/ra4m2-eco/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" @@ -17,7 +17,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + config ENV_DIR string option env="ENV_ROOT" diff --git a/bsp/renesas/ra4m2-eco/board/Kconfig b/bsp/renesas/ra4m2-eco/board/Kconfig index 39c6445e2f..ea84a100e2 100644 --- a/bsp/renesas/ra4m2-eco/board/Kconfig +++ b/bsp/renesas/ra4m2-eco/board/Kconfig @@ -48,7 +48,7 @@ menu "Hardware Drivers Config" depends on RT_USING_SERIAL_V2 default 0 endif - + menuconfig BSP_USING_UART1 bool "Enable UART1" default n @@ -75,7 +75,7 @@ menu "Hardware Drivers Config" depends on RT_USING_SERIAL_V2 default 0 endif - + menuconfig BSP_USING_UART2 bool "Enable UART2" default n @@ -102,7 +102,7 @@ menu "Hardware Drivers Config" depends on RT_USING_SERIAL_V2 default 0 endif - + menuconfig BSP_USING_UART3 bool "Enable UART3" default n @@ -129,7 +129,7 @@ menu "Hardware Drivers Config" depends on RT_USING_SERIAL_V2 default 0 endif - + menuconfig BSP_USING_UART4 bool "Enable UART4" default n @@ -156,7 +156,7 @@ menu "Hardware Drivers Config" depends on RT_USING_SERIAL_V2 default 0 endif - + menuconfig BSP_USING_UART9 bool "Enable UART9" default n @@ -184,24 +184,24 @@ menu "Hardware Drivers Config" default 0 endif endif - + menuconfig BSP_USING_SPI bool "Enable SPI" default n select RT_USING_SPI if BSP_USING_SPI - config BSP_SPI_USING_DTC_DMA + config BSP_SPI_USING_DTC_DMA bool "Enable SPI DTC transfers data without using the CPU." default n config BSP_USING_SPI0 bool "Enable SPI0 BUS" default n - + config BSP_USING_SPI1 bool "Enable SPI1 BUS" default n - + config BSP_USING_SCI_SPI0 bool "Enable SCI SPI0 BUS" default n @@ -220,9 +220,9 @@ menu "Hardware Drivers Config" config BSP_USING_SCI_SPI9 bool "Enable SCI SPI9 BUS" default n - + endif - endmenu + endmenu menu "Board extended module Drivers" endmenu diff --git a/bsp/renesas/ra6m3-ek/Kconfig b/bsp/renesas/ra6m3-ek/Kconfig index 061dbecbd3..006f89db58 100644 --- a/bsp/renesas/ra6m3-ek/Kconfig +++ b/bsp/renesas/ra6m3-ek/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" @@ -17,7 +17,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + config ENV_DIR string option env="ENV_ROOT" diff --git a/bsp/renesas/ra6m4-cpk/Kconfig b/bsp/renesas/ra6m4-cpk/Kconfig index 061dbecbd3..006f89db58 100644 --- a/bsp/renesas/ra6m4-cpk/Kconfig +++ b/bsp/renesas/ra6m4-cpk/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" @@ -17,7 +17,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + config ENV_DIR string option env="ENV_ROOT" diff --git a/bsp/renesas/ra6m4-cpk/board/Kconfig b/bsp/renesas/ra6m4-cpk/board/Kconfig index 89cc285b20..2b9729583c 100644 --- a/bsp/renesas/ra6m4-cpk/board/Kconfig +++ b/bsp/renesas/ra6m4-cpk/board/Kconfig @@ -8,7 +8,7 @@ menu "Hardware Drivers Config" default y menu "Onboard Peripheral Drivers" - config BSP_USING_SEGGER_RTT_CONSOLE + config BSP_USING_SEGGER_RTT_CONSOLE bool "Enable SEGGER-RTT for console" select PKG_USING_SEGGER_RTT default n @@ -333,7 +333,7 @@ menu "Hardware Drivers Config" bool "Enable SPI BUS" default n select RT_USING_SPI - if BSP_USING_SPI + if BSP_USING_SPI config BSP_SPI_USING_DTC_DMA bool "Enable SPI DTC transfers data without using the CPU." default n @@ -341,7 +341,7 @@ menu "Hardware Drivers Config" config BSP_USING_SPI0 bool "Enable SPI0 BUS" default n - + config BSP_USING_SPI1 bool "Enable SPI1 BUS" default n @@ -383,7 +383,7 @@ menu "Hardware Drivers Config" config BSP_USING_PWM0 bool "Enable GPT0 (32-Bits) output PWM" default n - + config BSP_USING_PWM1 bool "Enable GPT1 (32-Bits) output PWM" default n diff --git a/bsp/renesas/ra6m4-iot/Kconfig b/bsp/renesas/ra6m4-iot/Kconfig index 061dbecbd3..006f89db58 100644 --- a/bsp/renesas/ra6m4-iot/Kconfig +++ b/bsp/renesas/ra6m4-iot/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../.." - + # you can change the RTT_ROOT default "../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" @@ -17,7 +17,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + config ENV_DIR string option env="ENV_ROOT" diff --git a/bsp/renesas/ra6m4-iot/board/Kconfig b/bsp/renesas/ra6m4-iot/board/Kconfig index e179bbcfc5..8fcf428d6c 100644 --- a/bsp/renesas/ra6m4-iot/board/Kconfig +++ b/bsp/renesas/ra6m4-iot/board/Kconfig @@ -329,7 +329,7 @@ menu "Hardware Drivers Config" bool "Enable SPI BUS" default n select RT_USING_SPI - if BSP_USING_SPI + if BSP_USING_SPI config BSP_SPI_USING_DTC_DMA bool "Enable SPI DTC transfers data without using the CPU." default n @@ -337,7 +337,7 @@ menu "Hardware Drivers Config" config BSP_USING_SPI0 bool "Enable SPI0 BUS" default n - + config BSP_USING_SPI1 bool "Enable SPI1 BUS" default n @@ -379,7 +379,7 @@ menu "Hardware Drivers Config" config BSP_USING_PWM0 bool "Enable GPT0 (32-Bits) output PWM" default n - + config BSP_USING_PWM1 bool "Enable GPT1 (32-Bits) output PWM" default n diff --git a/bsp/rm48x50/HALCoGen/SConscript b/bsp/rm48x50/HALCoGen/SConscript index 9a6559f423..f32133d990 100644 --- a/bsp/rm48x50/HALCoGen/SConscript +++ b/bsp/rm48x50/HALCoGen/SConscript @@ -4,8 +4,8 @@ Import('rtconfig') from building import * cwd = GetCurrentDir() -src = Glob('source/*.c') -src += Glob('source/*.S') +src = Glob('source/*.c') +src += Glob('source/*.S') CPPPATH = [cwd + '/include/'] diff --git a/bsp/rm48x50/SConstruct b/bsp/rm48x50/SConstruct index 7a4fb2c6ea..ee6241865e 100644 --- a/bsp/rm48x50/SConstruct +++ b/bsp/rm48x50/SConstruct @@ -13,10 +13,10 @@ TARGET = 'rtthread-rm48x50.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) if env['PLATFORM'] == 'win32': env['ASCOM'] = '$AS $ASFLAGS $CFLAGS $_CCCOMCOM -o $TARGET $SOURCES' diff --git a/bsp/rm48x50/application/SConscript b/bsp/rm48x50/application/SConscript index 4ccb177207..a1ad102b1d 100644 --- a/bsp/rm48x50/application/SConscript +++ b/bsp/rm48x50/application/SConscript @@ -1,7 +1,7 @@ from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd, str(Dir('#'))] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/rm48x50/drivers/SConscript b/bsp/rm48x50/drivers/SConscript index 9987f53e4b..2074d467e9 100644 --- a/bsp/rm48x50/drivers/SConscript +++ b/bsp/rm48x50/drivers/SConscript @@ -4,7 +4,7 @@ Import('rtconfig') from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] diff --git a/bsp/rockchip/common/drivers/SConscript b/bsp/rockchip/common/drivers/SConscript index 904f0dc0f0..61efb7800d 100644 --- a/bsp/rockchip/common/drivers/SConscript +++ b/bsp/rockchip/common/drivers/SConscript @@ -3,7 +3,7 @@ Import('rtconfig') from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] group = DefineGroup('CommonDrivers', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/sam7x/SConstruct b/bsp/sam7x/SConstruct index 0068243b60..9c285ca5fa 100644 --- a/bsp/sam7x/SConstruct +++ b/bsp/sam7x/SConstruct @@ -14,11 +14,11 @@ TARGET = 'rtthread-sam7x.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - CXX = rtconfig.CXX, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + CXX = rtconfig.CXX, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/samd21/SConstruct b/bsp/samd21/SConstruct index 8adc9f48a0..965758cac1 100644 --- a/bsp/samd21/SConstruct +++ b/bsp/samd21/SConstruct @@ -14,16 +14,16 @@ TARGET = 'SAM_D2X_RTT.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: - env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) - env.Replace(ARFLAGS = ['']) - env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) + env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) + env.Replace(ARFLAGS = ['']) + env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) Export('RTT_ROOT') Export('rtconfig') diff --git a/bsp/samd21/board/SConscript b/bsp/samd21/board/SConscript index 5001f5d8bb..93165bd863 100644 --- a/bsp/samd21/board/SConscript +++ b/bsp/samd21/board/SConscript @@ -3,7 +3,7 @@ Import('rtconfig') from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') path = [cwd] #remove other no use files @@ -11,9 +11,9 @@ path = [cwd] #SrcRemove(src, 'delay.c') if rtconfig.DEVICE_SERIES == 'SAMD20': - path += [cwd + '/../asflib_config', cwd + '/../asflib_config/clock_samd20'] + path += [cwd + '/../asflib_config', cwd + '/../asflib_config/clock_samd20'] elif rtconfig.DEVICE_SERIES == 'SAMD21': - path += [cwd + '/../asflib_config', cwd + '/../asflib_config/clock_samd21_r21_da_ha1'] + path += [cwd + '/../asflib_config', cwd + '/../asflib_config/clock_samd21_r21_da_ha1'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path) diff --git a/bsp/samd21/sam_d2x_asflib/SConscript b/bsp/samd21/sam_d2x_asflib/SConscript index ac81dff1a9..2f3922cc54 100644 --- a/bsp/samd21/sam_d2x_asflib/SConscript +++ b/bsp/samd21/sam_d2x_asflib/SConscript @@ -13,7 +13,7 @@ path = [] #common lib define CPPDEFINES += [rtconfig.DEVICE_TYPE, 'DEBUG'] -#CMSIS/Include/ common/ common2/service/delay +#CMSIS/Include/ common/ common2/service/delay path += [cwd + '/CMSIS/Include/'] path += [cwd + '/common/utils/', cwd + '/common/utils/interrupt/'] path += [cwd + '/common/boards/'] @@ -27,23 +27,23 @@ path += [cwd + '/sam0/utils/header_files'] #sam0/utils/cmsis/ if rtconfig.DEVICE_SERIES == 'SAMD20': - #D20 - path += [cwd + '/sam0/', cwd + '/sam0/utils/cmsis/samd20/include/'] - path += [cwd + '/sam0/utils/cmsis/samd20/source/'] - src += Glob('./sam0/utils/cmsis/samd20/source/*.c') - if rtconfig.PLATFORM in ['gcc']: - src += Glob('./sam0/utils/cmsis/samd20/source/gcc/*.s') - elif rtconfig.PLATFORM in ['armcc', 'armclang']: - src += Glob('./sam0/utils/cmsis/samd20/source/arm/*.s') + #D20 + path += [cwd + '/sam0/', cwd + '/sam0/utils/cmsis/samd20/include/'] + path += [cwd + '/sam0/utils/cmsis/samd20/source/'] + src += Glob('./sam0/utils/cmsis/samd20/source/*.c') + if rtconfig.PLATFORM in ['gcc']: + src += Glob('./sam0/utils/cmsis/samd20/source/gcc/*.s') + elif rtconfig.PLATFORM in ['armcc', 'armclang']: + src += Glob('./sam0/utils/cmsis/samd20/source/arm/*.s') elif rtconfig.DEVICE_SERIES == 'SAMD21': - #D21 - path += [cwd + '/sam0/utils/cmsis/samd21/include/'] - path += [cwd + '/sam0/utils/cmsis/samd21/source/'] - src += Glob('./sam0/utils/cmsis/samd21/source/*.c') - if rtconfig.PLATFORM in ['gcc']: - src += Glob('./sam0/utils/cmsis/samd21/source/gcc/*.s') - elif rtconfig.PLATFORM in ['armcc', 'armclang']: - src += Glob('./sam0/utils/cmsis/samd21/source/arm/*.s') + #D21 + path += [cwd + '/sam0/utils/cmsis/samd21/include/'] + path += [cwd + '/sam0/utils/cmsis/samd21/source/'] + src += Glob('./sam0/utils/cmsis/samd21/source/*.c') + if rtconfig.PLATFORM in ['gcc']: + src += Glob('./sam0/utils/cmsis/samd21/source/gcc/*.s') + elif rtconfig.PLATFORM in ['armcc', 'armclang']: + src += Glob('./sam0/utils/cmsis/samd21/source/arm/*.s') #sam0/drivers/system path += [cwd + '/sam0/drivers/system/'] @@ -56,19 +56,19 @@ path += [cwd + '/sam0/drivers/system/clock'] path += [cwd + '/sam0/drivers/system/interrupt/'] src += Glob('./sam0/drivers/system/interrupt/*.c') if rtconfig.DEVICE_SERIES == 'SAMD20': - path += [cwd + '/sam0/drivers/system/interrupt/system_interrupt_samd20/'] + path += [cwd + '/sam0/drivers/system/interrupt/system_interrupt_samd20/'] elif rtconfig.DEVICE_SERIES == 'SAMD21': - path += [cwd + '/sam0/drivers/system/interrupt/system_interrupt_samd21/'] + path += [cwd + '/sam0/drivers/system/interrupt/system_interrupt_samd21/'] #sam0/drivers/system/clock if rtconfig.DEVICE_SERIES == 'SAMD20': - path += [cwd + '/sam0/drivers/system/clock/clock_samd20'] - #path += [cwd + '/sam0/drivers/system/clock/clock_samd20/module_config'] - src += Glob('./sam0/drivers/system/clock/clock_samd20/*.c') + path += [cwd + '/sam0/drivers/system/clock/clock_samd20'] + #path += [cwd + '/sam0/drivers/system/clock/clock_samd20/module_config'] + src += Glob('./sam0/drivers/system/clock/clock_samd20/*.c') elif rtconfig.DEVICE_SERIES == 'SAMD21': - #path += [cwd + '/sam0/drivers/system/clock/clock_samd21_r21_da_ha1/module_config'] - path += [cwd + '/sam0/drivers/system/clock/clock_samd21_r21_da_ha1'] - src += Glob('./sam0/drivers/system/clock/clock_samd21_r21_da_ha1/*.c') + #path += [cwd + '/sam0/drivers/system/clock/clock_samd21_r21_da_ha1/module_config'] + path += [cwd + '/sam0/drivers/system/clock/clock_samd21_r21_da_ha1'] + src += Glob('./sam0/drivers/system/clock/clock_samd21_r21_da_ha1/*.c') #sam0/drivers/sercom path += [cwd + '/sam0/drivers/sercom', cwd + '/sam0/drivers/sercom/usart'] @@ -95,4 +95,4 @@ CPPDEFINES += ['EXTINT_CALLBACK_MODE=true'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/sep6200/SConstruct b/bsp/sep6200/SConstruct index 9f39431d1d..4d20a5ce4b 100644 --- a/bsp/sep6200/SConstruct +++ b/bsp/sep6200/SConstruct @@ -14,10 +14,10 @@ TARGET = 'rtthread-sep6200.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET']) diff --git a/bsp/sep6200/application/SConscript b/bsp/sep6200/application/SConscript index f0c03fb280..5ad3ce8de9 100644 --- a/bsp/sep6200/application/SConscript +++ b/bsp/sep6200/application/SConscript @@ -1,7 +1,7 @@ from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd, str(Dir('#'))] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/simulator/applications/SConscript b/bsp/simulator/applications/SConscript index 7bff98687b..8bc8d9a523 100644 --- a/bsp/simulator/applications/SConscript +++ b/bsp/simulator/applications/SConscript @@ -2,7 +2,7 @@ import os from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/smartfusion2/CMSIS/SConscript b/bsp/smartfusion2/CMSIS/SConscript index 0d75bbaf8a..322809f9b7 100644 --- a/bsp/smartfusion2/CMSIS/SConscript +++ b/bsp/smartfusion2/CMSIS/SConscript @@ -2,11 +2,11 @@ from building import * import rtconfig cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') if rtconfig.PLATFORM in ['gcc']: src += ['startup_gcc/startup_m2sxxx.S'] - + elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += ['startup_arm/startup_m2sxxx.s'] diff --git a/bsp/smartfusion2/Kconfig b/bsp/smartfusion2/Kconfig index 94657344a4..95d25a6f5b 100644 --- a/bsp/smartfusion2/Kconfig +++ b/bsp/smartfusion2/Kconfig @@ -20,7 +20,7 @@ source "$PKGS_DIR/Kconfig" source "drivers/Kconfig" config SOC_SF2_M2S010 - bool + bool select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y diff --git a/bsp/smartfusion2/SConstruct b/bsp/smartfusion2/SConstruct index 3babebc3b8..c46202d1f7 100644 --- a/bsp/smartfusion2/SConstruct +++ b/bsp/smartfusion2/SConstruct @@ -19,10 +19,10 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/smartfusion2/applications/SConscript b/bsp/smartfusion2/applications/SConscript index bb108f27db..0450c01fb1 100644 --- a/bsp/smartfusion2/applications/SConscript +++ b/bsp/smartfusion2/applications/SConscript @@ -3,7 +3,7 @@ import rtconfig cwd = GetCurrentDir() CPPPATH = [cwd] -src = Glob('*.c') +src = Glob('*.c') group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/smartfusion2/board/SConscript b/bsp/smartfusion2/board/SConscript index bb108f27db..0450c01fb1 100644 --- a/bsp/smartfusion2/board/SConscript +++ b/bsp/smartfusion2/board/SConscript @@ -3,7 +3,7 @@ import rtconfig cwd = GetCurrentDir() CPPPATH = [cwd] -src = Glob('*.c') +src = Glob('*.c') group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/smartfusion2/drivers/Kconfig b/bsp/smartfusion2/drivers/Kconfig index eebc758c08..de0d2fbf5a 100644 --- a/bsp/smartfusion2/drivers/Kconfig +++ b/bsp/smartfusion2/drivers/Kconfig @@ -9,19 +9,19 @@ menu "Hardware Drivers Config" default y help config MSS_UART0 - + config BSP_USING_UART1 bool "Enable MSS_UART1" select RT_USING_SERIAL default y - help + help config MSS_UART1 - + config RT_CONSOLE_DEVICE_NAME string "the device name for console" default "uart0" - endmenu - + endmenu + menu "GPIO Drivers" config BSP_USING_GPIO bool "Enable MSS_GPIO" @@ -31,5 +31,5 @@ menu "Hardware Drivers Config" config MSS_GPIO endmenu endmenu - + endmenu diff --git a/bsp/smartfusion2/libraries/SConscript b/bsp/smartfusion2/libraries/SConscript index da21728b90..45cc15dc99 100644 --- a/bsp/smartfusion2/libraries/SConscript +++ b/bsp/smartfusion2/libraries/SConscript @@ -3,7 +3,7 @@ import rtconfig cwd = GetCurrentDir() -src = [cwd + '/sys_config/sys_config.c'] +src = [cwd + '/sys_config/sys_config.c'] src += [cwd + '/mss_gpio/mss_gpio.c'] src += [cwd + '/mss_uart/mss_uart.c'] diff --git a/bsp/sparkfun-redv/SConstruct b/bsp/sparkfun-redv/SConstruct index f9cdd02f3c..345f3ef5fc 100644 --- a/bsp/sparkfun-redv/SConstruct +++ b/bsp/sparkfun-redv/SConstruct @@ -13,11 +13,11 @@ from building import * TARGET = 'rtthread.' + rtconfig.TARGET_EXT env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env['ASCOM'] = env['ASPPCOM'] diff --git a/bsp/sparkfun-redv/applications/SConscript b/bsp/sparkfun-redv/applications/SConscript index 4dec9dcea5..0ef75c54cf 100644 --- a/bsp/sparkfun-redv/applications/SConscript +++ b/bsp/sparkfun-redv/applications/SConscript @@ -3,10 +3,10 @@ Import('rtconfig') from building import * cwd = os.path.join(str(Dir('#')), 'applications') -src = Glob('*.c') +src = Glob('*.c') src.append('led/led.c') -CPPPATH = [cwd, +CPPPATH = [cwd, str(Dir('#')), os.path.join(str(Dir('#')), 'freedom-e-sdk/bsp/env'), os.path.join(str(Dir('#')), 'freedom-e-sdk/bsp/env/freedom-e300-hifive1'), diff --git a/bsp/sparkfun-redv/freedom-e-sdk/SConscript b/bsp/sparkfun-redv/freedom-e-sdk/SConscript index b1b8c1332a..424798de7d 100644 --- a/bsp/sparkfun-redv/freedom-e-sdk/SConscript +++ b/bsp/sparkfun-redv/freedom-e-sdk/SConscript @@ -7,7 +7,7 @@ from building import * cwd = GetCurrentDir() src = [ 'bsp/drivers/plic/plic_driver.c', 'bsp/env/start.S', - 'bsp/env/freedom-e300-hifive1/init.c'] + 'bsp/env/freedom-e300-hifive1/init.c'] CPPPATH = [ cwd + '/bsp/drivers', cwd + '/bsp/drivers/fe300prci', cwd + '/bsp/drivers/plic', cwd + '/bsp/env', cwd + '/bsp/env/freedom-e300-hifive1', diff --git a/bsp/stm32/libraries/HAL_Drivers/Kconfig b/bsp/stm32/libraries/HAL_Drivers/Kconfig index 41cf5cf08b..0a918c1ccd 100644 --- a/bsp/stm32/libraries/HAL_Drivers/Kconfig +++ b/bsp/stm32/libraries/HAL_Drivers/Kconfig @@ -7,20 +7,20 @@ if BSP_USING_USBD # "USB High Speed (HS) Core" config BSP_USBD_SPEED_HS - bool + bool # "USB High Speed (HS) Mode" config BSP_USBD_SPEED_HSINFS - bool + bool # "USB High Speed (HS) Core in FS mode" config BSP_USBD_PHY_EMBEDDED - bool + bool # "Using Embedded phy interface" config BSP_USBD_PHY_UTMI - bool + bool # "UTMI: USB 2.0 Transceiver Macrocell Interace" config BSP_USBD_PHY_ULPI - bool + bool # "ULPI: UTMI+ Low Pin Interface" endif @@ -31,7 +31,7 @@ config BSP_USING_CRC # "Crypto device frame dose not support above 8-bits granularity" # "Reserve progress, running well, about 32-bits granularity, such as stm32f1, stm32f4" depends on (SOC_SERIES_STM32L4 || SOC_SERIES_STM32F0 || SOC_SERIES_STM32F7 || SOC_SERIES_STM32H7 || SOC_SERIES_STM32MP1) - default n + default n config BSP_USING_RNG bool "Enable RNG (Random Number Generator)" diff --git a/bsp/stm32/libraries/Kconfig b/bsp/stm32/libraries/Kconfig index 72d1f715f2..51533c978b 100644 --- a/bsp/stm32/libraries/Kconfig +++ b/bsp/stm32/libraries/Kconfig @@ -20,7 +20,7 @@ config SOC_SERIES_STM32F3 bool select ARCH_ARM_CORTEX_M4 select SOC_FAMILY_STM32 - + config SOC_SERIES_STM32F4 bool select ARCH_ARM_CORTEX_M4 @@ -30,12 +30,12 @@ config SOC_SERIES_STM32F7 bool select ARCH_ARM_CORTEX_M7 select SOC_FAMILY_STM32 - + config SOC_SERIES_STM32L0 bool select ARCH_ARM_CORTEX_M0 select SOC_FAMILY_STM32 - + config SOC_SERIES_STM32L1 bool select ARCH_ARM_CORTEX_M3 @@ -80,10 +80,10 @@ config SOC_SERIES_STM32WL bool select ARCH_ARM_CORTEX_M4 select SOC_FAMILY_STM32 - + config SOC_SERIES_STM32WB bool select ARCH_ARM_CORTEX_M4 select SOC_FAMILY_STM32 - + diff --git a/bsp/stm32/libraries/STM32F0xx_HAL/SConscript b/bsp/stm32/libraries/STM32F0xx_HAL/SConscript index ca918950b7..568f7c5ea0 100644 --- a/bsp/stm32/libraries/STM32F0xx_HAL/SConscript +++ b/bsp/stm32/libraries/STM32F0xx_HAL/SConscript @@ -39,7 +39,7 @@ if GetDepend(['RT_USING_I2C']): if GetDepend(['RT_USING_SPI']): src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_spi.c'] - src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_spi_ex.c'] + src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_spi_ex.c'] src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_spi.c'] if GetDepend(['RT_USING_USB']): @@ -53,18 +53,18 @@ if GetDepend(['RT_USING_HWTIMER']) or GetDepend(['RT_USING_PWM']): src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c'] src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c'] src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_tim.c'] - + if GetDepend(['RT_USING_ADC']): src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.c'] src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc_ex.c'] src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_adc.c'] - + if GetDepend(['RT_USING_RTC']): src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rtc.c'] src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rtc_ex.c'] src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_rtc.c'] - + if GetDepend(['RT_USING_WDT']): src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_iwdg.c'] src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_wwdg.c'] @@ -76,7 +76,7 @@ if GetDepend(['BSP_USING_ON_CHIP_FLASH']): src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c'] src += ['STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c'] -path = [cwd + '/CMSIS/Device/ST/STM32F0xx/Include', +path = [cwd + '/CMSIS/Device/ST/STM32F0xx/Include', cwd + '/STM32F0xx_HAL_Driver/Inc'] CPPDEFINES = ['USE_HAL_DRIVER'] diff --git a/bsp/stm32/libraries/STM32F1xx_HAL/SConscript b/bsp/stm32/libraries/STM32F1xx_HAL/SConscript index 05f802bb1c..d6ed2ed377 100644 --- a/bsp/stm32/libraries/STM32F1xx_HAL/SConscript +++ b/bsp/stm32/libraries/STM32F1xx_HAL/SConscript @@ -21,21 +21,21 @@ STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c if GetDepend(['RT_USING_PIN']): src += ['STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c'] - + if GetDepend(['RT_USING_SERIAL']): src += ['STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c'] src += ['STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_usart.c'] if GetDepend(['RT_USING_I2C']): src += ['STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_i2c.c'] - + if GetDepend(['RT_USING_SPI']): src += ['STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c'] src += ['STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_spi.c'] if GetDepend(['RT_USING_USB']): src += ['STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pcd.c'] - src += ['STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pcd_ex.c'] + src += ['STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pcd_ex.c'] src += ['STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c'] src += ['STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_hcd.c'] @@ -83,7 +83,7 @@ if GetDepend(['BSP_USING_ON_CHIP_FLASH']): src += ['STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c'] src += ['STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c'] -path = [cwd + '/CMSIS/Device/ST/STM32F1xx/Include', +path = [cwd + '/CMSIS/Device/ST/STM32F1xx/Include', cwd + '/STM32F1xx_HAL_Driver/Inc'] CPPDEFINES = ['USE_HAL_DRIVER'] diff --git a/bsp/stm32/libraries/STM32F2xx_HAL/SConscript b/bsp/stm32/libraries/STM32F2xx_HAL/SConscript index f5935f03da..55d0af9293 100644 --- a/bsp/stm32/libraries/STM32F2xx_HAL/SConscript +++ b/bsp/stm32/libraries/STM32F2xx_HAL/SConscript @@ -17,21 +17,21 @@ STM32F2xx_HAL_Driver/Src/stm32f2xx_hal.c STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_sram.c STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_gpio.c """) - + if GetDepend(['RT_USING_SERIAL']): src += ['STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_uart.c'] src += ['STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_usart.c'] if GetDepend(['RT_USING_I2C']): src += ['STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_i2c.c'] - + if GetDepend(['RT_USING_SPI']): src += ['STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_spi.c'] if GetDepend(['RT_USING_USB']): src += ['STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_pccard.c'] src += ['STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_pcd.c'] - src += ['STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_pcd_ex.c'] + src += ['STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_pcd_ex.c'] src += ['STM32F2xx_HAL_Driver/Src/stm32f2xx_ll_usb.c'] src += ['STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_hcd.c'] @@ -77,7 +77,7 @@ if GetDepend(['BSP_USING_ON_CHIP_FLASH']): src += ['STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_flash.c'] src += ['STM32F2xx_HAL_Driver/Src/stm32f2xx_hal_flash_ex.c'] -path = [cwd + '/CMSIS/Device/ST/STM32F2xx/Include', +path = [cwd + '/CMSIS/Device/ST/STM32F2xx/Include', cwd + '/STM32F2xx_HAL_Driver/Inc'] CPPDEFINES = ['USE_HAL_DRIVER'] diff --git a/bsp/stm32/libraries/STM32F3xx_HAL/SConscript b/bsp/stm32/libraries/STM32F3xx_HAL/SConscript index 550a1b5d8d..ce5e693085 100644 --- a/bsp/stm32/libraries/STM32F3xx_HAL/SConscript +++ b/bsp/stm32/libraries/STM32F3xx_HAL/SConscript @@ -38,7 +38,7 @@ if GetDepend(['RT_USING_SPI']): src += ['STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_spi_ex.c'] if GetDepend(['RT_USING_USB']): - src += ['STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_pcd.c'] + src += ['STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_pcd.c'] src += ['STM32F3xx_HAL_Driver/Src/stm32f3xx_hal_pcd_ex.c'] src += ['STM32F3xx_HAL_Driver/Src/stm32f3xx_ll_usb.c'] diff --git a/bsp/stm32/libraries/STM32F4xx_HAL/SConscript b/bsp/stm32/libraries/STM32F4xx_HAL/SConscript index 52376c0c42..7af430fb4d 100644 --- a/bsp/stm32/libraries/STM32F4xx_HAL/SConscript +++ b/bsp/stm32/libraries/STM32F4xx_HAL/SConscript @@ -23,7 +23,7 @@ STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rng.c STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c'] src += ['STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_usart.c'] @@ -38,7 +38,7 @@ if GetDepend(['RT_USING_SPI']): if GetDepend(['RT_USING_USB']): src += ['STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pccard.c'] - src += ['STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.c'] + src += ['STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.c'] src += ['STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.c'] src += ['STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_hcd.c'] src += ['STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c'] diff --git a/bsp/stm32/libraries/STM32F7xx_HAL/SConscript b/bsp/stm32/libraries/STM32F7xx_HAL/SConscript index 10f84e5c20..7f2b603c67 100644 --- a/bsp/stm32/libraries/STM32F7xx_HAL/SConscript +++ b/bsp/stm32/libraries/STM32F7xx_HAL/SConscript @@ -42,7 +42,7 @@ if GetDepend(['RT_USING_SPI']): src += ['STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_qspi.c'] if GetDepend(['RT_USING_USB']): - src += ['STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pcd.c'] + src += ['STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pcd.c'] src += ['STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pcd_ex.c'] src += ['STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_hcd.c'] src += ['STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_usb.c'] diff --git a/bsp/stm32/libraries/STM32G4xx_HAL/SConscript b/bsp/stm32/libraries/STM32G4xx_HAL/SConscript index e49b58fa90..05075a8d3c 100644 --- a/bsp/stm32/libraries/STM32G4xx_HAL/SConscript +++ b/bsp/stm32/libraries/STM32G4xx_HAL/SConscript @@ -22,7 +22,7 @@ STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rcc_ex.c STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_rng.c STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_gpio.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart.c'] src += ['STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_uart_ex.c'] @@ -39,7 +39,7 @@ if GetDepend(['RT_USING_SPI']): if GetDepend(['RT_USING_USB']): src += ['STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pccard.c'] - src += ['STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pcd.c'] + src += ['STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pcd.c'] src += ['STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_pcd_ex.c'] src += ['STM32G4xx_HAL_Driver/Src/stm32g4xx_hal_hcd.c'] src += ['STM32G4xx_HAL_Driver/Src/stm32g4xx_ll_usb.c'] diff --git a/bsp/stm32/libraries/STM32L0xx_HAL/SConscript b/bsp/stm32/libraries/STM32L0xx_HAL/SConscript index bdaa3b4023..58dcfee448 100644 --- a/bsp/stm32/libraries/STM32L0xx_HAL/SConscript +++ b/bsp/stm32/libraries/STM32L0xx_HAL/SConscript @@ -23,12 +23,12 @@ STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_rcc_ex.c STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_rng.c STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_gpio.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_uart.c'] src += ['STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_uart_ex.c'] src += ['STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_usart.c'] - + if GetDepend(['RT_USING_I2C']): src += ['STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_i2c.c'] src += ['STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_i2c_ex.c'] @@ -39,7 +39,7 @@ if GetDepend(['RT_USING_SPI']): src += ['STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_qspi.c'] if GetDepend(['RT_USING_USB']): - src += ['STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_hcd.c'] + src += ['STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_hcd.c'] src += ['STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_pcd.c'] src += ['STM32L0xx_HAL_Driver/Src/stm32l0xx_hal_pcd_ex.c'] src += ['STM32L0xx_HAL_Driver/Src/stm32l0xx_ll_usb.c'] diff --git a/bsp/stm32/libraries/STM32L1xx_HAL/SConscript b/bsp/stm32/libraries/STM32L1xx_HAL/SConscript index ae5e9a2bfe..217a9b2df2 100644 --- a/bsp/stm32/libraries/STM32L1xx_HAL/SConscript +++ b/bsp/stm32/libraries/STM32L1xx_HAL/SConscript @@ -22,21 +22,21 @@ STM32L1xx_HAL_Driver/Src/stm32L1xx_hal_gpio.c """) - + if GetDepend(['RT_USING_SERIAL']): src += ['STM32L1xx_HAL_Driver/Src/stm32L1xx_hal_uart.c'] src += ['STM32L1xx_HAL_Driver/Src/stm32L1xx_hal_usart.c'] if GetDepend(['RT_USING_I2C']): src += ['STM32L1xx_HAL_Driver/Src/stm32L1xx_hal_i2c.c'] - + if GetDepend(['RT_USING_SPI']): src += ['STM32L1xx_HAL_Driver/Src/stm32L1xx_hal_spi.c'] src += ['STM32L1xx_HAL_Driver/Src/stm32L1xx_ll_spi.c'] if GetDepend(['RT_USING_USB']): src += ['STM32L1xx_HAL_Driver/Src/stm32L1xx_hal_pcd.c'] - src += ['STM32L1xx_HAL_Driver/Src/stm32L1xx_hal_pcd_ex.c'] + src += ['STM32L1xx_HAL_Driver/Src/stm32L1xx_hal_pcd_ex.c'] src += ['STM32L1xx_HAL_Driver/Src/stm32L1xx_ll_usb.c'] @@ -70,7 +70,7 @@ if GetDepend(['BSP_USING_ON_CHIP_FLASH']): src += ['STM32L1xx_HAL_Driver/Src/stm32L1xx_hal_flash.c'] src += ['STM32L1xx_HAL_Driver/Src/stm32L1xx_hal_flash_ex.c'] -path = [cwd + '/CMSIS/Device/ST/STM32L1xx/Include', +path = [cwd + '/CMSIS/Device/ST/STM32L1xx/Include', cwd + '/STM32L1xx_HAL_Driver/Inc'] CPPDEFINES = ['USE_HAL_DRIVER'] diff --git a/bsp/stm32/libraries/STM32L4xx_HAL/SConscript b/bsp/stm32/libraries/STM32L4xx_HAL/SConscript index 231d51614f..ebc7c4a01c 100644 --- a/bsp/stm32/libraries/STM32L4xx_HAL/SConscript +++ b/bsp/stm32/libraries/STM32L4xx_HAL/SConscript @@ -25,13 +25,13 @@ STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rcc_ex.c STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_rng.c STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_gpio.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart.c'] src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_uart_ex.c'] src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_usart.c'] src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_usart_ex.c'] - + if GetDepend(['RT_USING_I2C']): src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_i2c.c'] src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_i2c_ex.c'] @@ -42,7 +42,7 @@ if GetDepend(['RT_USING_SPI']): src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_qspi.c'] if GetDepend(['RT_USING_USB']): - src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_hcd.c'] + src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_hcd.c'] src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_pcd.c'] src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_pcd_ex.c'] src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_ll_usb.c'] @@ -96,7 +96,7 @@ if GetDepend(['BSP_USING_ON_CHIP_FLASH']): if GetDepend(['BSP_USING_FMC']): src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_ll_fmc.c'] - + if GetDepend(['BSP_USING_GFXMMU']): src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_gfxmmu.c'] @@ -106,9 +106,9 @@ if GetDepend(['BSP_USING_DSI']): src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_ll_dma2d.c'] src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_ltdc.c'] src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_ltdc_ex.c'] - + if GetDepend(['BSP_USING_SRAM']): - src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_sram.c'] + src += ['STM32L4xx_HAL_Driver/Src/stm32l4xx_hal_sram.c'] path = [cwd + '/STM32L4xx_HAL_Driver/Inc', cwd + '/CMSIS/Device/ST/STM32L4xx/Include'] diff --git a/bsp/stm32/libraries/STM32L5xx_HAL/SConscript b/bsp/stm32/libraries/STM32L5xx_HAL/SConscript index cf1e8df91c..b7379e74c2 100644 --- a/bsp/stm32/libraries/STM32L5xx_HAL/SConscript +++ b/bsp/stm32/libraries/STM32L5xx_HAL/SConscript @@ -25,13 +25,13 @@ STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_rcc_ex.c STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_rng.c STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_gpio.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_uart.c'] src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_uart_ex.c'] src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_usart.c'] src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_usart_ex.c'] - + if GetDepend(['RT_USING_I2C']): src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_i2c.c'] src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_i2c_ex.c'] @@ -42,7 +42,7 @@ if GetDepend(['RT_USING_SPI']): src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_qspi.c'] if GetDepend(['RT_USING_USB']): - src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_hcd.c'] + src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_hcd.c'] src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_pcd.c'] src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_pcd_ex.c'] src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_ll_usb.c'] @@ -96,7 +96,7 @@ if GetDepend(['BSP_USING_ON_CHIP_FLASH']): if GetDepend(['BSP_USING_FMC']): src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_ll_fmc.c'] - + if GetDepend(['BSP_USING_GFXMMU']): src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_gfxmmu.c'] @@ -106,9 +106,9 @@ if GetDepend(['BSP_USING_DSI']): src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_ll_dma2d.c'] src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_ltdc.c'] src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_ltdc_ex.c'] - + if GetDepend(['BSP_USING_SRAM']): - src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_sram.c'] + src += ['STM32L5xx_HAL_Driver/Src/stm32l5xx_hal_sram.c'] path = [cwd + '/STM32L5xx_HAL_Driver/Inc', cwd + '/CMSIS/Device/ST/STM32L5xx/Include'] diff --git a/bsp/stm32/libraries/STM32MPxx_HAL/SConscript b/bsp/stm32/libraries/STM32MPxx_HAL/SConscript index 08d399bf00..f68136c1d6 100644 --- a/bsp/stm32/libraries/STM32MPxx_HAL/SConscript +++ b/bsp/stm32/libraries/STM32MPxx_HAL/SConscript @@ -68,7 +68,7 @@ if GetDepend(['RT_USING_AUDIO']): src += ['STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_sai_ex.c'] if GetDepend(['BSP_USING_DCMI']): src += ['STM32MP1xx_HAL_Driver/Src/stm32mp1xx_hal_dcmi.c'] - + if GetDepend(['BSP_USING_FMC']): src += ['STM32MP1xx_HAL_Driver/Src/stm32mp1xx_ll_fmc.c'] src += ['STM32MP1xx_HAL_Driver/Src/stm32mp1xx_ll_fsmc.c'] diff --git a/bsp/stm32/libraries/STM32U5xx_HAL/SConscript b/bsp/stm32/libraries/STM32U5xx_HAL/SConscript index 2930ecdf44..f7b282d8fe 100644 --- a/bsp/stm32/libraries/STM32U5xx_HAL/SConscript +++ b/bsp/stm32/libraries/STM32U5xx_HAL/SConscript @@ -26,13 +26,13 @@ STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_rng.c STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_gpio.c STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_icache.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_uart.c'] src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_uart_ex.c'] src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_usart.c'] src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_usart_ex.c'] - + if GetDepend(['RT_USING_I2C']): src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_i2c.c'] src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_i2c_ex.c'] @@ -43,7 +43,7 @@ if GetDepend(['RT_USING_SPI']): src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_qspi.c'] if GetDepend(['RT_USING_USB']): - src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_hcd.c'] + src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_hcd.c'] src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_pcd.c'] src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_pcd_ex.c'] src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_ll_usb.c'] @@ -97,7 +97,7 @@ if GetDepend(['BSP_USING_ON_CHIP_FLASH']): if GetDepend(['BSP_USING_FMC']): src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_ll_fmc.c'] - + if GetDepend(['BSP_USING_GFXMMU']): src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_gfxmmu.c'] @@ -107,10 +107,10 @@ if GetDepend(['BSP_USING_DSI']): src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_ll_dma2d.c'] src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_ltdc.c'] src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_ltdc_ex.c'] - + if GetDepend(['BSP_USING_SRAM']): - src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_sram.c'] - + src += ['STM32U5xx_HAL_Driver/Src/stm32u5xx_hal_sram.c'] + path = [cwd + '/STM32U5xx_HAL_Driver/Inc', cwd + '/CMSIS/Device/ST/STM32U5xx/Include'] diff --git a/bsp/stm32/libraries/STM32WBxx_HAL/SConscript b/bsp/stm32/libraries/STM32WBxx_HAL/SConscript index 4f4b3b3c73..f516470857 100644 --- a/bsp/stm32/libraries/STM32WBxx_HAL/SConscript +++ b/bsp/stm32/libraries/STM32WBxx_HAL/SConscript @@ -26,13 +26,13 @@ STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_rng.c STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_gpio.c STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_hsem.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_uart.c'] src += ['STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_uart_ex.c'] src += ['STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_usart.c'] src += ['STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_usart_ex.c'] - + if GetDepend(['RT_USING_I2C']): src += ['STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_i2c.c'] src += ['STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_i2c_ex.c'] @@ -43,7 +43,7 @@ if GetDepend(['RT_USING_SPI']): src += ['STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_qspi.c'] if GetDepend(['RT_USING_USB']): -# src += ['STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_hcd.c'] +# src += ['STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_hcd.c'] src += ['STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_pcd.c'] src += ['STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_pcd_ex.c'] # src += ['STM32WBxx_HAL_Driver/Src/stm32wbxx_ll_usb.c'] diff --git a/bsp/stm32/libraries/STM32WLxx_HAL/SConscript b/bsp/stm32/libraries/STM32WLxx_HAL/SConscript index 09e80008fc..6403fa3f03 100644 --- a/bsp/stm32/libraries/STM32WLxx_HAL/SConscript +++ b/bsp/stm32/libraries/STM32WLxx_HAL/SConscript @@ -25,13 +25,13 @@ STM32WLxx_HAL_Driver/Src/stm32wlxx_hal_rcc_ex.c STM32WLxx_HAL_Driver/Src/stm32wlxx_hal_rng.c STM32WLxx_HAL_Driver/Src/stm32wlxx_hal_gpio.c ''') - + if GetDepend(['RT_USING_SERIAL']): src += ['STM32WLxx_HAL_Driver/Src/stm32wlxx_hal_uart.c'] src += ['STM32WLxx_HAL_Driver/Src/stm32wlxx_hal_uart_ex.c'] src += ['STM32WLxx_HAL_Driver/Src/stm32wlxx_hal_usart.c'] src += ['STM32WLxx_HAL_Driver/Src/stm32wlxx_hal_usart_ex.c'] - + if GetDepend(['RT_USING_I2C']): src += ['STM32WLxx_HAL_Driver/Src/stm32wlxx_hal_i2c.c'] src += ['STM32WLxx_HAL_Driver/Src/stm32wlxx_hal_i2c_ex.c'] @@ -67,7 +67,7 @@ if GetDepend(['BSP_USING_ON_CHIP_FLASH']): if GetDepend(['BSP_USING_SUBGHZ']): src += ['STM32WLxx_HAL_Driver/Src/stm32wlxx_hal_subghz.c'] - + path = [cwd + '/STM32WLxx_HAL_Driver/Inc', cwd + '/CMSIS/Device/ST/STM32WLxx/Include'] diff --git a/bsp/stm32/libraries/templates/stm32f0xx/board/Kconfig b/bsp/stm32/libraries/templates/stm32f0xx/board/Kconfig index c873cac7be..522a2239e2 100644 --- a/bsp/stm32/libraries/templates/stm32f0xx/board/Kconfig +++ b/bsp/stm32/libraries/templates/stm32f0xx/board/Kconfig @@ -32,9 +32,9 @@ menu "On-chip Peripheral Drivers" depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA default n endif - + source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/libraries/templates/stm32f10x/board/Kconfig b/bsp/stm32/libraries/templates/stm32f10x/board/Kconfig index ff3822a59d..3e1b8229f4 100644 --- a/bsp/stm32/libraries/templates/stm32f10x/board/Kconfig +++ b/bsp/stm32/libraries/templates/stm32f10x/board/Kconfig @@ -34,7 +34,7 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/libraries/templates/stm32f2xx/Kconfig b/bsp/stm32/libraries/templates/stm32f2xx/Kconfig index 91ff7ca63f..7a400db91f 100644 --- a/bsp/stm32/libraries/templates/stm32f2xx/Kconfig +++ b/bsp/stm32/libraries/templates/stm32f2xx/Kconfig @@ -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" diff --git a/bsp/stm32/libraries/templates/stm32f2xx/board/Kconfig b/bsp/stm32/libraries/templates/stm32f2xx/board/Kconfig index 7ecf21c14c..16686c801c 100644 --- a/bsp/stm32/libraries/templates/stm32f2xx/board/Kconfig +++ b/bsp/stm32/libraries/templates/stm32f2xx/board/Kconfig @@ -32,9 +32,9 @@ menu "On-chip Peripheral Drivers" depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA default n endif - + source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/libraries/templates/stm32f2xx/board/SConscript b/bsp/stm32/libraries/templates/stm32f2xx/board/SConscript index fff36bd306..d6cec77f3a 100644 --- a/bsp/stm32/libraries/templates/stm32f2xx/board/SConscript +++ b/bsp/stm32/libraries/templates/stm32f2xx/board/SConscript @@ -25,7 +25,7 @@ elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32F2xx_HAL/CMSIS/Device/ST/STM32F2xx/Source/Templates/iar/startup_stm32f207xx.s'] # STM32F205xx || STM32F207xx || STM32F215xx -# STM32F217xx +# STM32F217xx # You can select chips from the list above CPPDEFINES = ['STM32F207xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/stm32/libraries/templates/stm32f3xx/Kconfig b/bsp/stm32/libraries/templates/stm32f3xx/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/libraries/templates/stm32f3xx/Kconfig +++ b/bsp/stm32/libraries/templates/stm32f3xx/Kconfig @@ -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" diff --git a/bsp/stm32/libraries/templates/stm32f3xx/board/Kconfig b/bsp/stm32/libraries/templates/stm32f3xx/board/Kconfig index 7877fe81df..40c58e15d0 100644 --- a/bsp/stm32/libraries/templates/stm32f3xx/board/Kconfig +++ b/bsp/stm32/libraries/templates/stm32f3xx/board/Kconfig @@ -27,11 +27,11 @@ menu "On-chip Peripheral Drivers" bool "Enable UART2" default y endif - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/libraries/templates/stm32f3xx/board/SConscript b/bsp/stm32/libraries/templates/stm32f3xx/board/SConscript index 9fe15f4963..b1ae4b014a 100644 --- a/bsp/stm32/libraries/templates/stm32f3xx/board/SConscript +++ b/bsp/stm32/libraries/templates/stm32f3xx/board/SConscript @@ -24,10 +24,10 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32F3xx_HAL/CMSIS/Device/ST/STM32F3xx/Source/Templates/iar/startup_stm32f302x8.s'] -# (STM32F301x8) || (STM32F302x8) || (STM32F318xx) -# (STM32F302xC) || (STM32F303xC) || (STM32F358xx) -# (STM32F303x8) || (STM32F334x8) || (STM32F328xx) -# (STM32F302xE) || (STM32F303xE) || (STM32F398xx) +# (STM32F301x8) || (STM32F302x8) || (STM32F318xx) +# (STM32F302xC) || (STM32F303xC) || (STM32F358xx) +# (STM32F303x8) || (STM32F334x8) || (STM32F328xx) +# (STM32F302xE) || (STM32F303xE) || (STM32F398xx) # (STM32F373xC) || (STM32F378xx) # You can select chips from the list above CPPDEFINES = ['STM32F302x8'] diff --git a/bsp/stm32/libraries/templates/stm32f4xx/Kconfig b/bsp/stm32/libraries/templates/stm32f4xx/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/libraries/templates/stm32f4xx/Kconfig +++ b/bsp/stm32/libraries/templates/stm32f4xx/Kconfig @@ -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" diff --git a/bsp/stm32/libraries/templates/stm32f4xx/board/Kconfig b/bsp/stm32/libraries/templates/stm32f4xx/board/Kconfig index 24a15a4e3e..81bc6c1aa9 100644 --- a/bsp/stm32/libraries/templates/stm32f4xx/board/Kconfig +++ b/bsp/stm32/libraries/templates/stm32f4xx/board/Kconfig @@ -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 diff --git a/bsp/stm32/libraries/templates/stm32f7xx/Kconfig b/bsp/stm32/libraries/templates/stm32f7xx/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/libraries/templates/stm32f7xx/Kconfig +++ b/bsp/stm32/libraries/templates/stm32f7xx/Kconfig @@ -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" diff --git a/bsp/stm32/libraries/templates/stm32f7xx/board/Kconfig b/bsp/stm32/libraries/templates/stm32f7xx/board/Kconfig index b5b0310c28..6495614694 100644 --- a/bsp/stm32/libraries/templates/stm32f7xx/board/Kconfig +++ b/bsp/stm32/libraries/templates/stm32f7xx/board/Kconfig @@ -34,11 +34,11 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/libraries/templates/stm32f7xx/board/SConscript b/bsp/stm32/libraries/templates/stm32f7xx/board/SConscript index 7b405b2d6c..93716be3b6 100644 --- a/bsp/stm32/libraries/templates/stm32f7xx/board/SConscript +++ b/bsp/stm32/libraries/templates/stm32f7xx/board/SConscript @@ -21,8 +21,8 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/iar/startup_stm32f767xx.s'] -# STM32F756xx || STM32F746xx || STM32F745xx || STM32F767xx || -# STM32F769xx || STM32F777xx || STM32F779xx || STM32F722xx || +# STM32F756xx || STM32F746xx || STM32F745xx || STM32F767xx || +# STM32F769xx || STM32F777xx || STM32F779xx || STM32F722xx || # STM32F723xx || STM32F732xx || STM32F733xx || STM32F730xx || STM32F750xx # You can select chips from the list above CPPDEFINES = ['STM32F767xx'] diff --git a/bsp/stm32/libraries/templates/stm32h7xx/Kconfig b/bsp/stm32/libraries/templates/stm32h7xx/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/libraries/templates/stm32h7xx/Kconfig +++ b/bsp/stm32/libraries/templates/stm32h7xx/Kconfig @@ -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" diff --git a/bsp/stm32/libraries/templates/stm32h7xx/board/Kconfig b/bsp/stm32/libraries/templates/stm32h7xx/board/Kconfig index 0a018a7a38..2547353580 100644 --- a/bsp/stm32/libraries/templates/stm32h7xx/board/Kconfig +++ b/bsp/stm32/libraries/templates/stm32h7xx/board/Kconfig @@ -28,13 +28,13 @@ menu "On-chip Peripheral Drivers" default y endif - + source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/libraries/templates/stm32l1xx/board/Kconfig b/bsp/stm32/libraries/templates/stm32l1xx/board/Kconfig index ebf997e6c4..93c14df120 100644 --- a/bsp/stm32/libraries/templates/stm32l1xx/board/Kconfig +++ b/bsp/stm32/libraries/templates/stm32l1xx/board/Kconfig @@ -18,7 +18,7 @@ menu "Onboard Peripheral Drivers" bool "Enable USBD as USB device" select RT_USING_USB_DEVICE select BSP_USING_USBD - default n + default n config BSP_USING_EEPROM bool "Enable I2C EEPROM (i2c1)" select BSP_USING_I2C1 @@ -26,7 +26,7 @@ menu "Onboard Peripheral Drivers" config BSP_USING_SPI_FLASH bool "Enable SPI FLASH (W25Q16 spi2)" - select BSP_USING_SPI + select BSP_USING_SPI select BSP_USING_SPI2 select RT_USING_SFUD select RT_SFUD_USING_SFDP @@ -36,7 +36,7 @@ menu "Onboard Peripheral Drivers" bool "Enable potentiometer" select BSP_USING_ADC select BSP_USING_ADC1 - default n + default n endmenu @@ -69,7 +69,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART2 RX DMA" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n - + config BSP_USING_UART3 bool "Enable UART3" default n @@ -77,8 +77,8 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA - default n - endif + default n + endif menuconfig BSP_USING_TIM bool "Enable timer" @@ -116,7 +116,7 @@ menu "On-chip Peripheral Drivers" default n endif endif - + menuconfig BSP_USING_SPI bool "Enable SPI BUS" default n @@ -130,7 +130,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -139,13 +139,13 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n - + default n + config BSP_SPI2_TX_USING_DMA bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 default n - + config BSP_SPI2_RX_USING_DMA bool "Enable SPI2 RX DMA" depends on BSP_USING_SPI2 @@ -182,7 +182,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_ON_CHIP_FLASH bool "Enable on-chip FLASH" - default n + default n menuconfig BSP_USING_ONCHIP_RTC bool "Enable RTC" @@ -205,9 +205,9 @@ menu "On-chip Peripheral Drivers" bool "Enable Watchdog Timer" select RT_USING_WDT default n - + source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/libraries/templates/stm32l1xx/board/SConscript b/bsp/stm32/libraries/templates/stm32l1xx/board/SConscript index d6fad1007d..dac6746b65 100644 --- a/bsp/stm32/libraries/templates/stm32l1xx/board/SConscript +++ b/bsp/stm32/libraries/templates/stm32l1xx/board/SConscript @@ -27,7 +27,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/arm/startup_stm32L151xb.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/iar/startup_stm32L151xb.s'] - + CPPDEFINES = ['STM32L151xB'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/stm32/libraries/templates/stm32l4xx/Kconfig b/bsp/stm32/libraries/templates/stm32l4xx/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/libraries/templates/stm32l4xx/Kconfig +++ b/bsp/stm32/libraries/templates/stm32l4xx/Kconfig @@ -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" diff --git a/bsp/stm32/libraries/templates/stm32l4xx/board/Kconfig b/bsp/stm32/libraries/templates/stm32l4xx/board/Kconfig index aaf0cac98d..e8b7bbcb31 100644 --- a/bsp/stm32/libraries/templates/stm32l4xx/board/Kconfig +++ b/bsp/stm32/libraries/templates/stm32l4xx/board/Kconfig @@ -31,10 +31,10 @@ menu "On-chip Peripheral Drivers" bool "Enable UART1 RX DMA" depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA default n - endif + endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/libraries/templates/stm32l4xx/board/SConscript b/bsp/stm32/libraries/templates/stm32l4xx/board/SConscript index b4ea2eea49..4d0d56ea5f 100644 --- a/bsp/stm32/libraries/templates/stm32l4xx/board/SConscript +++ b/bsp/stm32/libraries/templates/stm32l4xx/board/SConscript @@ -32,7 +32,7 @@ elif rtconfig.PLATFORM in ['iccarm']: # STM32L496xx || STM32L4A6xx || STM32L4R5xx # STM32L4R7xx || STM32L4R9xx || STM32L4S5xx # STM32L4S7xx || STM32L4S9xx -# You can select chips from the list above +# You can select chips from the list above CPPDEFINES = ['STM32L475xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/stm32/libraries/templates/stm32l5xx/Kconfig b/bsp/stm32/libraries/templates/stm32l5xx/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/libraries/templates/stm32l5xx/Kconfig +++ b/bsp/stm32/libraries/templates/stm32l5xx/Kconfig @@ -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" diff --git a/bsp/stm32/libraries/templates/stm32l5xx/board/Kconfig b/bsp/stm32/libraries/templates/stm32l5xx/board/Kconfig index 9a8f6e3dd7..cb91e5e446 100644 --- a/bsp/stm32/libraries/templates/stm32l5xx/board/Kconfig +++ b/bsp/stm32/libraries/templates/stm32l5xx/board/Kconfig @@ -31,10 +31,10 @@ menu "On-chip Peripheral Drivers" bool "Enable UART1 RX DMA" depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA default n - endif + endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/libraries/templates/stm32l5xx/board/SConscript b/bsp/stm32/libraries/templates/stm32l5xx/board/SConscript index cb5f07626e..0ca1f7c912 100644 --- a/bsp/stm32/libraries/templates/stm32l5xx/board/SConscript +++ b/bsp/stm32/libraries/templates/stm32l5xx/board/SConscript @@ -24,7 +24,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32L5xx_HAL/CMSIS/Device/ST/STM32L5xx/Source/Templates/iar/startup_stm32l552xx.s'] -# You can select chips from the list above +# You can select chips from the list above CPPDEFINES = ['STM32L552xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/stm32/libraries/templates/stm32mp1xx/board/Kconfig b/bsp/stm32/libraries/templates/stm32mp1xx/board/Kconfig index 9be8881802..1400cb32e3 100644 --- a/bsp/stm32/libraries/templates/stm32mp1xx/board/Kconfig +++ b/bsp/stm32/libraries/templates/stm32mp1xx/board/Kconfig @@ -22,7 +22,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_SERIAL default y if BSP_USING_UART - + config BSP_USING_UART4 bool "Enable UART4" default y @@ -40,7 +40,7 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/libraries/templates/stm32wbxx/Kconfig b/bsp/stm32/libraries/templates/stm32wbxx/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/libraries/templates/stm32wbxx/Kconfig +++ b/bsp/stm32/libraries/templates/stm32wbxx/Kconfig @@ -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" diff --git a/bsp/stm32/libraries/templates/stm32wbxx/board/Kconfig b/bsp/stm32/libraries/templates/stm32wbxx/board/Kconfig index 428a7d3592..806100aca1 100644 --- a/bsp/stm32/libraries/templates/stm32wbxx/board/Kconfig +++ b/bsp/stm32/libraries/templates/stm32wbxx/board/Kconfig @@ -37,7 +37,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART1 RX DMA" depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA default n - + config BSP_USING_LPUART1 bool "Enable LPUART1" default n @@ -66,7 +66,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -75,7 +75,7 @@ menu "On-chip Peripheral Drivers" endif - + menuconfig BSP_USING_I2C bool "Enable I2C BUS" @@ -88,7 +88,7 @@ menu "On-chip Peripheral Drivers" bool "Enable I2C1 BUS (software simulation)" default y if BSP_USING_I2C1 - comment "Notice: PB8 --> 24; PB9 --> 25" + comment "Notice: PB8 --> 24; PB9 --> 25" config BSP_I2C1_SCL_PIN int "i2c1 scl pin number" range 1 143 @@ -103,7 +103,7 @@ menu "On-chip Peripheral Drivers" bool "Enable I2C3 BUS (software simulation)" default y if BSP_USING_I2C3 - comment "Notice: PB13 --> 29; PAB6 -->30" + comment "Notice: PB13 --> 29; PAB6 -->30" config BSP_I2C3_SCL_PIN int "i2c3 scl pin number" range 1 143 @@ -158,7 +158,7 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/libraries/templates/stm32wbxx/board/SConscript b/bsp/stm32/libraries/templates/stm32wbxx/board/SConscript index ddbdcaac36..7f5ca6d437 100644 --- a/bsp/stm32/libraries/templates/stm32wbxx/board/SConscript +++ b/bsp/stm32/libraries/templates/stm32wbxx/board/SConscript @@ -25,7 +25,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32WBxx_HAL/CMSIS/Device/ST/STM32WBxx/Source/Templates/iar/startup_stm32wb55xx_cm4.s'] -# You can select chips from the list above +# You can select chips from the list above CPPDEFINES = ['STM32WB55xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/stm32/stm32f072-st-nucleo/board/Kconfig b/bsp/stm32/stm32f072-st-nucleo/board/Kconfig index 02f8cddb1d..647979d24b 100644 --- a/bsp/stm32/stm32f072-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32f072-st-nucleo/board/Kconfig @@ -154,7 +154,7 @@ menu "On-chip Peripheral Drivers" bool "Enable I2C1 Bus (User I2C)" default n if BSP_USING_I2C1 - comment "Notice: PB9 --> 25; PB8 --> 24" + comment "Notice: PB9 --> 25; PB8 --> 24" config BSP_I2C1_SCL_PIN int "i2c1 SCL pin number" range 1 176 @@ -167,7 +167,7 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f091-st-nucleo/board/Kconfig b/bsp/stm32/stm32f091-st-nucleo/board/Kconfig index 3fc3dbc78f..804cc2f258 100644 --- a/bsp/stm32/stm32f091-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32f091-st-nucleo/board/Kconfig @@ -62,7 +62,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -70,7 +70,7 @@ menu "On-chip Peripheral Drivers" default n endif - + menuconfig BSP_USING_I2C1 bool "Enable I2C1 BUS (software simulation)" default n @@ -133,7 +133,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_ON_CHIP_FLASH bool "Enable on-chip FLASH" - default n + default n menuconfig BSP_USING_ONCHIP_RTC bool "Enable RTC" @@ -158,7 +158,7 @@ menu "On-chip Peripheral Drivers" default n source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f091-st-nucleo/board/SConscript b/bsp/stm32/stm32f091-st-nucleo/board/SConscript index 519d0cd7d7..4c233cbeac 100644 --- a/bsp/stm32/stm32f091-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32f091-st-nucleo/board/SConscript @@ -24,7 +24,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/STM32F0xx_HAL/CMSIS/Device/ST/STM32F0xx/Source/Templates/arm/startup_stm32f091xc.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32F0xx_HAL/CMSIS/Device/ST/STM32F0xx/Source/Templates/iar/startup_stm32f091xc.s'] - + CPPDEFINES = ['STM32F091xC'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/stm32/stm32f103-100ask-mini/board/Kconfig b/bsp/stm32/stm32f103-100ask-mini/board/Kconfig index 84951f4ac6..ee8a6172c2 100644 --- a/bsp/stm32/stm32f103-100ask-mini/board/Kconfig +++ b/bsp/stm32/stm32f103-100ask-mini/board/Kconfig @@ -57,7 +57,7 @@ menu "On-chip Peripheral Drivers" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n endif - + menuconfig BSP_USING_SPI bool "Enable SPI BUS" default n @@ -71,7 +71,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -80,7 +80,7 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f103-100ask-pro/board/Kconfig b/bsp/stm32/stm32f103-100ask-pro/board/Kconfig index 7fd61b0c57..e7a16e428e 100644 --- a/bsp/stm32/stm32f103-100ask-pro/board/Kconfig +++ b/bsp/stm32/stm32f103-100ask-pro/board/Kconfig @@ -29,11 +29,11 @@ menu "Onboard Peripheral Drivers" bool "Enable potentiometer" select BSP_USING_ADC select BSP_USING_ADC1 - default n - - config BSP_USING_SPI_FLASH + default n + + config BSP_USING_SPI_FLASH bool "Enable SPI FLASH (W25Q64 spi1)" - select BSP_USING_SPI + select BSP_USING_SPI select BSP_USING_SPI1 select RT_USING_SFUD select RT_SFUD_USING_SFDP @@ -99,7 +99,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -114,7 +114,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 default n - + config BSP_SPI2_RX_USING_DMA bool "Enable SPI2 RX DMA" depends on BSP_USING_SPI2 @@ -202,14 +202,14 @@ menu "On-chip Peripheral Drivers" default n endif endif - + config BSP_USING_CAN bool "Enable CAN" select RT_USING_CAN default n source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f103-atk-nano/board/Kconfig b/bsp/stm32/stm32f103-atk-nano/board/Kconfig index 39caa5b0ba..0211a46686 100644 --- a/bsp/stm32/stm32f103-atk-nano/board/Kconfig +++ b/bsp/stm32/stm32f103-atk-nano/board/Kconfig @@ -22,7 +22,7 @@ menu "Onboard Peripheral Drivers" config BSP_USING_SPI_FLASH bool "Enable SPI FLASH (W25Q16 spi2)" - select BSP_USING_SPI + select BSP_USING_SPI select BSP_USING_SPI2 select RT_USING_SFUD select RT_SFUD_USING_SFDP @@ -32,7 +32,7 @@ menu "Onboard Peripheral Drivers" bool "Enable potentiometer" select BSP_USING_ADC select BSP_USING_ADC1 - default n + default n endmenu @@ -65,7 +65,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART2 RX DMA" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n - + config BSP_USING_UART3 bool "Enable UART3" default n @@ -73,8 +73,8 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA - default n - endif + default n + endif menuconfig BSP_USING_TIM bool "Enable timer" @@ -112,7 +112,7 @@ menu "On-chip Peripheral Drivers" default n endif endif - + menuconfig BSP_USING_SPI bool "Enable SPI BUS" default n @@ -126,7 +126,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -135,13 +135,13 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n - + default n + config BSP_SPI2_TX_USING_DMA bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 default n - + config BSP_SPI2_RX_USING_DMA bool "Enable SPI2 RX DMA" depends on BSP_USING_SPI2 @@ -178,7 +178,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_ON_CHIP_FLASH bool "Enable on-chip FLASH" - default n + default n menuconfig BSP_USING_ONCHIP_RTC bool "Enable RTC" @@ -201,9 +201,9 @@ menu "On-chip Peripheral Drivers" bool "Enable Watchdog Timer" select RT_USING_WDT default n - + source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f103-atk-nano/board/SConscript b/bsp/stm32/stm32f103-atk-nano/board/SConscript index 8b21a72b43..c96005d9dd 100644 --- a/bsp/stm32/stm32f103-atk-nano/board/SConscript +++ b/bsp/stm32/stm32f103-atk-nano/board/SConscript @@ -27,7 +27,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xb.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f103xb.s'] - + CPPDEFINES = ['STM32F103xB'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/stm32/stm32f103-atk-warshipv3/board/Kconfig b/bsp/stm32/stm32f103-atk-warshipv3/board/Kconfig index cdcde48156..9d3e81b729 100644 --- a/bsp/stm32/stm32f103-atk-warshipv3/board/Kconfig +++ b/bsp/stm32/stm32f103-atk-warshipv3/board/Kconfig @@ -22,7 +22,7 @@ menu "Onboard Peripheral Drivers" config BSP_USING_SPI_FLASH bool "Enable SPI FLASH (W25Q16 spi2)" - select BSP_USING_SPI + select BSP_USING_SPI select BSP_USING_SPI2 select RT_USING_SFUD select RT_SFUD_USING_SFDP @@ -32,7 +32,7 @@ menu "Onboard Peripheral Drivers" bool "Enable potentiometer" select BSP_USING_ADC select BSP_USING_ADC1 - default n + default n config BSP_USING_EXT_SRAM bool "Enable external sram" @@ -78,7 +78,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART2 RX DMA" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n - + config BSP_USING_UART3 bool "Enable UART3" default n @@ -86,8 +86,8 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA - default n - endif + default n + endif menuconfig BSP_USING_TIM bool "Enable timer" @@ -125,7 +125,7 @@ menu "On-chip Peripheral Drivers" default n endif endif - + menuconfig BSP_USING_SPI bool "Enable SPI BUS" default n @@ -139,7 +139,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -148,13 +148,13 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n - + default n + config BSP_SPI2_TX_USING_DMA bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 default n - + config BSP_SPI2_RX_USING_DMA bool "Enable SPI2 RX DMA" depends on BSP_USING_SPI2 @@ -202,7 +202,7 @@ menu "On-chip Peripheral Drivers" endif config BSP_USING_ON_CHIP_FLASH bool "Enable on-chip FLASH" - default n + default n menuconfig BSP_USING_ONCHIP_RTC bool "Enable RTC" @@ -243,7 +243,7 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f103-blue-pill/applications/SConscript b/bsp/stm32/stm32f103-blue-pill/applications/SConscript index 6b22aa91b9..a241e123b0 100644 --- a/bsp/stm32/stm32f103-blue-pill/applications/SConscript +++ b/bsp/stm32/stm32f103-blue-pill/applications/SConscript @@ -7,7 +7,7 @@ CPPPATH = [cwd] if GetDepend(['PKG_USING_RTDUINO']) and not GetDepend(['RTDUINO_NO_SETUP_LOOP']): src += ['arduino_main.cpp'] - + group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) list = os.listdir(cwd) diff --git a/bsp/stm32/stm32f103-blue-pill/board/Kconfig b/bsp/stm32/stm32f103-blue-pill/board/Kconfig index 51640560c2..424a306a33 100644 --- a/bsp/stm32/stm32f103-blue-pill/board/Kconfig +++ b/bsp/stm32/stm32f103-blue-pill/board/Kconfig @@ -83,7 +83,7 @@ menu "On-chip Peripheral Drivers" depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA default n endif - + menuconfig BSP_USING_I2C1 bool "Enable I2C1 BUS (software simulation)" default n @@ -157,7 +157,7 @@ menu "On-chip Peripheral Drivers" bool "RTC USING LSI" endchoice endif - + menuconfig BSP_USING_SPI bool "Enable SPI BUS" default n @@ -171,7 +171,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 default n - + config BSP_SPI2_RX_USING_DMA bool "Enable SPI2 RX DMA" depends on BSP_USING_SPI2 @@ -196,7 +196,7 @@ menu "On-chip Peripheral Drivers" default n source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f103-dofly-M3S/board/Kconfig b/bsp/stm32/stm32f103-dofly-M3S/board/Kconfig index 82f0ab5a1d..87315ee04e 100644 --- a/bsp/stm32/stm32f103-dofly-M3S/board/Kconfig +++ b/bsp/stm32/stm32f103-dofly-M3S/board/Kconfig @@ -16,7 +16,7 @@ menu "Onboard Peripheral Drivers" select RT_USING_DFS_ELMFAT select RT_USING_PIN default n - + config BSP_USING_SPI_SDCARD bool "Enable SDCARD (spi2)" select BSP_USING_SPI @@ -25,7 +25,7 @@ menu "Onboard Peripheral Drivers" select RT_USING_DFS select RT_USING_DFS_ELMFAT default n - + config BSP_USING_SPI_FLASH bool "Enable SPI FLASH (W25Q64 spi2)" select BSP_USING_SPI @@ -33,7 +33,7 @@ menu "Onboard Peripheral Drivers" select RT_USING_SFUD select RT_SFUD_USING_SFDP default n - + config BSP_USING_EEPROM bool "Enable I2C EEPROM (i2c2)" select BSP_USING_I2C2 @@ -57,7 +57,7 @@ menu "On-chip Peripheral Drivers" default y endif - + menuconfig BSP_USING_SPI bool "Enable SPI BUS" default n @@ -71,7 +71,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -80,35 +80,35 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n - + default n + config BSP_SPI2_TX_USING_DMA bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 default n - + config BSP_SPI2_RX_USING_DMA bool "Enable SPI2 RX DMA" depends on BSP_USING_SPI2 select BSP_SPI2_TX_USING_DMA default n - + config BSP_USING_SPI3 bool "Enable SPI3 BUS" - default n + default n config BSP_SPI3_TX_USING_DMA bool "Enable SPI3 TX DMA" depends on BSP_USING_SPI3 default n - + config BSP_SPI3_RX_USING_DMA bool "Enable SPI3 RX DMA" depends on BSP_USING_SPI3 select BSP_SPI3_TX_USING_DMA - default n + default n endif - + menuconfig BSP_USING_I2C2 bool "Enable I2C2 BUS (software simulation)" default n @@ -116,7 +116,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_I2C_BITOPS select RT_USING_PIN if BSP_USING_I2C2 - comment "Notice: PB10 --> 26; PB11 --> 27" + comment "Notice: PB10 --> 26; PB11 --> 27" config BSP_I2C2_SCL_PIN int "i2c2 scl pin number" range 0 175 @@ -126,18 +126,18 @@ menu "On-chip Peripheral Drivers" range 0 175 default 27 endif - + config BSP_USING_ON_CHIP_FLASH bool "Enable on-chip FLASH" default n - + config BSP_USING_SDIO bool "Enable SDIO" select RT_USING_SDIO select RT_USING_DFS default n source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f103-dofly-M3S/board/SConscript b/bsp/stm32/stm32f103-dofly-M3S/board/SConscript index dffd9fb8ea..40d5f6764f 100644 --- a/bsp/stm32/stm32f103-dofly-M3S/board/SConscript +++ b/bsp/stm32/stm32f103-dofly-M3S/board/SConscript @@ -14,10 +14,10 @@ CubeMX_Config/Src/stm32f1xx_hal_msp.c if GetDepend(['BSP_USING_SDIO_SDCARD']): src += Glob('ports/drv_sdcard.c') - + if GetDepend(['BSP_USING_SPI_SDCARD']): src += Glob('ports/drv_sdcard.c') - + if GetDepend(['BSP_USING_SPI_FLASH']): src += Glob('ports/spi_flash_init.c') diff --git a/bsp/stm32/stm32f103-dofly-lyc8/board/Kconfig b/bsp/stm32/stm32f103-dofly-lyc8/board/Kconfig index 6670e7ea48..c7657228fa 100644 --- a/bsp/stm32/stm32f103-dofly-lyc8/board/Kconfig +++ b/bsp/stm32/stm32f103-dofly-lyc8/board/Kconfig @@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers" default n endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f103-fire-arbitrary/board/Kconfig b/bsp/stm32/stm32f103-fire-arbitrary/board/Kconfig index 3918589451..1da381d3f4 100644 --- a/bsp/stm32/stm32f103-fire-arbitrary/board/Kconfig +++ b/bsp/stm32/stm32f103-fire-arbitrary/board/Kconfig @@ -49,7 +49,7 @@ menu "Onboard Peripheral Drivers" bool "Enable potentiometer" select BSP_USING_ADC select BSP_USING_ADC1 - default n + default n config BSP_USING_EEPROM bool "Enable I2C EEPROM (i2c1)" @@ -121,7 +121,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART2 RX DMA" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n - + config BSP_USING_UART3 bool "Enable UART3" default n @@ -129,9 +129,9 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA - default n + default n endif - + config BSP_USING_ON_CHIP_FLASH bool "Enable on-chip FLASH" default n @@ -149,7 +149,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -158,33 +158,33 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n - + default n + config BSP_SPI2_TX_USING_DMA bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 default n - + config BSP_SPI2_RX_USING_DMA bool "Enable SPI2 RX DMA" depends on BSP_USING_SPI2 select BSP_SPI2_TX_USING_DMA default n - + config BSP_USING_SPI3 bool "Enable SPI3 BUS" - default n + default n config BSP_SPI3_TX_USING_DMA bool "Enable SPI3 TX DMA" depends on BSP_USING_SPI3 default n - + config BSP_SPI3_RX_USING_DMA bool "Enable SPI3 RX DMA" depends on BSP_USING_SPI3 select BSP_SPI3_TX_USING_DMA - default n + default n endif menuconfig BSP_USING_I2C1 @@ -311,7 +311,7 @@ menu "On-chip Peripheral Drivers" default 0 endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f103-fire-arbitrary/board/SConscript b/bsp/stm32/stm32f103-fire-arbitrary/board/SConscript index f5e3fba8b0..34ee25d52b 100644 --- a/bsp/stm32/stm32f103-fire-arbitrary/board/SConscript +++ b/bsp/stm32/stm32f103-fire-arbitrary/board/SConscript @@ -33,7 +33,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xe.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f103xe.s'] - + CPPDEFINES = ['STM32F103xE'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/stm32/stm32f103-gizwits-gokitv21/board/Kconfig b/bsp/stm32/stm32f103-gizwits-gokitv21/board/Kconfig index 63afb79a2f..7e159d6fb1 100644 --- a/bsp/stm32/stm32f103-gizwits-gokitv21/board/Kconfig +++ b/bsp/stm32/stm32f103-gizwits-gokitv21/board/Kconfig @@ -54,7 +54,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -79,7 +79,7 @@ menu "On-chip Peripheral Drivers" default 16 endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f103-hw100k-ibox/board/Kconfig b/bsp/stm32/stm32f103-hw100k-ibox/board/Kconfig index 3b38cbbc8e..7c7cce397c 100644 --- a/bsp/stm32/stm32f103-hw100k-ibox/board/Kconfig +++ b/bsp/stm32/stm32f103-hw100k-ibox/board/Kconfig @@ -217,7 +217,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_WDT default n source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f103-hw100k-ibox/board/SConscript b/bsp/stm32/stm32f103-hw100k-ibox/board/SConscript index 490cea816a..13f739b069 100644 --- a/bsp/stm32/stm32f103-hw100k-ibox/board/SConscript +++ b/bsp/stm32/stm32f103-hw100k-ibox/board/SConscript @@ -13,12 +13,12 @@ CubeMX_Config/Src/stm32f1xx_hal_msp.c ''') if GetDepend(['BSP_USING_ETH']): src += Glob('ports/w5500_device.c') - + if GetDepend(['BSP_USING_WIFI_OR_GPRS']): - src += Glob('ports/esp02_device.c') + src += Glob('ports/esp02_device.c') if GetDepend(['BSP_USING_ON_CHIP_FLASH']): - src += Glob('ports/on_chip_flash_init.c') - + src += Glob('ports/on_chip_flash_init.c') + path = [cwd] path += [cwd + '/CubeMX_Config/Inc'] path += [cwd + '/ports'] diff --git a/bsp/stm32/stm32f103-onenet-nbiot/board/Kconfig b/bsp/stm32/stm32f103-onenet-nbiot/board/Kconfig index 1b9f27221e..b532fa55c4 100644 --- a/bsp/stm32/stm32f103-onenet-nbiot/board/Kconfig +++ b/bsp/stm32/stm32f103-onenet-nbiot/board/Kconfig @@ -46,7 +46,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART2 RX DMA" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n - + config BSP_USING_UART3 bool "Enable UART3" default n @@ -54,8 +54,8 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA - default n - + default n + config BSP_USING_UART4 bool "Enable UART4" default n @@ -63,13 +63,13 @@ menu "On-chip Peripheral Drivers" config BSP_UART4_RX_USING_DMA bool "Enable UART4 RX DMA" depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA - default n - - endif + default n + + endif + - source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f103-onenet-nbiot/board/SConscript b/bsp/stm32/stm32f103-onenet-nbiot/board/SConscript index 9ae5bf07fe..21d385d7d9 100644 --- a/bsp/stm32/stm32f103-onenet-nbiot/board/SConscript +++ b/bsp/stm32/stm32f103-onenet-nbiot/board/SConscript @@ -26,7 +26,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xe.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f103xe.s'] - + CPPDEFINES = ['STM32F103xE'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/stm32/stm32f103-yf-ufun/board/Kconfig b/bsp/stm32/stm32f103-yf-ufun/board/Kconfig index 77bd279089..4892c73b49 100644 --- a/bsp/stm32/stm32f103-yf-ufun/board/Kconfig +++ b/bsp/stm32/stm32f103-yf-ufun/board/Kconfig @@ -46,7 +46,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -102,7 +102,7 @@ menu "On-chip Peripheral Drivers" default n source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f107-uc-eval/board/Kconfig b/bsp/stm32/stm32f107-uc-eval/board/Kconfig index c5f23f9f56..10acf5fca5 100644 --- a/bsp/stm32/stm32f107-uc-eval/board/Kconfig +++ b/bsp/stm32/stm32f107-uc-eval/board/Kconfig @@ -32,8 +32,8 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART2 bool "Enable UART2" default y - - config BSP_UART2_RX_USING_DMA + + config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n @@ -42,7 +42,7 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f207-st-nucleo/board/Kconfig b/bsp/stm32/stm32f207-st-nucleo/board/Kconfig index e302b7a386..9521c89825 100644 --- a/bsp/stm32/stm32f207-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32f207-st-nucleo/board/Kconfig @@ -27,9 +27,9 @@ menu "On-chip Peripheral Drivers" bool "Enable UART3" default y endif - + source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f207-st-nucleo/board/SConscript b/bsp/stm32/stm32f207-st-nucleo/board/SConscript index 641a6d2749..5c6f42ae45 100644 --- a/bsp/stm32/stm32f207-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32f207-st-nucleo/board/SConscript @@ -25,7 +25,7 @@ elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32F2xx_HAL/CMSIS/Device/ST/STM32F2xx/Source/Templates/iar/startup_stm32f207xx.s'] # STM32F205xx || STM32F207xx || STM32F215xx -# STM32F217xx +# STM32F217xx # You can select chips from the list above CPPDEFINES = ['STM32F207xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/stm32/stm32f302-st-nucleo/Kconfig b/bsp/stm32/stm32f302-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f302-st-nucleo/Kconfig +++ b/bsp/stm32/stm32f302-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f302-st-nucleo/board/Kconfig b/bsp/stm32/stm32f302-st-nucleo/board/Kconfig index 4848227ae9..e4414bfa2a 100644 --- a/bsp/stm32/stm32f302-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32f302-st-nucleo/board/Kconfig @@ -38,11 +38,11 @@ menu "On-chip Peripheral Drivers" default n endif - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32f302-st-nucleo/board/SConscript b/bsp/stm32/stm32f302-st-nucleo/board/SConscript index 9fe15f4963..b1ae4b014a 100644 --- a/bsp/stm32/stm32f302-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32f302-st-nucleo/board/SConscript @@ -24,10 +24,10 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32F3xx_HAL/CMSIS/Device/ST/STM32F3xx/Source/Templates/iar/startup_stm32f302x8.s'] -# (STM32F301x8) || (STM32F302x8) || (STM32F318xx) -# (STM32F302xC) || (STM32F303xC) || (STM32F358xx) -# (STM32F303x8) || (STM32F334x8) || (STM32F328xx) -# (STM32F302xE) || (STM32F303xE) || (STM32F398xx) +# (STM32F301x8) || (STM32F302x8) || (STM32F318xx) +# (STM32F302xC) || (STM32F303xC) || (STM32F358xx) +# (STM32F303x8) || (STM32F334x8) || (STM32F328xx) +# (STM32F302xE) || (STM32F303xE) || (STM32F398xx) # (STM32F373xC) || (STM32F378xx) # You can select chips from the list above CPPDEFINES = ['STM32F302x8'] diff --git a/bsp/stm32/stm32f401-st-nucleo/Kconfig b/bsp/stm32/stm32f401-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f401-st-nucleo/Kconfig +++ b/bsp/stm32/stm32f401-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f401-st-nucleo/board/Kconfig b/bsp/stm32/stm32f401-st-nucleo/board/Kconfig index 915d47b653..328baff04b 100644 --- a/bsp/stm32/stm32f401-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32f401-st-nucleo/board/Kconfig @@ -125,7 +125,7 @@ menu "On-chip Peripheral Drivers" bool "Enable PWM3 channel2" default n endif - + menuconfig BSP_USING_PWM4 bool "Enable timer4 output PWM" default n @@ -149,7 +149,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -169,7 +169,7 @@ menu "On-chip Peripheral Drivers" bool "Enable I2C1 Bus (User I2C)" default n if BSP_USING_I2C1 - comment "Notice: PB9 --> 25; PB8 --> 24" + comment "Notice: PB9 --> 25; PB8 --> 24" config BSP_I2C1_SCL_PIN int "i2c1 SCL pin number" range 1 176 @@ -182,11 +182,11 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32f405-smdz-breadfruit/Kconfig b/bsp/stm32/stm32f405-smdz-breadfruit/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f405-smdz-breadfruit/Kconfig +++ b/bsp/stm32/stm32f405-smdz-breadfruit/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f405-smdz-breadfruit/board/Kconfig b/bsp/stm32/stm32f405-smdz-breadfruit/board/Kconfig index 20a39a470b..9a69caa853 100644 --- a/bsp/stm32/stm32f405-smdz-breadfruit/board/Kconfig +++ b/bsp/stm32/stm32f405-smdz-breadfruit/board/Kconfig @@ -33,11 +33,11 @@ menu "On-chip Peripheral Drivers" default n endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32f407-armfly-v5/Kconfig b/bsp/stm32/stm32f407-armfly-v5/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f407-armfly-v5/Kconfig +++ b/bsp/stm32/stm32f407-armfly-v5/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f407-armfly-v5/board/Kconfig b/bsp/stm32/stm32f407-armfly-v5/board/Kconfig index a0aee4ca7a..a67ea1f21d 100644 --- a/bsp/stm32/stm32f407-armfly-v5/board/Kconfig +++ b/bsp/stm32/stm32f407-armfly-v5/board/Kconfig @@ -14,8 +14,8 @@ menu "Onboard Peripheral Drivers" select BSP_USING_UART select BSP_USING_UART1 default y - - config BSP_USING_SPI_FLASH + + config BSP_USING_SPI_FLASH bool "Enable SPI FLASH (W25Q64 spi3)" select BSP_USING_SPI select BSP_USING_SPI3 @@ -71,7 +71,7 @@ menu "On-chip Peripheral Drivers" default n endif - + config BSP_USING_ON_CHIP_FLASH bool "Enable on-chip FLASH" default n @@ -89,7 +89,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI3 TX DMA" depends on BSP_USING_SPI3 default n - + config BSP_SPI3_RX_USING_DMA bool "Enable SPI3 RX DMA" depends on BSP_USING_SPI3 @@ -186,12 +186,12 @@ menu "On-chip Peripheral Drivers" select RT_USING_DFS default n - source "../libraries/HAL_Drivers/Kconfig" - + source "../libraries/HAL_Drivers/Kconfig" + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32f407-atk-explorer/Kconfig b/bsp/stm32/stm32f407-atk-explorer/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f407-atk-explorer/Kconfig +++ b/bsp/stm32/stm32f407-atk-explorer/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f407-atk-explorer/board/Kconfig b/bsp/stm32/stm32f407-atk-explorer/board/Kconfig index b62ef50547..8445eff75f 100644 --- a/bsp/stm32/stm32f407-atk-explorer/board/Kconfig +++ b/bsp/stm32/stm32f407-atk-explorer/board/Kconfig @@ -47,7 +47,7 @@ menu "Onboard Peripheral Drivers" bool "Enable lcd fill test" default y endif - + menuconfig BSP_USING_TOUCH bool "Use LCD TOUCH (Default Res)" default n @@ -318,7 +318,7 @@ menu "On-chip Peripheral Drivers" range 1 176 default 91 endif - + menuconfig BSP_USING_SOFT_SPI2 bool "Enable soft SPI2 BUS (software simulation)" default n diff --git a/bsp/stm32/stm32f407-robomaster-c/Kconfig b/bsp/stm32/stm32f407-robomaster-c/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f407-robomaster-c/Kconfig +++ b/bsp/stm32/stm32f407-robomaster-c/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f407-robomaster-c/board/Kconfig b/bsp/stm32/stm32f407-robomaster-c/board/Kconfig index 25d4ade311..78eaf1cd33 100644 --- a/bsp/stm32/stm32f407-robomaster-c/board/Kconfig +++ b/bsp/stm32/stm32f407-robomaster-c/board/Kconfig @@ -31,7 +31,7 @@ menu "Onboard Peripheral Drivers" imply RTDUINO_USING_SERVO imply RTDUINO_USING_WIRE default n - + endmenu menu "On-chip Peripheral Drivers" @@ -91,7 +91,7 @@ menu "On-chip Peripheral Drivers" default n select RT_USING_PWM if BSP_USING_PWM - + menuconfig BSP_USING_PWM1 bool "Enable timer1 output PWM" default n @@ -133,7 +133,7 @@ menu "On-chip Peripheral Drivers" bool "Enable PWM5 channel3(LED_R)" default n endif - + menuconfig BSP_USING_PWM8 bool "Enable timer8 output PWM" default n @@ -150,7 +150,7 @@ menu "On-chip Peripheral Drivers" endif endif - + menuconfig BSP_USING_ADC bool "Enable ADC" default n @@ -171,13 +171,13 @@ menu "On-chip Peripheral Drivers" if BSP_USING_SPI config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n - + default n + config BSP_SPI2_TX_USING_DMA bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 default n - + config BSP_SPI2_RX_USING_DMA bool "Enable SPI2 RX DMA" depends on BSP_USING_SPI2 @@ -201,13 +201,13 @@ menu "On-chip Peripheral Drivers" default 80 endif - - source "../libraries/HAL_Drivers/Kconfig" - + + source "../libraries/HAL_Drivers/Kconfig" + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32f407-st-discovery/Kconfig b/bsp/stm32/stm32f407-st-discovery/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f407-st-discovery/Kconfig +++ b/bsp/stm32/stm32f407-st-discovery/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f407-st-discovery/board/Kconfig b/bsp/stm32/stm32f407-st-discovery/board/Kconfig index 476864f4e6..d68092835a 100644 --- a/bsp/stm32/stm32f407-st-discovery/board/Kconfig +++ b/bsp/stm32/stm32f407-st-discovery/board/Kconfig @@ -46,7 +46,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -71,11 +71,11 @@ menu "On-chip Peripheral Drivers" default 25 endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32f410-st-nucleo/Kconfig b/bsp/stm32/stm32f410-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f410-st-nucleo/Kconfig +++ b/bsp/stm32/stm32f410-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f410-st-nucleo/board/Kconfig b/bsp/stm32/stm32f410-st-nucleo/board/Kconfig index 1e8fda9e88..20f8611262 100644 --- a/bsp/stm32/stm32f410-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32f410-st-nucleo/board/Kconfig @@ -13,7 +13,7 @@ menu "Onboard Peripheral Drivers" select BSP_USING_UART select BSP_USING_UART2 default y - + config BSP_USING_ARDUINO bool "Compatible with Arduino Ecosystem (RTduino)" select PKG_USING_RTDUINO @@ -53,7 +53,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART1 RX DMA" depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA default n - + config BSP_USING_UART2 bool "Enable UART2" default y @@ -73,7 +73,7 @@ menu "On-chip Peripheral Drivers" bool "Enable ADC1" default n endif - + menuconfig BSP_USING_PWM bool "Enable PWM" default n @@ -94,8 +94,8 @@ menu "On-chip Peripheral Drivers" bool "Enable PWM1 channel3" default n endif - endif - + endif + menuconfig BSP_USING_I2C1 bool "Enable I2C1 BUS (software simulation)" default n @@ -103,7 +103,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_I2C_BITOPS select RT_USING_PIN if BSP_USING_I2C1 - comment "Notice: PB8 --> 24; PB9 --> 25" + comment "Notice: PB8 --> 24; PB9 --> 25" config BSP_I2C1_SCL_PIN int "i2c1 scl pin number" range 0 80 @@ -113,9 +113,9 @@ menu "On-chip Peripheral Drivers" range 0 80 default 25 endif - + source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f411-atk-nano/Kconfig b/bsp/stm32/stm32f411-atk-nano/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f411-atk-nano/Kconfig +++ b/bsp/stm32/stm32f411-atk-nano/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f411-atk-nano/board/Kconfig b/bsp/stm32/stm32f411-atk-nano/board/Kconfig index 805bfb0f2b..a8c6c66091 100644 --- a/bsp/stm32/stm32f411-atk-nano/board/Kconfig +++ b/bsp/stm32/stm32f411-atk-nano/board/Kconfig @@ -22,7 +22,7 @@ menu "Onboard Peripheral Drivers" config BSP_USING_SPI_FLASH bool "Enable SPI FLASH (W25Q16 spi2)" - select BSP_USING_SPI + select BSP_USING_SPI select BSP_USING_SPI2 select RT_USING_SFUD select RT_SFUD_USING_SFDP @@ -32,7 +32,7 @@ menu "Onboard Peripheral Drivers" bool "Enable potentiometer" select BSP_USING_ADC select BSP_USING_ADC1 - default n + default n endmenu @@ -65,7 +65,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART2 RX DMA" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n - endif + endif menuconfig BSP_USING_TIM bool "Enable timer" @@ -84,7 +84,7 @@ menu "On-chip Peripheral Drivers" bool "Enable TIM4" default n endif - + menuconfig BSP_USING_SPI bool "Enable SPI BUS" default n @@ -92,13 +92,13 @@ menu "On-chip Peripheral Drivers" if BSP_USING_SPI config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n - + default n + config BSP_SPI2_TX_USING_DMA bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 default n - + config BSP_SPI2_RX_USING_DMA bool "Enable SPI2 RX DMA" depends on BSP_USING_SPI2 @@ -135,7 +135,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_ON_CHIP_FLASH bool "Enable on-chip FLASH" - default n + default n menuconfig BSP_USING_ONCHIP_RTC bool "Enable RTC" @@ -158,9 +158,9 @@ menu "On-chip Peripheral Drivers" bool "Enable Watchdog Timer" select RT_USING_WDT default n - + source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f411-st-nucleo/Kconfig b/bsp/stm32/stm32f411-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f411-st-nucleo/Kconfig +++ b/bsp/stm32/stm32f411-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f411-st-nucleo/board/Kconfig b/bsp/stm32/stm32f411-st-nucleo/board/Kconfig index d8b8368a99..94febef60f 100644 --- a/bsp/stm32/stm32f411-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32f411-st-nucleo/board/Kconfig @@ -88,7 +88,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_I2C_BITOPS select RT_USING_PIN if BSP_USING_I2C1 - comment "Notice: PB8 --> 24; PB9 --> 25" + comment "Notice: PB8 --> 24; PB9 --> 25" config BSP_I2C1_SCL_PIN int "i2c1 scl pin number" range 0 80 @@ -143,7 +143,7 @@ menu "On-chip Peripheral Drivers" bool "Enable PWM3 channel4" default n endif - + menuconfig BSP_USING_PWM4 bool "Enable timer4 output PWM" default n @@ -174,14 +174,14 @@ menu "On-chip Peripheral Drivers" config BSP_USING_ON_CHIP_FLASH bool "Enable on-chip FLASH" default n - + config BSP_USING_WDT bool "Enable Watchdog Timer" select RT_USING_WDT default n - + source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f411-st-nucleo/board/SConscript b/bsp/stm32/stm32f411-st-nucleo/board/SConscript index 5e116aa426..92b8b3c24a 100644 --- a/bsp/stm32/stm32f411-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32f411-st-nucleo/board/SConscript @@ -34,4 +34,4 @@ elif rtconfig.PLATFORM in ['iccarm']: CPPDEFINES = ['STM32F411xE'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/stm32/stm32f411-weact-blackpill/Kconfig b/bsp/stm32/stm32f411-weact-blackpill/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f411-weact-blackpill/Kconfig +++ b/bsp/stm32/stm32f411-weact-blackpill/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f411-weact-blackpill/board/Kconfig b/bsp/stm32/stm32f411-weact-blackpill/board/Kconfig index 203949b544..50bfa7cde4 100644 --- a/bsp/stm32/stm32f411-weact-blackpill/board/Kconfig +++ b/bsp/stm32/stm32f411-weact-blackpill/board/Kconfig @@ -84,7 +84,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_I2C_BITOPS select RT_USING_PIN if BSP_USING_I2C1 - comment "Notice: PC14 --> 46; PC15 --> 47" + comment "Notice: PC14 --> 46; PC15 --> 47" config BSP_I2C1_SCL_PIN int "i2c1 scl pin number" range 0 48 @@ -111,7 +111,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_PWM1_CH2 bool "Enable PWM1 channel2" default n - + config BSP_USING_PWM1_CH3 bool "Enable PWM1 channel3" default n @@ -152,7 +152,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 diff --git a/bsp/stm32/stm32f411-weact-blackpill/board/SConscript b/bsp/stm32/stm32f411-weact-blackpill/board/SConscript index df234f1152..c5e326f0c5 100644 --- a/bsp/stm32/stm32f411-weact-blackpill/board/SConscript +++ b/bsp/stm32/stm32f411-weact-blackpill/board/SConscript @@ -35,4 +35,4 @@ elif rtconfig.PLATFORM in ['iccarm']: CPPDEFINES = ['STM32F411xE'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/stm32/stm32f412-st-nucleo/Kconfig b/bsp/stm32/stm32f412-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f412-st-nucleo/Kconfig +++ b/bsp/stm32/stm32f412-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f412-st-nucleo/board/Kconfig b/bsp/stm32/stm32f412-st-nucleo/board/Kconfig index 3f041988ae..40dc97105f 100644 --- a/bsp/stm32/stm32f412-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32f412-st-nucleo/board/Kconfig @@ -138,7 +138,7 @@ menu "On-chip Peripheral Drivers" bool "Enable I2C1 Bus (User I2C)" default n if BSP_USING_I2C1 - comment "Notice: PB9 --> 25; PB8 --> 24" + comment "Notice: PB9 --> 25; PB8 --> 24" config BSP_I2C1_SCL_PIN int "i2c1 SCL pin number" range 1 176 diff --git a/bsp/stm32/stm32f412-st-nucleo/board/SConscript b/bsp/stm32/stm32f412-st-nucleo/board/SConscript index 9c38059432..345ee56223 100644 --- a/bsp/stm32/stm32f412-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32f412-st-nucleo/board/SConscript @@ -34,4 +34,4 @@ elif rtconfig.PLATFORM in ['iccarm']: CPPDEFINES = ['STM32F412Zx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/stm32/stm32f413-st-nucleo/Kconfig b/bsp/stm32/stm32f413-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f413-st-nucleo/Kconfig +++ b/bsp/stm32/stm32f413-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f413-st-nucleo/board/Kconfig b/bsp/stm32/stm32f413-st-nucleo/board/Kconfig index c8e546399f..6af6135074 100644 --- a/bsp/stm32/stm32f413-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32f413-st-nucleo/board/Kconfig @@ -35,7 +35,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART2 RX DMA" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n - + config BSP_USING_UART3 bool "Enable UART3" default y @@ -44,7 +44,7 @@ menu "On-chip Peripheral Drivers" depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA default n endif - + menuconfig BSP_USING_SPI bool "Enable SPI BUS" default n @@ -52,19 +52,19 @@ menu "On-chip Peripheral Drivers" if BSP_USING_SPI config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n - + default n + config BSP_SPI2_TX_USING_DMA bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 default n - + config BSP_SPI2_RX_USING_DMA bool "Enable SPI2 RX DMA" depends on BSP_USING_SPI2 select BSP_SPI2_TX_USING_DMA default n - + endif menuconfig BSP_USING_I2C1 @@ -84,7 +84,7 @@ menu "On-chip Peripheral Drivers" range 1 144 default 140 endif - + menuconfig BSP_USING_TIM bool "Enable timer" default n @@ -149,7 +149,7 @@ menu "On-chip Peripheral Drivers" bool "Enable Watchdog Timer" select RT_USING_WDT default n - + config BSP_USING_ON_CHIP_FLASH bool "Enable on-chip FLASH" default n @@ -159,13 +159,13 @@ menu "On-chip Peripheral Drivers" select RT_USING_USB_DEVICE select BSP_USBD_TYPE_FS default n - - source "../libraries/HAL_Drivers/Kconfig" - + + source "../libraries/HAL_Drivers/Kconfig" + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32f427-robomaster-a/Kconfig b/bsp/stm32/stm32f427-robomaster-a/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f427-robomaster-a/Kconfig +++ b/bsp/stm32/stm32f427-robomaster-a/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f427-robomaster-a/board/Kconfig b/bsp/stm32/stm32f427-robomaster-a/board/Kconfig index b7b6e1f1e2..0ced347439 100644 --- a/bsp/stm32/stm32f427-robomaster-a/board/Kconfig +++ b/bsp/stm32/stm32f427-robomaster-a/board/Kconfig @@ -14,7 +14,7 @@ menu "Onboard Peripheral Drivers" select RT_USING_DFS select RT_USING_DFS_ELMFAT default n - + config BSP_USING_ARDUINO bool "Compatible with Arduino Ecosystem (RTduino)" select PKG_USING_RTDUINO @@ -50,7 +50,7 @@ menu "Onboard Peripheral Drivers" imply RTDUINO_USING_SERVO imply RTDUINO_USING_WIRE default n - + endmenu menu "On-chip Peripheral Drivers" @@ -147,7 +147,7 @@ menu "On-chip Peripheral Drivers" bool "Enable I2C1 Bus (User I2C)" default n if BSP_USING_I2C1 - comment "Notice: PE4 --> 68; PE5 --> 69" + comment "Notice: PE4 --> 68; PE5 --> 69" config BSP_I2C1_SCL_PIN int "i2c1 SCL pin number" range 1 176 @@ -226,7 +226,7 @@ menu "On-chip Peripheral Drivers" bool "Enable PWM2 channel4" default n endif - + menuconfig BSP_USING_PWM8 bool "Enable timer8 output PWM" default n @@ -246,7 +246,7 @@ menu "On-chip Peripheral Drivers" endif endif - source "../libraries/HAL_Drivers/Kconfig" + source "../libraries/HAL_Drivers/Kconfig" endmenu diff --git a/bsp/stm32/stm32f429-armfly-v6/Kconfig b/bsp/stm32/stm32f429-armfly-v6/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f429-armfly-v6/Kconfig +++ b/bsp/stm32/stm32f429-armfly-v6/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f429-armfly-v6/board/Kconfig b/bsp/stm32/stm32f429-armfly-v6/board/Kconfig index be917b6e88..0aa90398d8 100644 --- a/bsp/stm32/stm32f429-armfly-v6/board/Kconfig +++ b/bsp/stm32/stm32f429-armfly-v6/board/Kconfig @@ -20,12 +20,12 @@ menu "Onboard Peripheral Drivers" select BSP_USING_FMC default y - config BSP_USING_SDRAM + config BSP_USING_SDRAM bool "Enable SDRAM" select BSP_USING_FMC default n - - config BSP_USING_SPI_FLASH + + config BSP_USING_SPI_FLASH bool "Enable SPI FLASH (W25Q64 spi3)" select BSP_USING_SPI select BSP_USING_SPI3 @@ -53,9 +53,9 @@ menu "Onboard Peripheral Drivers" bool "enable phy interrupt mode" select PHY_INT_PIN default n - + config PHY_INT_PIN - int + int default 118 endif @@ -116,7 +116,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI3 TX DMA" depends on BSP_USING_SPI3 default n - + config BSP_SPI3_RX_USING_DMA bool "Enable SPI3 RX DMA" depends on BSP_USING_SPI3 @@ -220,11 +220,11 @@ menu "On-chip Peripheral Drivers" bool default n source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32f429-armfly-v6/board/SConscript b/bsp/stm32/stm32f429-armfly-v6/board/SConscript index d8c4ccafab..07e128024f 100644 --- a/bsp/stm32/stm32f429-armfly-v6/board/SConscript +++ b/bsp/stm32/stm32f429-armfly-v6/board/SConscript @@ -14,7 +14,7 @@ CubeMX_Config/Src/stm32f4xx_hal_msp.c if GetDepend(['BSP_USING_ETH']): src += Glob('ports/phy_reset.c') - + if GetDepend(['BSP_USING_SPI_FLASH']): src += Glob('ports/spi_flash_init.c') @@ -27,7 +27,7 @@ if GetDepend(['BSP_USING_EXT_FMC_IO']): path = [cwd] path += [cwd + '/CubeMX_Config/Inc'] path += [cwd + '/ports'] - + startup_path_prefix = SDK_LIB if rtconfig.PLATFORM in ['gcc']: diff --git a/bsp/stm32/stm32f429-atk-apollo/Kconfig b/bsp/stm32/stm32f429-atk-apollo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f429-atk-apollo/Kconfig +++ b/bsp/stm32/stm32f429-atk-apollo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f429-atk-apollo/board/Kconfig b/bsp/stm32/stm32f429-atk-apollo/board/Kconfig index 78733fba8c..0e2fa4d833 100644 --- a/bsp/stm32/stm32f429-atk-apollo/board/Kconfig +++ b/bsp/stm32/stm32f429-atk-apollo/board/Kconfig @@ -63,13 +63,13 @@ menu "Onboard Peripheral Drivers" select RT_USING_DFS select RT_USING_DFS_ELMFAT default n - + config BSP_USING_AUDIO bool "Enable AUDIO (WM8978)" select BSP_USING_I2C1 select RT_USING_AUDIO default n - + if BSP_USING_AUDIO config BSP_USING_AUDIO_PLAY bool "Enable Audio Play" @@ -79,8 +79,8 @@ menu "Onboard Peripheral Drivers" bool "Enable Audio Record" select BSP_USING_AUDIO_PLAY default n - endif - + endif + endmenu menu "On-chip Peripheral Drivers" @@ -112,16 +112,16 @@ menu "On-chip Peripheral Drivers" bool "Enable UART2 RX DMA" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n - + config BSP_USING_UART3 bool "Enable UART3" default n depends on !BSP_USING_ETH - + config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA - default n + default n endif config BSP_USING_ON_CHIP_FLASH @@ -150,7 +150,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -159,33 +159,33 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n - + default n + config BSP_SPI2_TX_USING_DMA bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 default n - + config BSP_SPI2_RX_USING_DMA bool "Enable SPI2 RX DMA" depends on BSP_USING_SPI2 select BSP_SPI2_TX_USING_DMA default n - + config BSP_USING_SPI5 bool "Enable SPI5 BUS" - default n + default n config BSP_SPI5_TX_USING_DMA bool "Enable SPI5 TX DMA" depends on BSP_USING_SPI5 default n - + config BSP_SPI5_RX_USING_DMA bool "Enable SPI5 RX DMA" depends on BSP_USING_SPI5 select BSP_SPI5_TX_USING_DMA - default n + default n endif menuconfig BSP_USING_I2C1 @@ -296,7 +296,7 @@ menu "On-chip Peripheral Drivers" bool default n source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f429-atk-apollo/board/SConscript b/bsp/stm32/stm32f429-atk-apollo/board/SConscript index 7e12660bd7..0649e2cc7e 100644 --- a/bsp/stm32/stm32f429-atk-apollo/board/SConscript +++ b/bsp/stm32/stm32f429-atk-apollo/board/SConscript @@ -14,27 +14,27 @@ CubeMX_Config/Src/stm32f4xx_hal_msp.c if GetDepend(['BSP_USING_ETH']): src += Glob('ports/phy_reset.c') - + if GetDepend(['BSP_USING_SPI_FLASH']): src += Glob('ports/spi_flash_init.c') if GetDepend(['BSP_USING_SDCARD']): src += Glob('ports/sdcard_port.c') - + if GetDepend(['BSP_USING_AUDIO']): src += Glob('ports/audio/drv_wm8978.c') src += Glob('ports/audio/drv_sound.c') - + if GetDepend(['BSP_USING_AUDIO_RECORD']): - src += Glob('ports/audio/drv_mic.c') - + src += Glob('ports/audio/drv_mic.c') + path = [cwd] path += [cwd + '/CubeMX_Config/Inc'] path += [cwd + '/ports'] - + if GetDepend(['BSP_USING_AUDIO']): path += [cwd + '/ports/audio'] - + startup_path_prefix = SDK_LIB if rtconfig.PLATFORM in ['gcc']: diff --git a/bsp/stm32/stm32f429-fire-challenger/Kconfig b/bsp/stm32/stm32f429-fire-challenger/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f429-fire-challenger/Kconfig +++ b/bsp/stm32/stm32f429-fire-challenger/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f429-fire-challenger/board/Kconfig b/bsp/stm32/stm32f429-fire-challenger/board/Kconfig index 7cb8370d9b..36af05fe92 100644 --- a/bsp/stm32/stm32f429-fire-challenger/board/Kconfig +++ b/bsp/stm32/stm32f429-fire-challenger/board/Kconfig @@ -20,12 +20,12 @@ menu "Onboard Peripheral Drivers" select BSP_USING_UART select BSP_USING_UART2 default n - + config BSP_USING_SDRAM bool "Enable SDRAM" select BSP_USING_FMC default n - + config BSP_USING_SPI_FLASH bool "Enable SPI FLASH (W25Q128 spi5)" select BSP_USING_SPI @@ -39,16 +39,16 @@ menu "Onboard Peripheral Drivers" select BSP_USING_LTDC select BSP_USING_SDRAM default n - + config BSP_USING_MPU6050 bool "Enable MPU6050 (i2c1)" select BSP_USING_I2C1 select PKG_USING_MPU6XXX default n - + config PHY_USING_LAN8720A bool - + config BSP_USING_ETH bool "Enable Ethernet" default n @@ -120,21 +120,21 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI BUS" default n select RT_USING_SPI - if BSP_USING_SPI + if BSP_USING_SPI config BSP_USING_SPI5 bool "Enable SPI5 BUS" - default n + default n config BSP_SPI5_TX_USING_DMA bool "Enable SPI5 TX DMA" depends on BSP_USING_SPI5 default n - + config BSP_SPI5_RX_USING_DMA bool "Enable SPI5 RX DMA" depends on BSP_USING_SPI5 select BSP_SPI5_TX_USING_DMA - default n + default n endif menuconfig BSP_USING_TIM @@ -195,7 +195,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_I2C_BITOPS select RT_USING_PIN if BSP_USING_I2C1 - comment "Notice: PB6 --> 22; PB7 --> 23" + comment "Notice: PB6 --> 22; PB7 --> 23" config BSP_I2C1_SCL_PIN int "I2C1 scl pin number" range 1 176 @@ -242,7 +242,7 @@ menu "On-chip Peripheral Drivers" bool default n source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f429-fire-challenger/board/SConscript b/bsp/stm32/stm32f429-fire-challenger/board/SConscript index a0b697822c..efb1aca97a 100644 --- a/bsp/stm32/stm32f429-fire-challenger/board/SConscript +++ b/bsp/stm32/stm32f429-fire-challenger/board/SConscript @@ -37,4 +37,4 @@ elif rtconfig.PLATFORM in ['iccarm']: CPPDEFINES = ['STM32F429xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/stm32/stm32f429-st-disco/Kconfig b/bsp/stm32/stm32f429-st-disco/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f429-st-disco/Kconfig +++ b/bsp/stm32/stm32f429-st-disco/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f429-st-disco/board/Kconfig b/bsp/stm32/stm32f429-st-disco/board/Kconfig index 2461f52bd4..fddfaa9616 100644 --- a/bsp/stm32/stm32f429-st-disco/board/Kconfig +++ b/bsp/stm32/stm32f429-st-disco/board/Kconfig @@ -45,9 +45,9 @@ menu "On-chip Peripheral Drivers" bool "Enable UART2 RX DMA" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n - + endif - + menuconfig BSP_USING_I2C1 bool "Enable I2C1 BUS (software simulation)" default n @@ -69,23 +69,23 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI BUS" select RT_USING_SPI default y - if BSP_USING_SPI + if BSP_USING_SPI config BSP_USING_SPI3 bool "Enable SPI3 BUS" - default n + default n config BSP_SPI3_TX_USING_DMA bool "Enable SPI3 TX DMA" depends on BSP_USING_SPI3 default n - + config BSP_SPI3_RX_USING_DMA bool "Enable SPI3 RX DMA" depends on BSP_USING_SPI3 select BSP_SPI3_TX_USING_DMA - default n + default n endif - + config BSP_USING_QSPI bool "Enable QSPI BUS" select RT_USING_QSPI @@ -118,5 +118,5 @@ endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32f446-st-nucleo/Kconfig b/bsp/stm32/stm32f446-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f446-st-nucleo/Kconfig +++ b/bsp/stm32/stm32f446-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f446-st-nucleo/board/Kconfig b/bsp/stm32/stm32f446-st-nucleo/board/Kconfig index 04197166f0..99d45bee62 100644 --- a/bsp/stm32/stm32f446-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32f446-st-nucleo/board/Kconfig @@ -33,11 +33,11 @@ menu "On-chip Peripheral Drivers" default n endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32f446-st-nucleo/board/SConscript b/bsp/stm32/stm32f446-st-nucleo/board/SConscript index 2f0551a379..ea2202e50f 100644 --- a/bsp/stm32/stm32f446-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32f446-st-nucleo/board/SConscript @@ -27,4 +27,4 @@ elif rtconfig.PLATFORM in ['iccarm']: CPPDEFINES = ['STM32F446xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/stm32/stm32f469-st-disco/Kconfig b/bsp/stm32/stm32f469-st-disco/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f469-st-disco/Kconfig +++ b/bsp/stm32/stm32f469-st-disco/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f469-st-disco/applications/SConscript b/bsp/stm32/stm32f469-st-disco/applications/SConscript index 4974d9c359..9318e1017e 100644 --- a/bsp/stm32/stm32f469-st-disco/applications/SConscript +++ b/bsp/stm32/stm32f469-st-disco/applications/SConscript @@ -7,7 +7,7 @@ src = ['main.c'] if GetDepend(['PKG_USING_RTDUINO']) and not GetDepend(['RTDUINO_NO_SETUP_LOOP']): src += ['arduino_main.cpp'] - + group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) list = os.listdir(cwd) diff --git a/bsp/stm32/stm32f469-st-disco/board/Kconfig b/bsp/stm32/stm32f469-st-disco/board/Kconfig index 5163be86fc..6eea01cadb 100644 --- a/bsp/stm32/stm32f469-st-disco/board/Kconfig +++ b/bsp/stm32/stm32f469-st-disco/board/Kconfig @@ -27,7 +27,7 @@ menu "Onboard Peripheral Drivers" select PKG_USING_LV_MUSIC_DEMO default y endif - + config BSP_USING_ARDUINO bool "Compatible with Arduino Ecosystem (RTduino)" select PKG_USING_RTDUINO @@ -64,7 +64,7 @@ menu "Onboard Peripheral Drivers" select RT_USING_FAL select FAL_USING_SFUD_PORT default n - + config BSP_MOUNT_QSPI_WITH_LFS bool "Mount QSPI flash to / with little fs" depends on BSP_USING_QSPI_FLASH @@ -72,7 +72,7 @@ menu "Onboard Peripheral Drivers" select RT_USING_MTD_NOR select RT_USING_DFS default y - + config BSP_USING_SDCARD bool "Enable SDCARD (sdio)" select BSP_USING_SDIO @@ -86,24 +86,24 @@ menu "Onboard Peripheral Drivers" range 0 24000000 depends on BSP_USING_SDCARD default 24000000 - + config BSP_USING_TOUCH bool "Enable touch screen" select BSP_USING_I2C1 - + choice prompt "Touch IC type" depends on BSP_USING_TOUCH default BSP_USING_TOUCH_FT6X36 config BSP_USING_TOUCH_FT6206 - bool "FT6206" + bool "FT6206" select PKG_USING_FT6206 config BSP_USING_TOUCH_FT6X36 bool "FT6x36" select PKG_USING_FT6236 - endchoice + endchoice config BSP_USING_LCD_MIPI bool @@ -193,7 +193,7 @@ menu "On-chip Peripheral Drivers" depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA default n endif - + menuconfig BSP_USING_I2C1 bool "Enable I2C1 BUS (software simulation)" select RT_USING_I2C @@ -201,7 +201,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_PIN default n if BSP_USING_I2C1 - comment "Notice: PB8 --> 24; PB9 --> 25" + comment "Notice: PB8 --> 24; PB9 --> 25" config BSP_I2C1_SCL_PIN int "I2C1 scl pin number" range 1 176 @@ -216,23 +216,23 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI BUS" select RT_USING_SPI default n - if BSP_USING_SPI + if BSP_USING_SPI config BSP_USING_SPI3 bool "Enable SPI3 BUS" - default n + default n config BSP_SPI3_TX_USING_DMA bool "Enable SPI3 TX DMA" depends on BSP_USING_SPI3 default n - + config BSP_SPI3_RX_USING_DMA bool "Enable SPI3 RX DMA" depends on BSP_USING_SPI3 select BSP_SPI3_TX_USING_DMA - default n + default n endif - + config BSP_USING_QSPI bool "Enable QSPI BUS" select RT_USING_QSPI @@ -246,7 +246,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_FMC bool "Enable FMC" default n - + config BSP_USING_SDIO bool "Enable SDIO" select RT_USING_SDIO @@ -262,11 +262,11 @@ menu "On-chip Peripheral Drivers" bool "Enable LTDC" default n source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32f469-st-disco/board/SConscript b/bsp/stm32/stm32f469-st-disco/board/SConscript index 194948e3c3..be721272ea 100644 --- a/bsp/stm32/stm32f469-st-disco/board/SConscript +++ b/bsp/stm32/stm32f469-st-disco/board/SConscript @@ -17,7 +17,7 @@ if GetDepend(['BSP_USING_QSPI_FLASH']): if GetDepend(['RT_USING_FAL']): src += ['ports/qspi_mnt.c'] - + if GetDepend(['BSP_USING_LCD_OTM8009A']): src += ['ports/drv_otm8009a.c'] diff --git a/bsp/stm32/stm32f746-st-disco/Kconfig b/bsp/stm32/stm32f746-st-disco/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f746-st-disco/Kconfig +++ b/bsp/stm32/stm32f746-st-disco/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f746-st-disco/board/Kconfig b/bsp/stm32/stm32f746-st-disco/board/Kconfig index b10181eeb9..bcef1eb339 100644 --- a/bsp/stm32/stm32f746-st-disco/board/Kconfig +++ b/bsp/stm32/stm32f746-st-disco/board/Kconfig @@ -101,7 +101,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_SDIO select RT_USING_DFS default n - + config BSP_USING_FMC bool "Enable Flash Memory Controller(FMC)" default n @@ -110,11 +110,11 @@ menu "On-chip Peripheral Drivers" bool default n source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32f746-st-disco/board/SConscript b/bsp/stm32/stm32f746-st-disco/board/SConscript index 3173f33d8d..81f55fb0af 100644 --- a/bsp/stm32/stm32f746-st-disco/board/SConscript +++ b/bsp/stm32/stm32f746-st-disco/board/SConscript @@ -31,11 +31,11 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/iar/startup_stm32f746xx.s'] -# STM32F756xx || STM32F746xx || STM32F745xx || STM32F767xx || -# STM32F769xx || STM32F777xx || STM32F779xx || STM32F722xx || +# STM32F756xx || STM32F746xx || STM32F745xx || STM32F767xx || +# STM32F769xx || STM32F777xx || STM32F779xx || STM32F722xx || # STM32F723xx || STM32F732xx || STM32F733xx || STM32F730xx || STM32F750xx # You can select chips from the list above CPPDEFINES = ['STM32F746xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/stm32/stm32f746-st-nucleo/Kconfig b/bsp/stm32/stm32f746-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f746-st-nucleo/Kconfig +++ b/bsp/stm32/stm32f746-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f746-st-nucleo/board/Kconfig b/bsp/stm32/stm32f746-st-nucleo/board/Kconfig index ba0ea4a1e5..78ea3494a2 100644 --- a/bsp/stm32/stm32f746-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32f746-st-nucleo/board/Kconfig @@ -9,11 +9,11 @@ config SOC_STM32F746ZG menu "Onboard Peripheral Drivers" - config BSP_USING_USB_TO_USART + config BSP_USING_USB_TO_USART bool "Enable USB TO USART (uart3)" select BSP_USING_UART3 default y - + config BSP_USING_ETH bool "Enable Ethernet" select RT_USING_LWIP @@ -29,7 +29,7 @@ menu "Onboard Peripheral Drivers" config PHY_USING_DM9161CEP bool "DM9161CEP" - + config PHY_USING_LAN8742A bool "LAN8742A" endchoice @@ -48,7 +48,7 @@ menu "On-chip Peripheral Drivers" default y select RT_USING_SERIAL if BSP_USING_UART - + config BSP_USING_UART3 bool "Enable UART3" default n @@ -56,9 +56,9 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA - default n - - config BSP_USING_UART5 + default n + + config BSP_USING_UART5 bool "Enable UART5" default n @@ -67,7 +67,7 @@ menu "On-chip Peripheral Drivers" depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA default n endif - menuconfig BSP_USING_SPI + menuconfig BSP_USING_SPI bool "Enable SPI BUS" default n select RT_USING_SPI @@ -80,7 +80,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -89,33 +89,33 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n - + default n + config BSP_SPI2_TX_USING_DMA bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 default n - + config BSP_SPI2_RX_USING_DMA bool "Enable SPI2 RX DMA" depends on BSP_USING_SPI2 select BSP_SPI2_TX_USING_DMA default n - + config BSP_USING_SPI3 bool "Enable SPI3 BUS" - default n + default n config BSP_SPI3_TX_USING_DMA bool "Enable SPI3 TX DMA" depends on BSP_USING_SPI3 default n - + config BSP_SPI3_RX_USING_DMA bool "Enable SPI3 RX DMA" depends on BSP_USING_SPI3 select BSP_SPI3_TX_USING_DMA - default n + default n endif menuconfig BSP_USING_I2C1 @@ -242,11 +242,11 @@ menu "On-chip Peripheral Drivers" default 0 endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32f746-st-nucleo/board/SConscript b/bsp/stm32/stm32f746-st-nucleo/board/SConscript index a6affa9b90..9ae63d75b3 100644 --- a/bsp/stm32/stm32f746-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32f746-st-nucleo/board/SConscript @@ -26,8 +26,8 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/iar/startup_stm32f746xx.s'] -# STM32F756xx || STM32F746xx || STM32F745xx || STM32F767xx || -# STM32F769xx || STM32F777xx || STM32F779xx || STM32F722xx || +# STM32F756xx || STM32F746xx || STM32F745xx || STM32F767xx || +# STM32F769xx || STM32F777xx || STM32F779xx || STM32F722xx || # STM32F723xx || STM32F732xx || STM32F733xx || STM32F730xx || STM32F750xx # You can select chips from the list above CPPDEFINES = ['STM32F746xx'] diff --git a/bsp/stm32/stm32f767-atk-apollo/Kconfig b/bsp/stm32/stm32f767-atk-apollo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f767-atk-apollo/Kconfig +++ b/bsp/stm32/stm32f767-atk-apollo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f767-atk-apollo/board/Kconfig b/bsp/stm32/stm32f767-atk-apollo/board/Kconfig index c371b353f2..f47878e990 100644 --- a/bsp/stm32/stm32f767-atk-apollo/board/Kconfig +++ b/bsp/stm32/stm32f767-atk-apollo/board/Kconfig @@ -112,13 +112,13 @@ menu "On-chip Peripheral Drivers" if BSP_USING_SPI config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n - + default n + config BSP_SPI2_TX_USING_DMA bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 default n - + config BSP_SPI2_RX_USING_DMA bool "Enable SPI2 RX DMA" depends on BSP_USING_SPI2 @@ -179,7 +179,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_I2C_BITOPS select RT_USING_PIN if BSP_USING_I2C1 - comment "Notice: PB8 --> 24; PB9 --> 25" + comment "Notice: PB8 --> 24; PB9 --> 25" config BSP_I2C1_SCL_PIN int "I2C1 scl pin number" range 1 176 @@ -256,7 +256,7 @@ menu "On-chip Peripheral Drivers" default n source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f767-atk-apollo/board/SConscript b/bsp/stm32/stm32f767-atk-apollo/board/SConscript index 58644df0dd..064e826fc6 100644 --- a/bsp/stm32/stm32f767-atk-apollo/board/SConscript +++ b/bsp/stm32/stm32f767-atk-apollo/board/SConscript @@ -37,4 +37,4 @@ elif rtconfig.PLATFORM in ['iccarm']: CPPDEFINES = ['STM32F767xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/stm32/stm32f767-fire-challenger-v1/Kconfig b/bsp/stm32/stm32f767-fire-challenger-v1/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f767-fire-challenger-v1/Kconfig +++ b/bsp/stm32/stm32f767-fire-challenger-v1/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f767-fire-challenger-v1/board/Kconfig b/bsp/stm32/stm32f767-fire-challenger-v1/board/Kconfig index ecf85400fb..8b1918684d 100644 --- a/bsp/stm32/stm32f767-fire-challenger-v1/board/Kconfig +++ b/bsp/stm32/stm32f767-fire-challenger-v1/board/Kconfig @@ -50,7 +50,7 @@ menu "Onboard Peripheral Drivers" select BSP_USING_ADC select BSP_USING_ADC1 default n - + config BSP_USING_SDCARD bool "Enable SDCARD (sdio)" select BSP_USING_SDIO @@ -110,7 +110,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_QSPI select RT_USING_SPI default n - + menuconfig BSP_USING_ADC bool "Enable ADC" default n @@ -128,7 +128,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_I2C_BITOPS select RT_USING_PIN if BSP_USING_I2C1 - comment "Notice: PB6 --> 22; PB7 --> 23" + comment "Notice: PB6 --> 22; PB7 --> 23" config BSP_I2C1_SCL_PIN int "I2C1 scl pin number" range 1 176 @@ -166,7 +166,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_SDIO select RT_USING_DFS default n - + config BSP_USING_FMC bool default n @@ -174,9 +174,9 @@ menu "On-chip Peripheral Drivers" config BSP_USING_LTDC bool default n - + source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32f767-fire-challenger-v1/board/SConscript b/bsp/stm32/stm32f767-fire-challenger-v1/board/SConscript index 58644df0dd..064e826fc6 100644 --- a/bsp/stm32/stm32f767-fire-challenger-v1/board/SConscript +++ b/bsp/stm32/stm32f767-fire-challenger-v1/board/SConscript @@ -37,4 +37,4 @@ elif rtconfig.PLATFORM in ['iccarm']: CPPDEFINES = ['STM32F767xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/stm32/stm32f767-st-nucleo/Kconfig b/bsp/stm32/stm32f767-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f767-st-nucleo/Kconfig +++ b/bsp/stm32/stm32f767-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f767-st-nucleo/board/Kconfig b/bsp/stm32/stm32f767-st-nucleo/board/Kconfig index 849b397b3c..26f22c378a 100644 --- a/bsp/stm32/stm32f767-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32f767-st-nucleo/board/Kconfig @@ -1,6 +1,6 @@ menu "Hardware Drivers Config" -config SOC_STM32F767ZI +config SOC_STM32F767ZI bool select SOC_SERIES_STM32F7 select RT_USING_COMPONENTS_INIT @@ -9,11 +9,11 @@ config SOC_STM32F767ZI menu "Onboard Peripheral Drivers" - config BSP_USING_USB_TO_USART + config BSP_USING_USB_TO_USART bool "Enable USB TO USART (uart3)" select BSP_USING_UART3 default y - + config BSP_USING_ETH bool "Enable Ethernet" select RT_USING_LWIP @@ -32,7 +32,7 @@ menu "Onboard Peripheral Drivers" endchoice endif - + endmenu menu "On-chip Peripheral Drivers" @@ -57,11 +57,11 @@ menu "On-chip Peripheral Drivers" default n endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32f767-st-nucleo/board/SConscript b/bsp/stm32/stm32f767-st-nucleo/board/SConscript index 65fee2dbb2..5c9cd14927 100644 --- a/bsp/stm32/stm32f767-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32f767-st-nucleo/board/SConscript @@ -26,8 +26,8 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/iar/startup_stm32f767xx.s'] -# STM32F756xx || STM32F746xx || STM32F745xx || STM32F767xx || -# STM32F769xx || STM32F777xx || STM32F779xx || STM32F722xx || +# STM32F756xx || STM32F746xx || STM32F745xx || STM32F767xx || +# STM32F769xx || STM32F777xx || STM32F779xx || STM32F722xx || # STM32F723xx || STM32F732xx || STM32F733xx || STM32F730xx || STM32F750xx # You can select chips from the list above CPPDEFINES = ['STM32F767xx'] diff --git a/bsp/stm32/stm32f769-st-disco/Kconfig b/bsp/stm32/stm32f769-st-disco/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32f769-st-disco/Kconfig +++ b/bsp/stm32/stm32f769-st-disco/Kconfig @@ -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" diff --git a/bsp/stm32/stm32f769-st-disco/board/Kconfig b/bsp/stm32/stm32f769-st-disco/board/Kconfig index 03b60cf1c0..dbb42a1d99 100644 --- a/bsp/stm32/stm32f769-st-disco/board/Kconfig +++ b/bsp/stm32/stm32f769-st-disco/board/Kconfig @@ -53,12 +53,12 @@ menu "On-chip Peripheral Drivers" bool "Enable UART1 RX DMA" depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA default n - + config BSP_UART1_TX_USING_DMA bool "Enable UART1 TX DMA" depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA default n - + config BSP_USING_UART5 bool "Enable UART5" default n @@ -67,7 +67,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART5 RX DMA" depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA default n - + config BSP_UART5_TX_USING_DMA bool "Enable UART5 TX DMA" depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA @@ -75,11 +75,11 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32f769-st-disco/board/SConscript b/bsp/stm32/stm32f769-st-disco/board/SConscript index 3266673645..02eb6d0b9e 100644 --- a/bsp/stm32/stm32f769-st-disco/board/SConscript +++ b/bsp/stm32/stm32f769-st-disco/board/SConscript @@ -24,8 +24,8 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/iar/startup_stm32f767xx.s'] -# STM32F756xx || STM32F746xx || STM32F745xx || STM32F767xx || -# STM32F769xx || STM32F777xx || STM32F779xx || STM32F722xx || +# STM32F756xx || STM32F746xx || STM32F745xx || STM32F767xx || +# STM32F769xx || STM32F777xx || STM32F779xx || STM32F722xx || # STM32F723xx || STM32F732xx || STM32F733xx || STM32F730xx || STM32F750xx # You can select chips from the list above CPPDEFINES = ['STM32F769xx'] diff --git a/bsp/stm32/stm32g071-st-nucleo/board/Kconfig b/bsp/stm32/stm32g071-st-nucleo/board/Kconfig index 6eccd19184..ee86ae58dc 100644 --- a/bsp/stm32/stm32g071-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32g071-st-nucleo/board/Kconfig @@ -111,7 +111,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -120,13 +120,13 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n - + default n + config BSP_SPI2_TX_USING_DMA bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 default n - + config BSP_SPI2_RX_USING_DMA bool "Enable SPI2 RX DMA" depends on BSP_USING_SPI2 @@ -170,7 +170,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_WDT default n source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32g431-st-nucleo/Kconfig b/bsp/stm32/stm32g431-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32g431-st-nucleo/Kconfig +++ b/bsp/stm32/stm32g431-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32g431-st-nucleo/board/Kconfig b/bsp/stm32/stm32g431-st-nucleo/board/Kconfig index 045e58f932..1b769221f6 100644 --- a/bsp/stm32/stm32g431-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32g431-st-nucleo/board/Kconfig @@ -60,11 +60,11 @@ menu "On-chip Peripheral Drivers" default n endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32g431-st-nucleo/board/SConscript b/bsp/stm32/stm32g431-st-nucleo/board/SConscript index 0276408f8b..3ad9bb099d 100644 --- a/bsp/stm32/stm32g431-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32g431-st-nucleo/board/SConscript @@ -27,4 +27,4 @@ elif rtconfig.PLATFORM in ['iccarm']: CPPDEFINES = ['STM32G431xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/stm32/stm32g474-st-nucleo/Kconfig b/bsp/stm32/stm32g474-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32g474-st-nucleo/Kconfig +++ b/bsp/stm32/stm32g474-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32g474-st-nucleo/board/Kconfig b/bsp/stm32/stm32g474-st-nucleo/board/Kconfig index 22b870f50c..237d9e7aba 100644 --- a/bsp/stm32/stm32g474-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32g474-st-nucleo/board/Kconfig @@ -60,11 +60,11 @@ menu "On-chip Peripheral Drivers" default n endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32g474-st-nucleo/board/SConscript b/bsp/stm32/stm32g474-st-nucleo/board/SConscript index 349e1397ab..e171b274e2 100644 --- a/bsp/stm32/stm32g474-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32g474-st-nucleo/board/SConscript @@ -27,4 +27,4 @@ elif rtconfig.PLATFORM in ['iccarm']: CPPDEFINES = ['STM32G474xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/stm32/stm32h743-armfly-v7/Kconfig b/bsp/stm32/stm32h743-armfly-v7/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32h743-armfly-v7/Kconfig +++ b/bsp/stm32/stm32h743-armfly-v7/Kconfig @@ -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" diff --git a/bsp/stm32/stm32h743-armfly-v7/board/Kconfig b/bsp/stm32/stm32h743-armfly-v7/board/Kconfig index 598786d35d..3306a438ae 100644 --- a/bsp/stm32/stm32h743-armfly-v7/board/Kconfig +++ b/bsp/stm32/stm32h743-armfly-v7/board/Kconfig @@ -28,13 +28,13 @@ menu "On-chip Peripheral Drivers" default y endif - + source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32h743-atk-apollo/Kconfig b/bsp/stm32/stm32h743-atk-apollo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32h743-atk-apollo/Kconfig +++ b/bsp/stm32/stm32h743-atk-apollo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32h743-atk-apollo/board/Kconfig b/bsp/stm32/stm32h743-atk-apollo/board/Kconfig index 88809968fd..03206e5d11 100644 --- a/bsp/stm32/stm32h743-atk-apollo/board/Kconfig +++ b/bsp/stm32/stm32h743-atk-apollo/board/Kconfig @@ -96,7 +96,7 @@ menu "On-chip Peripheral Drivers" if BSP_USING_SPI config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n + default n endif config BSP_USING_QSPI diff --git a/bsp/stm32/stm32h743-openmv-h7plus/Kconfig b/bsp/stm32/stm32h743-openmv-h7plus/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32h743-openmv-h7plus/Kconfig +++ b/bsp/stm32/stm32h743-openmv-h7plus/Kconfig @@ -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" diff --git a/bsp/stm32/stm32h743-openmv-h7plus/board/Kconfig b/bsp/stm32/stm32h743-openmv-h7plus/board/Kconfig index 5bfdcdb3e3..ca3ae90a22 100644 --- a/bsp/stm32/stm32h743-openmv-h7plus/board/Kconfig +++ b/bsp/stm32/stm32h743-openmv-h7plus/board/Kconfig @@ -6,7 +6,7 @@ menu "Hardware Drivers Config" select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y - + menu "On-chip Peripheral Drivers" config BSP_USING_GPIO @@ -37,7 +37,7 @@ menu "Hardware Drivers Config" bool "Enable UART2 RX DMA" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n - + config BSP_USING_LPUART1 bool "Enable LPUART1" default n @@ -47,7 +47,7 @@ menu "Hardware Drivers Config" depends on BSP_USING_LPUART1 && RT_SERIAL_USING_DMA default n endif - + config BSP_USING_QSPI bool "Enable QSPI BUS" select RT_USING_QSPI @@ -60,7 +60,7 @@ menu "Hardware Drivers Config" default n source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Onboard Peripheral Drivers" @@ -86,7 +86,7 @@ menu "Hardware Drivers Config" config BSP_USING_USBD bool "Enable OTGFS as USB device" select RT_USING_USB_DEVICE - default n + default n config BSP_USING_OV5640 bool "Enable camera (ov5640)" @@ -101,7 +101,7 @@ menu "Hardware Drivers Config" config BSP_USING_DCMI bool "Enable DCMI" default n - + menuconfig BSP_USING_I2C bool "Enable I2C BUS (software simulation)" select RT_USING_I2C diff --git a/bsp/stm32/stm32h743-openmv-h7plus/board/SConscript b/bsp/stm32/stm32h743-openmv-h7plus/board/SConscript index 643c25cf87..b7b186597f 100644 --- a/bsp/stm32/stm32h743-openmv-h7plus/board/SConscript +++ b/bsp/stm32/stm32h743-openmv-h7plus/board/SConscript @@ -33,7 +33,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/startup_stm32h743xx.s'] -CPPDEFINES = ['STM32H743xx'] +CPPDEFINES = ['STM32H743xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/stm32/stm32h743-st-nucleo/Kconfig b/bsp/stm32/stm32h743-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32h743-st-nucleo/Kconfig +++ b/bsp/stm32/stm32h743-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32h743-st-nucleo/board/Kconfig b/bsp/stm32/stm32h743-st-nucleo/board/Kconfig index a693c29f5a..71a9e6d6fb 100644 --- a/bsp/stm32/stm32h743-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32h743-st-nucleo/board/Kconfig @@ -28,13 +28,13 @@ menu "On-chip Peripheral Drivers" default y endif - + source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32h747-st-discovery/Kconfig b/bsp/stm32/stm32h747-st-discovery/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32h747-st-discovery/Kconfig +++ b/bsp/stm32/stm32h747-st-discovery/Kconfig @@ -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" diff --git a/bsp/stm32/stm32h747-st-discovery/board/Kconfig b/bsp/stm32/stm32h747-st-discovery/board/Kconfig index e1f1d01aba..eef2a51548 100644 --- a/bsp/stm32/stm32h747-st-discovery/board/Kconfig +++ b/bsp/stm32/stm32h747-st-discovery/board/Kconfig @@ -30,11 +30,11 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" endmenu - + endmenu diff --git a/bsp/stm32/stm32h750-armfly-h7-tool/Kconfig b/bsp/stm32/stm32h750-armfly-h7-tool/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32h750-armfly-h7-tool/Kconfig +++ b/bsp/stm32/stm32h750-armfly-h7-tool/Kconfig @@ -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" diff --git a/bsp/stm32/stm32h750-artpi/Kconfig b/bsp/stm32/stm32h750-artpi/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32h750-artpi/Kconfig +++ b/bsp/stm32/stm32h750-artpi/Kconfig @@ -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" diff --git a/bsp/stm32/stm32h750-artpi/applications/SConscript b/bsp/stm32/stm32h750-artpi/applications/SConscript index fe708e67c8..034056eca7 100644 --- a/bsp/stm32/stm32h750-artpi/applications/SConscript +++ b/bsp/stm32/stm32h750-artpi/applications/SConscript @@ -13,4 +13,4 @@ for item in list: if os.path.isfile(os.path.join(cwd, item, 'SConscript')): group = group + SConscript(os.path.join(item, 'SConscript')) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/stm32/stm32h750-artpi/board/Kconfig b/bsp/stm32/stm32h750-artpi/board/Kconfig index b3ee3435f0..f23010945e 100644 --- a/bsp/stm32/stm32h750-artpi/board/Kconfig +++ b/bsp/stm32/stm32h750-artpi/board/Kconfig @@ -49,7 +49,7 @@ menu "Board extended module" select PKG_USING_FT6236 bool "Enable Touch" default y - + config MEDIA_IO_USING_AUDIO select RT_USING_AUDIO select RT_USING_I2C @@ -76,7 +76,7 @@ menu "Board extended module" bool "Enable Ethernet" default y endif - + endmenu menu "Onboard Peripheral Drivers" @@ -95,7 +95,7 @@ menu "Onboard Peripheral Drivers" select FAL_USING_SFUD_PORT select RT_USING_SFUD default n - + config BSP_USING_QSPI_FLASH bool "Enable QSPI FLASH (w25q64 qspi)" select BSP_USING_QSPI @@ -115,7 +115,7 @@ menu "Onboard Peripheral Drivers" select BSP_USING_SDIO_ARTPI select BSP_USING_SDIO1 select RT_USING_DFS_ELMFAT - default n + default n config BSP_USING_SPI_FLASH_FS bool "Enable SPI FLASH filesystem" select BSP_USING_SPI_FLASH @@ -160,15 +160,15 @@ menu "On-chip Peripheral Drivers" bool "Enable UART1 TX DMA" depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA default n - + config BSP_USING_UART3 bool "Enable UART3" default n - + config BSP_USING_UART4 bool "Enable UART4" default n - + config BSP_USING_UART6 bool "Enable UART6" default n @@ -192,7 +192,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI4" default n endif - + config BSP_USING_QSPI bool "Enable QSPI BUS" select RT_USING_QSPI @@ -218,7 +218,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_I2C_BITOPS select RT_USING_PIN if BSP_USING_I2C1 - comment "Notice: PB6 --> 22; PB7 --> 23" + comment "Notice: PB6 --> 22; PB7 --> 23" config BSP_I2C1_SCL_PIN int "I2C1 scl pin number" range 0 175 @@ -309,10 +309,10 @@ menu "On-chip Peripheral Drivers" default "/" endif endif - + menuconfig BSP_USING_ETH_H750 bool "Enable Ethernet" - default n + default n select RT_USING_LWIP if BSP_USING_ETH_H750 config ETH_RESET_PIN @@ -331,7 +331,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_LTDC bool - default n + default n source "../libraries/HAL_Drivers/Kconfig" endmenu @@ -340,7 +340,7 @@ menu "External Libraries" config ART_PI_USING_WIFI_6212_LIB bool "Using Wifi(AP6212) Library" - select PKG_USING_EASYFLASH + select PKG_USING_EASYFLASH select BSP_USING_SDIO_ARTPI select BSP_USING_SDIO2 select RT_USING_LWIP diff --git a/bsp/stm32/stm32h750-artpi/board/SConscript b/bsp/stm32/stm32h750-artpi/board/SConscript index cf7062c5f9..9f56c08d68 100644 --- a/bsp/stm32/stm32h750-artpi/board/SConscript +++ b/bsp/stm32/stm32h750-artpi/board/SConscript @@ -29,7 +29,7 @@ if GetDepend(['BSP_USING_SDIO_ARTPI']): if GetDepend(['BSP_USING_WIFI']): src += Glob('port/wifi_config.c') - src += Glob('port/drv_wlan.c') + src += Glob('port/drv_wlan.c') if GetDepend(['BSP_USING_ETH_H750']): src += Glob('port/drv_eth.c') @@ -53,7 +53,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h750xx.s'] elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/startup_stm32h750xx.s'] - + # STM32H743xx || STM32H750xx || STM32F753xx # You can select chips from the list above CPPDEFINES = ['STM32H750xx'] diff --git a/bsp/stm32/stm32h750-weact-ministm32h7xx/applications/SConscript b/bsp/stm32/stm32h750-weact-ministm32h7xx/applications/SConscript index fe708e67c8..034056eca7 100644 --- a/bsp/stm32/stm32h750-weact-ministm32h7xx/applications/SConscript +++ b/bsp/stm32/stm32h750-weact-ministm32h7xx/applications/SConscript @@ -13,4 +13,4 @@ for item in list: if os.path.isfile(os.path.join(cwd, item, 'SConscript')): group = group + SConscript(os.path.join(item, 'SConscript')) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/stm32/stm32h750-weact-ministm32h7xx/board/Kconfig b/bsp/stm32/stm32h750-weact-ministm32h7xx/board/Kconfig index 5165da2ec4..55e845bd64 100644 --- a/bsp/stm32/stm32h750-weact-ministm32h7xx/board/Kconfig +++ b/bsp/stm32/stm32h750-weact-ministm32h7xx/board/Kconfig @@ -11,7 +11,7 @@ menu "Onboard Peripheral Drivers" config BSP_USING_SPI_FLASH bool "Enable SPI FLASH (W25Q64 spi1)" - select BSP_USING_SPI + select BSP_USING_SPI select BSP_USING_SPI1 select RT_USING_DFS select PKG_USING_LITTLEFS diff --git a/bsp/stm32/stm32l010-st-nucleo/board/Kconfig b/bsp/stm32/stm32l010-st-nucleo/board/Kconfig index 13ef4ec408..4946a21947 100644 --- a/bsp/stm32/stm32l010-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32l010-st-nucleo/board/Kconfig @@ -31,14 +31,14 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART2 bool "Enable UART2" default y - + config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32l010-st-nucleo/board/SConscript b/bsp/stm32/stm32l010-st-nucleo/board/SConscript index 20b0528df0..0c600b33d2 100644 --- a/bsp/stm32/stm32l010-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32l010-st-nucleo/board/SConscript @@ -27,7 +27,7 @@ elif rtconfig.PLATFORM in ['iccarm']: # STM32L052xx || STM32L053xx || STM32L062xx # STM32L063xx || STM32L072xx || STM32L073xx # STM32L082xx || STM32L083xx -# You can select chips from the list above +# You can select chips from the list above CPPDEFINES = ['STM32L053xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/stm32/stm32l053-st-nucleo/board/Kconfig b/bsp/stm32/stm32l053-st-nucleo/board/Kconfig index cc948cfbc8..b086dbff9b 100644 --- a/bsp/stm32/stm32l053-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32l053-st-nucleo/board/Kconfig @@ -32,14 +32,14 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART2 bool "Enable UART2" default y - + config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32l053-st-nucleo/board/SConscript b/bsp/stm32/stm32l053-st-nucleo/board/SConscript index 20b0528df0..0c600b33d2 100644 --- a/bsp/stm32/stm32l053-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32l053-st-nucleo/board/SConscript @@ -27,7 +27,7 @@ elif rtconfig.PLATFORM in ['iccarm']: # STM32L052xx || STM32L053xx || STM32L062xx # STM32L063xx || STM32L072xx || STM32L073xx # STM32L082xx || STM32L083xx -# You can select chips from the list above +# You can select chips from the list above CPPDEFINES = ['STM32L053xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/stm32/stm32l412-st-nucleo/Kconfig b/bsp/stm32/stm32l412-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32l412-st-nucleo/Kconfig +++ b/bsp/stm32/stm32l412-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32l412-st-nucleo/board/Kconfig b/bsp/stm32/stm32l412-st-nucleo/board/Kconfig index c38c20d2be..ec1cba23e2 100644 --- a/bsp/stm32/stm32l412-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32l412-st-nucleo/board/Kconfig @@ -36,7 +36,7 @@ menu "On-chip Peripheral Drivers" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n endif - + config BSP_USING_ON_CHIP_FLASH bool "Enable on-chip FLASH" default n @@ -63,7 +63,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_WDT default n source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32l412-st-nucleo/board/SConscript b/bsp/stm32/stm32l412-st-nucleo/board/SConscript index 24533b99fe..b462b29a2a 100644 --- a/bsp/stm32/stm32l412-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32l412-st-nucleo/board/SConscript @@ -32,7 +32,7 @@ elif rtconfig.PLATFORM in ['iccarm']: # STM32L496xx || STM32L4A6xx || STM32L4R5xx # STM32L4R7xx || STM32L4R9xx || STM32L4S5xx # STM32L4S7xx || STM32L4S9xx -# You can select chips from the list above +# You can select chips from the list above CPPDEFINES = ['STM32L412xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/stm32/stm32l431-BearPi/Kconfig b/bsp/stm32/stm32l431-BearPi/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32l431-BearPi/Kconfig +++ b/bsp/stm32/stm32l431-BearPi/Kconfig @@ -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" diff --git a/bsp/stm32/stm32l431-BearPi/board/Kconfig b/bsp/stm32/stm32l431-BearPi/board/Kconfig index cde44c49bd..7923e902be 100644 --- a/bsp/stm32/stm32l431-BearPi/board/Kconfig +++ b/bsp/stm32/stm32l431-BearPi/board/Kconfig @@ -14,7 +14,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_PIN default y - menuconfig BSP_USING_UART + menuconfig BSP_USING_UART bool "Enable UART" default y select RT_USING_SERIAL @@ -145,7 +145,7 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Onboard Peripheral Drivers" @@ -154,7 +154,7 @@ menu "Onboard Peripheral Drivers" select BSP_USING_SPI select BSP_USING_SPI2 default n - + config BSP_USING_ARDUINO bool "Compatible with Arduino Ecosystem (RTduino)" select PKG_USING_RTDUINO diff --git a/bsp/stm32/stm32l431-BearPi/board/SConscript b/bsp/stm32/stm32l431-BearPi/board/SConscript index 164d890cca..0abd516819 100644 --- a/bsp/stm32/stm32l431-BearPi/board/SConscript +++ b/bsp/stm32/stm32l431-BearPi/board/SConscript @@ -35,7 +35,7 @@ elif rtconfig.PLATFORM in ['iccarm']: # STM32L496xx || STM32L4A6xx || STM32L4R5xx # STM32L4R7xx || STM32L4R9xx || STM32L4S5xx # STM32L4S7xx || STM32L4S9xx -# You can select chips from the list above +# You can select chips from the list above CPPDEFINES = ['STM32L431xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/stm32/stm32l432-st-nucleo/Kconfig b/bsp/stm32/stm32l432-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32l432-st-nucleo/Kconfig +++ b/bsp/stm32/stm32l432-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32l432-st-nucleo/board/Kconfig b/bsp/stm32/stm32l432-st-nucleo/board/Kconfig index 3885c3cc71..fcc0a9ffa6 100644 --- a/bsp/stm32/stm32l432-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32l432-st-nucleo/board/Kconfig @@ -8,7 +8,7 @@ config SOC_STM32L432KC default y menu "Onboard Peripheral Drivers" - config BSP_USING_STLINK_TO_USART + config BSP_USING_STLINK_TO_USART bool "Enable STLINK TO USART (uart2)" select BSP_USING_UART select BSP_USING_UART2 @@ -22,7 +22,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_PIN default y - menuconfig BSP_USING_UART + menuconfig BSP_USING_UART bool "Enable UART" default y select RT_USING_SERIAL @@ -36,7 +36,7 @@ menu "On-chip Peripheral Drivers" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n endif - + config BSP_USING_ON_CHIP_FLASH bool "Enable on-chip FLASH" default n @@ -63,7 +63,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_WDT default n source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32l432-st-nucleo/board/SConscript b/bsp/stm32/stm32l432-st-nucleo/board/SConscript index dfd4230195..403ab6a8be 100644 --- a/bsp/stm32/stm32l432-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32l432-st-nucleo/board/SConscript @@ -32,7 +32,7 @@ elif rtconfig.PLATFORM in ['iccarm']: # STM32L496xx || STM32L4A6xx || STM32L4R5xx # STM32L4R7xx || STM32L4R9xx || STM32L4S5xx # STM32L4S7xx || STM32L4S9xx -# You can select chips from the list above +# You can select chips from the list above CPPDEFINES = ['STM32L432xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/stm32/stm32l433-ali-startkit/Kconfig b/bsp/stm32/stm32l433-ali-startkit/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32l433-ali-startkit/Kconfig +++ b/bsp/stm32/stm32l433-ali-startkit/Kconfig @@ -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" diff --git a/bsp/stm32/stm32l433-ali-startkit/board/Kconfig b/bsp/stm32/stm32l433-ali-startkit/board/Kconfig index 9df03f45d4..8b88d1f6b3 100644 --- a/bsp/stm32/stm32l433-ali-startkit/board/Kconfig +++ b/bsp/stm32/stm32l433-ali-startkit/board/Kconfig @@ -85,7 +85,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n + default n config BSP_SPI2_TX_USING_DMA bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 @@ -182,7 +182,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_PWM3_CH2 bool "Enable PWM3 channel2" default n - + config BSP_USING_PWM3_CH3 bool "Enable PWM3 channel3" default n @@ -219,9 +219,9 @@ menu "On-chip Peripheral Drivers" bool "Enable Watchdog Timer" select RT_USING_WDT default n - + source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32l433-ali-startkit/board/SConscript b/bsp/stm32/stm32l433-ali-startkit/board/SConscript index d25dce9359..4e52f1eec1 100644 --- a/bsp/stm32/stm32l433-ali-startkit/board/SConscript +++ b/bsp/stm32/stm32l433-ali-startkit/board/SConscript @@ -24,7 +24,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/iar/startup_stm32l433xx.s'] -CPPDEFINES = ['STM32L433xx'] +CPPDEFINES = ['STM32L433xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/stm32/stm32l433-st-nucleo/Kconfig b/bsp/stm32/stm32l433-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32l433-st-nucleo/Kconfig +++ b/bsp/stm32/stm32l433-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32l433-st-nucleo/board/Kconfig b/bsp/stm32/stm32l433-st-nucleo/board/Kconfig index 667ab57345..e0652e11b8 100644 --- a/bsp/stm32/stm32l433-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32l433-st-nucleo/board/Kconfig @@ -55,7 +55,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 diff --git a/bsp/stm32/stm32l452-st-nucleo/Kconfig b/bsp/stm32/stm32l452-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32l452-st-nucleo/Kconfig +++ b/bsp/stm32/stm32l452-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32l452-st-nucleo/board/Kconfig b/bsp/stm32/stm32l452-st-nucleo/board/Kconfig index 96891266ca..6672d209b9 100644 --- a/bsp/stm32/stm32l452-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32l452-st-nucleo/board/Kconfig @@ -82,7 +82,7 @@ menu "On-chip Peripheral Drivers" default 16 endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32l452-st-nucleo/board/SConscript b/bsp/stm32/stm32l452-st-nucleo/board/SConscript index b20e296b63..7e401c2fe6 100644 --- a/bsp/stm32/stm32l452-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32l452-st-nucleo/board/SConscript @@ -33,7 +33,7 @@ elif rtconfig.PLATFORM in ['iccarm']: # STM32L496xx || STM32L4A6xx || STM32L4R5xx # STM32L4R7xx || STM32L4R9xx || STM32L4S5xx # STM32L4S7xx || STM32L4S9xx -# You can select chips from the list above +# You can select chips from the list above CPPDEFINES = ['STM32L452xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/stm32/stm32l475-atk-pandora/Kconfig b/bsp/stm32/stm32l475-atk-pandora/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32l475-atk-pandora/Kconfig +++ b/bsp/stm32/stm32l475-atk-pandora/Kconfig @@ -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" diff --git a/bsp/stm32/stm32l475-atk-pandora/board/Kconfig b/bsp/stm32/stm32l475-atk-pandora/board/Kconfig index d5f1cca099..eae6db099c 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/Kconfig +++ b/bsp/stm32/stm32l475-atk-pandora/board/Kconfig @@ -68,7 +68,7 @@ menu "Onboard Peripheral Drivers" select RT_USING_SFUD select RT_SFUD_USING_QSPI default n - + config BSP_USING_SPI_LCD bool "Enable LCD (spi3)" select BSP_USING_SPI @@ -137,7 +137,7 @@ menu "Onboard Peripheral Drivers" select PKG_USING_MPU6XXX select PKG_USING_MPU6XXX_LATEST_VERSION default n - + config BSP_USING_AHT10 bool "Enable AHT10 (i2c4)" select BSP_USING_I2C @@ -315,7 +315,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -324,19 +324,19 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI2 bool "Enable SPI2 Bus" - default n - + default n + config BSP_SPI2_TX_USING_DMA bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 default n - + config BSP_SPI2_RX_USING_DMA bool "Enable SPI2 RX DMA" depends on BSP_USING_SPI2 select BSP_SPI2_TX_USING_DMA default n - + config BSP_USING_SPI3 bool "Enable SPI3 Bus" default n @@ -345,7 +345,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI3 TX DMA" depends on BSP_USING_SPI3 default n - + config BSP_SPI3_RX_USING_DMA bool "Enable SPI3 RX DMA" depends on BSP_USING_SPI3 @@ -374,7 +374,7 @@ menu "On-chip Peripheral Drivers" bool "Enable I2C1 Bus (User I2C)" default n if BSP_USING_I2C1 - comment "Notice: PC7 --> 39; PC6 --> 38" + comment "Notice: PC7 --> 39; PC6 --> 38" config BSP_I2C1_SCL_PIN int "i2c1 SCL pin number" range 1 176 @@ -474,7 +474,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_PWM4_CH2 bool "Enable PWM4 channel2" default n - + config BSP_USING_PWM4_CH3 bool "Enable PWM4 channel3" default n @@ -545,9 +545,9 @@ menu "On-chip Peripheral Drivers" help BSP_USING_STM32_SDIO use drv_sdio_adapter.c,and BSP_USING_SDIO use drv_sdio.c - + source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32l475-atk-pandora/board/SConscript b/bsp/stm32/stm32l475-atk-pandora/board/SConscript index a2d6f54677..97c31ee844 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/SConscript +++ b/bsp/stm32/stm32l475-atk-pandora/board/SConscript @@ -20,7 +20,7 @@ if GetDepend(['BSP_USING_KEY']): if GetDepend(['BSP_USING_QSPI_FLASH']): src += Glob('ports/drv_qspi_flash.c') - + if GetDepend(['BSP_USING_FS']): src += Glob('ports/drv_filesystem.c') if GetDepend(['BSP_USING_SPI_FLASH_LITTLEFS']): @@ -38,13 +38,13 @@ if GetDepend(['BSP_USING_AUDIO_RECORD']): src += Glob('ports/audio/drv_mic.c') if GetDepend(['BSP_USING_STM32_SDIO']): - src += Glob('ports/drv_sdio_adapter.c') + src += Glob('ports/drv_sdio_adapter.c') if GetDepend(['BSP_USING_AUDIO']): path += [cwd + '/ports/audio'] - + startup_path_prefix = SDK_LIB if rtconfig.PLATFORM in ['gcc']: @@ -54,7 +54,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/iar/startup_stm32l475xx.s'] -CPPDEFINES = ['STM32L475xx'] +CPPDEFINES = ['STM32L475xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/stm32/stm32l475-st-discovery/Kconfig b/bsp/stm32/stm32l475-st-discovery/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32l475-st-discovery/Kconfig +++ b/bsp/stm32/stm32l475-st-discovery/Kconfig @@ -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" diff --git a/bsp/stm32/stm32l475-st-discovery/board/Kconfig b/bsp/stm32/stm32l475-st-discovery/board/Kconfig index 24e249bc1c..c3da67a5f4 100644 --- a/bsp/stm32/stm32l475-st-discovery/board/Kconfig +++ b/bsp/stm32/stm32l475-st-discovery/board/Kconfig @@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers" default n endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32l475-st-discovery/board/SConscript b/bsp/stm32/stm32l475-st-discovery/board/SConscript index 4b994ba995..258ec153ec 100644 --- a/bsp/stm32/stm32l475-st-discovery/board/SConscript +++ b/bsp/stm32/stm32l475-st-discovery/board/SConscript @@ -30,7 +30,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/iar/startup_stm32l475xx.s'] - + CPPDEFINES = ['STM32L475xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/stm32/stm32l476-st-nucleo/Kconfig b/bsp/stm32/stm32l476-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32l476-st-nucleo/Kconfig +++ b/bsp/stm32/stm32l476-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32l476-st-nucleo/board/Kconfig b/bsp/stm32/stm32l476-st-nucleo/board/Kconfig index be9c0f7792..99a5fe14ff 100644 --- a/bsp/stm32/stm32l476-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32l476-st-nucleo/board/Kconfig @@ -31,14 +31,14 @@ menu "On-chip Peripheral Drivers" if BSP_USING_UART config BSP_USING_UART2 bool "Enable UART2" - default n - + default n + config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n endif - + menuconfig BSP_USING_I2C bool "Enable I2C (software simulation)" default n @@ -88,7 +88,7 @@ menu "On-chip Peripheral Drivers" default 33 endif endif - + menuconfig BSP_USING_SPI bool "Enable SPI BUS" default n @@ -111,7 +111,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n + default n config BSP_SPI2_TX_USING_DMA bool "Enable SPI2 TX DMA" @@ -126,7 +126,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI3 bool "Enable SPI3 BUS" - default n + default n config BSP_SPI3_TX_USING_DMA bool "Enable SPI3 TX DMA" @@ -192,9 +192,9 @@ menu "On-chip Peripheral Drivers" bool "RTC USING LSI" endchoice endif - + source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32l476-st-nucleo/board/SConscript b/bsp/stm32/stm32l476-st-nucleo/board/SConscript index 1797056793..842486bdf9 100644 --- a/bsp/stm32/stm32l476-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32l476-st-nucleo/board/SConscript @@ -31,7 +31,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/iar/startup_stm32l476xx.s'] -CPPDEFINES = ['STM32L476xx'] +CPPDEFINES = ['STM32L476xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/stm32/stm32l496-ali-developer/Kconfig b/bsp/stm32/stm32l496-ali-developer/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32l496-ali-developer/Kconfig +++ b/bsp/stm32/stm32l496-ali-developer/Kconfig @@ -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" diff --git a/bsp/stm32/stm32l496-ali-developer/board/Kconfig b/bsp/stm32/stm32l496-ali-developer/board/Kconfig index 0c0c2476fc..bfe1551a06 100644 --- a/bsp/stm32/stm32l496-ali-developer/board/Kconfig +++ b/bsp/stm32/stm32l496-ali-developer/board/Kconfig @@ -65,7 +65,7 @@ menu "On-chip Peripheral Drivers" bool "Enable on-chip FLASH" select RT_USING_FAL default n - + config BSP_USING_ON_CHIP_FLASH_FATFS bool "Enable onchip flash with FatFS" depends on BSP_USING_ON_CHIP_FLASH @@ -93,7 +93,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n + default n config BSP_SPI2_TX_USING_DMA bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 @@ -190,7 +190,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_PWM3_CH2 bool "Enable PWM3 channel2" default n - + config BSP_USING_PWM3_CH3 bool "Enable PWM3 channel3" default n @@ -227,9 +227,9 @@ menu "On-chip Peripheral Drivers" bool "Enable Watchdog Timer" select RT_USING_WDT default n - + source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32l496-ali-developer/board/SConscript b/bsp/stm32/stm32l496-ali-developer/board/SConscript index 0c3e228e22..c3920efae1 100644 --- a/bsp/stm32/stm32l496-ali-developer/board/SConscript +++ b/bsp/stm32/stm32l496-ali-developer/board/SConscript @@ -34,7 +34,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/iar/startup_stm32l496xx.s'] -CPPDEFINES = ['STM32L496xx'] +CPPDEFINES = ['STM32L496xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/stm32/stm32l496-st-nucleo/Kconfig b/bsp/stm32/stm32l496-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32l496-st-nucleo/Kconfig +++ b/bsp/stm32/stm32l496-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32l496-st-nucleo/board/Kconfig b/bsp/stm32/stm32l496-st-nucleo/board/Kconfig index ba8c43d680..68b53985ea 100644 --- a/bsp/stm32/stm32l496-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32l496-st-nucleo/board/Kconfig @@ -46,8 +46,8 @@ menu "On-chip Peripheral Drivers" bool "Enable UART2 RX DMA" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n - - config BSP_USING_LPUART1 + + config BSP_USING_LPUART1 bool "Enable LPUART1" default n @@ -56,7 +56,7 @@ menu "On-chip Peripheral Drivers" depends on BSP_USING_LPUART1 && RT_SERIAL_USING_DMA default n endif - + menuconfig BSP_USING_I2C bool "Enable I2C BUS" default n @@ -68,7 +68,7 @@ menu "On-chip Peripheral Drivers" bool "Enable I2C3 BUS" default y if BSP_USING_I2C3 - comment "Notice: PC0 --> 32; PC1 --> 33" + comment "Notice: PC0 --> 32; PC1 --> 33" config BSP_I2C3_SCL_PIN int "i2c3 scl pin number" range 1 176 @@ -83,7 +83,7 @@ menu "On-chip Peripheral Drivers" bool "Enable I2C4 BUS" default n if BSP_USING_I2C4 - comment "Notice: PC1 --> 33; PD6 --> 54" + comment "Notice: PC1 --> 33; PD6 --> 54" config BSP_I2C4_SCL_PIN int "i2c4 scl pin number" range 1 176 @@ -99,7 +99,7 @@ menu "On-chip Peripheral Drivers" bool "Enable on-chip FLASH" select RT_USING_FAL default n - + config BSP_USING_ON_CHIP_FLASH_FATFS bool "Enable onchip flash with FatFS" depends on BSP_USING_ON_CHIP_FLASH @@ -110,10 +110,10 @@ menu "On-chip Peripheral Drivers" config BSP_USING_USBD bool "Enable OTGFS as USB device" select RT_USING_USB_DEVICE - default n - + default n + source "../libraries/HAL_Drivers/Kconfig" - + endmenu endmenu diff --git a/bsp/stm32/stm32l496-st-nucleo/board/SConscript b/bsp/stm32/stm32l496-st-nucleo/board/SConscript index cf0e190c8b..37998ac073 100644 --- a/bsp/stm32/stm32l496-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32l496-st-nucleo/board/SConscript @@ -28,7 +28,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/iar/startup_stm32l496xx.s'] -CPPDEFINES = ['STM32L496xx'] +CPPDEFINES = ['STM32L496xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/stm32/stm32l4r5-st-nucleo/Kconfig b/bsp/stm32/stm32l4r5-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32l4r5-st-nucleo/Kconfig +++ b/bsp/stm32/stm32l4r5-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32l4r5-st-nucleo/board/Kconfig b/bsp/stm32/stm32l4r5-st-nucleo/board/Kconfig index 7bd50d0bde..2456f4e0a9 100644 --- a/bsp/stm32/stm32l4r5-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32l4r5-st-nucleo/board/Kconfig @@ -16,12 +16,12 @@ menu "Hardware Drivers Config" endmenu menu "On-chip Peripheral Drivers" - + config BSP_USING_GPIO bool "Enable GPIO" select RT_USING_PIN default y - + menuconfig BSP_USING_UART bool "Enable UART" default y @@ -73,21 +73,21 @@ menu "Hardware Drivers Config" depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA default n endif - + config BSP_USING_ON_CHIP_FLASH bool "Enable on-chip FLASH" default n - + config BSP_USING_USBD bool "Enable OTGFS as USB device" select RT_USING_USB_DEVICE default n - + config BSP_USING_WDT bool "Enable Watchdog Timer" select RT_USING_WDT - default n - + default n + menuconfig BSP_USING_ADC bool "Enable ADC" default n @@ -98,7 +98,7 @@ menu "Hardware Drivers Config" default n endif - + menuconfig BSP_USING_ONCHIP_RTC bool "Enable RTC" select RT_USING_RTC @@ -113,7 +113,7 @@ menu "Hardware Drivers Config" bool "RTC USING LSI" endchoice endif - + menuconfig BSP_USING_SPI bool "Enable SPI BUS" default n @@ -191,7 +191,7 @@ menu "Hardware Drivers Config" default 11 endif endif - + menuconfig BSP_USING_TIM bool "Enable timer" default n @@ -207,7 +207,7 @@ menu "Hardware Drivers Config" bool "Enable TIM3" default n endif - + menuconfig BSP_USING_PWM bool "Using PWM" default n diff --git a/bsp/stm32/stm32l4r5-st-nucleo/board/SConscript b/bsp/stm32/stm32l4r5-st-nucleo/board/SConscript index 445c66a446..5fe82b937f 100644 --- a/bsp/stm32/stm32l4r5-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32l4r5-st-nucleo/board/SConscript @@ -32,7 +32,7 @@ elif rtconfig.PLATFORM in ['iccarm']: # STM32L496xx || STM32L4A6xx || STM32L4R5xx # STM32L4R7xx || STM32L4R9xx || STM32L4S5xx # STM32L4S7xx || STM32L4S9xx -# You can select chips from the list above +# You can select chips from the list above CPPDEFINES = ['STM32L4R5xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/stm32/stm32l4r9-st-eval/Kconfig b/bsp/stm32/stm32l4r9-st-eval/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32l4r9-st-eval/Kconfig +++ b/bsp/stm32/stm32l4r9-st-eval/Kconfig @@ -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" diff --git a/bsp/stm32/stm32l4r9-st-eval/board/Kconfig b/bsp/stm32/stm32l4r9-st-eval/board/Kconfig index 3c0779cf98..c1cceb57a5 100644 --- a/bsp/stm32/stm32l4r9-st-eval/board/Kconfig +++ b/bsp/stm32/stm32l4r9-st-eval/board/Kconfig @@ -20,28 +20,28 @@ menu "Onboard Peripheral Drivers" select BSP_USING_SRAM select BSP_USING_GFXMMU default n - + menu "Enable Touch" - + config BSP_USING_TOUCH bool "Enable Touch drivers" select BSP_USING_I2C1 - default n - if BSP_USING_TOUCH + default n + if BSP_USING_TOUCH config BSP_TOUCH_INT_PIN int "Touch interrupt pin" default 34 config BSP_I2C1_NAME string "I2C1 Name for Touch" - default i2c1 + default i2c1 endif config TOUCH_IC_FT3X67 bool "FT3X67" depends on BSP_USING_TOUCH default n - - endmenu + + endmenu endmenu menu "On-chip Peripheral Drivers" @@ -60,12 +60,12 @@ menu "On-chip Peripheral Drivers" bool "Enable UART3" default y endif - + config BSP_USING_SRAM bool "Enable SRAM" select BSP_USING_FMC default n - + menuconfig BSP_USING_I2C1 bool "Enable I2C1 BUS (software simulation)" default n @@ -91,7 +91,7 @@ menu "On-chip Peripheral Drivers" bool default n source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32l4r9-st-eval/board/SConscript b/bsp/stm32/stm32l4r9-st-eval/board/SConscript index fe4923ffda..9e4f7b0775 100644 --- a/bsp/stm32/stm32l4r9-st-eval/board/SConscript +++ b/bsp/stm32/stm32l4r9-st-eval/board/SConscript @@ -19,8 +19,8 @@ if GetDepend(['BSP_USING_SRAM']): src += Glob('ports/drv_sram.c') if GetDepend(['BSP_USING_TOUCH']): - src += Glob('ports/drv_touch.c') - src += Glob('ports/drv_touch_ft.c') + src += Glob('ports/drv_touch.c') + src += Glob('ports/drv_touch_ft.c') path = [cwd] path += [cwd + '/CubeMX_Config/Inc'] @@ -43,7 +43,7 @@ elif rtconfig.PLATFORM in ['iccarm']: # STM32L496xx || STM32L4A6xx || STM32L4R5xx # STM32L4R7xx || STM32L4R9xx || STM32L4S5xx # STM32L4S7xx || STM32L4S9xx -# You can select chips from the list above +# You can select chips from the list above CPPDEFINES = ['STM32L4R9xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/stm32/stm32l4r9-st-sensortile-box/Kconfig b/bsp/stm32/stm32l4r9-st-sensortile-box/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32l4r9-st-sensortile-box/Kconfig +++ b/bsp/stm32/stm32l4r9-st-sensortile-box/Kconfig @@ -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" diff --git a/bsp/stm32/stm32l4r9-st-sensortile-box/board/Kconfig b/bsp/stm32/stm32l4r9-st-sensortile-box/board/Kconfig index eedcda70f3..ae62ce437f 100644 --- a/bsp/stm32/stm32l4r9-st-sensortile-box/board/Kconfig +++ b/bsp/stm32/stm32l4r9-st-sensortile-box/board/Kconfig @@ -24,15 +24,15 @@ menu "On-chip Peripheral Drivers" bool "Enable UART1" default y endif - + config BSP_USING_USBD bool "Enable Full-Speed USB Device Controller(USBD)" select RT_USING_USB_DEVICE default y - - + + source "../libraries/HAL_Drivers/Kconfig" - + endmenu endmenu diff --git a/bsp/stm32/stm32l4r9-st-sensortile-box/board/SConscript b/bsp/stm32/stm32l4r9-st-sensortile-box/board/SConscript index 969a0c53f1..e25359393b 100644 --- a/bsp/stm32/stm32l4r9-st-sensortile-box/board/SConscript +++ b/bsp/stm32/stm32l4r9-st-sensortile-box/board/SConscript @@ -33,7 +33,7 @@ elif rtconfig.PLATFORM in ['iccarm']: # STM32L496xx || STM32L4A6xx || STM32L4R5xx # STM32L4R7xx || STM32L4R9xx || STM32L4S5xx # STM32L4S7xx || STM32L4S9xx -# You can select chips from the list above +# You can select chips from the list above CPPDEFINES = ['STM32L4R9xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/stm32/stm32l552-st-nucleo/Kconfig b/bsp/stm32/stm32l552-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32l552-st-nucleo/Kconfig +++ b/bsp/stm32/stm32l552-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32l552-st-nucleo/board/Kconfig b/bsp/stm32/stm32l552-st-nucleo/board/Kconfig index 9a8f6e3dd7..cb91e5e446 100644 --- a/bsp/stm32/stm32l552-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32l552-st-nucleo/board/Kconfig @@ -31,10 +31,10 @@ menu "On-chip Peripheral Drivers" bool "Enable UART1 RX DMA" depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA default n - endif + endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32l552-st-nucleo/board/SConscript b/bsp/stm32/stm32l552-st-nucleo/board/SConscript index cb5f07626e..0ca1f7c912 100644 --- a/bsp/stm32/stm32l552-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32l552-st-nucleo/board/SConscript @@ -24,7 +24,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32L5xx_HAL/CMSIS/Device/ST/STM32L5xx/Source/Templates/iar/startup_stm32l552xx.s'] -# You can select chips from the list above +# You can select chips from the list above CPPDEFINES = ['STM32L552xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/stm32/stm32mp157a-st-discovery/board/Kconfig b/bsp/stm32/stm32mp157a-st-discovery/board/Kconfig index d09a30ea4e..4c7665b167 100644 --- a/bsp/stm32/stm32mp157a-st-discovery/board/Kconfig +++ b/bsp/stm32/stm32mp157a-st-discovery/board/Kconfig @@ -51,12 +51,12 @@ menu "Onboard Peripheral Drivers" string "the uart name for rs485" default "uart3" endif - + config BSP_USING_GBE bool "Enable Ethernet" default n select RT_USING_LWIP - + config BSP_USING_SDMMC bool "Enable SDMMC (sd card or sdio wifi)" default n @@ -257,7 +257,7 @@ menu "On-chip Peripheral Drivers" bool "Enable I2C4 BUS (software simulation)" default n if BSP_USING_I2C4 - comment "Notice: PD12 --> 60; PF15 --> 95" + comment "Notice: PD12 --> 60; PF15 --> 95" config BSP_I2C4_SCL_PIN int "i2c4 scl pin number" range 1 191 diff --git a/bsp/stm32/stm32mp157a-st-ev1/board/Kconfig b/bsp/stm32/stm32mp157a-st-ev1/board/Kconfig index f5d81d5f15..35a8ec35a9 100644 --- a/bsp/stm32/stm32mp157a-st-ev1/board/Kconfig +++ b/bsp/stm32/stm32mp157a-st-ev1/board/Kconfig @@ -14,7 +14,7 @@ menu "Onboard Peripheral Drivers" select BSP_USING_UART select BSP_USING_UART4 default y - + config BSP_USING_EXTI bool "Enable exti sample" default n @@ -96,7 +96,7 @@ menu "Onboard Peripheral Drivers" bool "Enable CAMERA (ov5640)" select BSP_USING_MFX select BSP_USING_PMIC - select BSP_USING_SDMMC + select BSP_USING_SDMMC select BSP_USING_SDCARD select BSP_USING_I2C select BSP_USING_I2C2 @@ -148,7 +148,7 @@ menu "On-chip Peripheral Drivers" select RT_USING_QSPI select RT_USING_SPI default n - + config BSP_USING_SPDIFRX bool "Enable spdifrx" select BSP_USING_AUDIO @@ -292,7 +292,7 @@ menu "On-chip Peripheral Drivers" range 1 176 default 117 endif - menuconfig BSP_USING_I2C3 + menuconfig BSP_USING_I2C3 bool "Enable I2C3 BUS (software simulation)" default n if BSP_USING_I2C3 diff --git a/bsp/stm32/stm32u575-st-nucleo/Kconfig b/bsp/stm32/stm32u575-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32u575-st-nucleo/Kconfig +++ b/bsp/stm32/stm32u575-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32u575-st-nucleo/board/Kconfig b/bsp/stm32/stm32u575-st-nucleo/board/Kconfig index 35e9ca7290..585d119685 100644 --- a/bsp/stm32/stm32u575-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32u575-st-nucleo/board/Kconfig @@ -31,10 +31,10 @@ menu "On-chip Peripheral Drivers" bool "Enable UART1 RX DMA" depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA default n - endif + endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32u575-st-nucleo/board/SConscript b/bsp/stm32/stm32u575-st-nucleo/board/SConscript index b6874aa2bb..347210856e 100644 --- a/bsp/stm32/stm32u575-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32u575-st-nucleo/board/SConscript @@ -24,7 +24,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32U5xx_HAL/CMSIS/Device/ST/STM32U5xx/Source/Templates/iar/startup_stm32u575xx.s'] -# You can select chips from the list above +# You can select chips from the list above CPPDEFINES = ['STM32U575xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/stm32/stm32wb55-st-nucleo/Kconfig b/bsp/stm32/stm32wb55-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32wb55-st-nucleo/Kconfig +++ b/bsp/stm32/stm32wb55-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32wb55-st-nucleo/board/Kconfig b/bsp/stm32/stm32wb55-st-nucleo/board/Kconfig index 428a7d3592..806100aca1 100644 --- a/bsp/stm32/stm32wb55-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32wb55-st-nucleo/board/Kconfig @@ -37,7 +37,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART1 RX DMA" depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA default n - + config BSP_USING_LPUART1 bool "Enable LPUART1" default n @@ -66,7 +66,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -75,7 +75,7 @@ menu "On-chip Peripheral Drivers" endif - + menuconfig BSP_USING_I2C bool "Enable I2C BUS" @@ -88,7 +88,7 @@ menu "On-chip Peripheral Drivers" bool "Enable I2C1 BUS (software simulation)" default y if BSP_USING_I2C1 - comment "Notice: PB8 --> 24; PB9 --> 25" + comment "Notice: PB8 --> 24; PB9 --> 25" config BSP_I2C1_SCL_PIN int "i2c1 scl pin number" range 1 143 @@ -103,7 +103,7 @@ menu "On-chip Peripheral Drivers" bool "Enable I2C3 BUS (software simulation)" default y if BSP_USING_I2C3 - comment "Notice: PB13 --> 29; PAB6 -->30" + comment "Notice: PB13 --> 29; PAB6 -->30" config BSP_I2C3_SCL_PIN int "i2c3 scl pin number" range 1 143 @@ -158,7 +158,7 @@ menu "On-chip Peripheral Drivers" endif source "../libraries/HAL_Drivers/Kconfig" - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32wb55-st-nucleo/board/SConscript b/bsp/stm32/stm32wb55-st-nucleo/board/SConscript index ddbdcaac36..7f5ca6d437 100644 --- a/bsp/stm32/stm32wb55-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32wb55-st-nucleo/board/SConscript @@ -25,7 +25,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32WBxx_HAL/CMSIS/Device/ST/STM32WBxx/Source/Templates/iar/startup_stm32wb55xx_cm4.s'] -# You can select chips from the list above +# You can select chips from the list above CPPDEFINES = ['STM32WB55xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) diff --git a/bsp/stm32/stm32wl55-st-nucleo/Kconfig b/bsp/stm32/stm32wl55-st-nucleo/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32wl55-st-nucleo/Kconfig +++ b/bsp/stm32/stm32wl55-st-nucleo/Kconfig @@ -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" diff --git a/bsp/stm32/stm32wl55-st-nucleo/board/Kconfig b/bsp/stm32/stm32wl55-st-nucleo/board/Kconfig index 430839bf26..83c7bf597b 100644 --- a/bsp/stm32/stm32wl55-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32wl55-st-nucleo/board/Kconfig @@ -23,7 +23,7 @@ menu "On-chip Peripheral Drivers" bool "Enable GPIO" select RT_USING_PIN default y - + config BSP_USING_ONCHIP_RTC bool "Enable RTC" default n @@ -35,17 +35,17 @@ menu "On-chip Peripheral Drivers" if BSP_USING_UART config BSP_USING_UART1 bool "Enable UART1" - default n - + default n + config BSP_UART1_RX_USING_DMA bool "Enable UART1 RX DMA" depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA default n - + config BSP_USING_UART2 bool "Enable UART2" - default n - + default n + config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA @@ -58,9 +58,9 @@ menu "On-chip Peripheral Drivers" bool "Enable LPUART1 RX DMA" depends on BSP_USING_LPUART1 && RT_SERIAL_USING_DMA default n - + endif - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32wl55-st-nucleo/board/SConscript b/bsp/stm32/stm32wl55-st-nucleo/board/SConscript index 71e017096f..121fcacfe9 100644 --- a/bsp/stm32/stm32wl55-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32wl55-st-nucleo/board/SConscript @@ -25,7 +25,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32WLxx_HAL/CMSIS/Device/ST/STM32WLxx/Source/Templates/iar/startup_stm32wle5xx.s'] -CPPDEFINES = ['STM32WLxx'] +CPPDEFINES = ['STM32WLxx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/stm32/stm32wle5-yizhilian-lm401/Kconfig b/bsp/stm32/stm32wle5-yizhilian-lm401/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32wle5-yizhilian-lm401/Kconfig +++ b/bsp/stm32/stm32wle5-yizhilian-lm401/Kconfig @@ -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" diff --git a/bsp/stm32/stm32wle5-yizhilian-lm401/board/Kconfig b/bsp/stm32/stm32wle5-yizhilian-lm401/board/Kconfig index 52bafc099c..6f780ec196 100644 --- a/bsp/stm32/stm32wle5-yizhilian-lm401/board/Kconfig +++ b/bsp/stm32/stm32wle5-yizhilian-lm401/board/Kconfig @@ -23,7 +23,7 @@ menu "On-chip Peripheral Drivers" bool "Enable GPIO" select RT_USING_PIN default y - + config BSP_USING_ONCHIP_RTC bool "Enable RTC" default n @@ -35,17 +35,17 @@ menu "On-chip Peripheral Drivers" if BSP_USING_UART config BSP_USING_UART1 bool "Enable UART1" - default n - + default n + config BSP_UART1_RX_USING_DMA bool "Enable UART1 RX DMA" depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA default n - + config BSP_USING_UART2 bool "Enable UART2" - default n - + default n + config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA @@ -58,9 +58,9 @@ menu "On-chip Peripheral Drivers" bool "Enable LPUART1 RX DMA" depends on BSP_USING_LPUART1 && RT_SERIAL_USING_DMA default n - + endif - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32wle5-yizhilian-lm401/board/SConscript b/bsp/stm32/stm32wle5-yizhilian-lm401/board/SConscript index 71e017096f..121fcacfe9 100644 --- a/bsp/stm32/stm32wle5-yizhilian-lm401/board/SConscript +++ b/bsp/stm32/stm32wle5-yizhilian-lm401/board/SConscript @@ -25,7 +25,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32WLxx_HAL/CMSIS/Device/ST/STM32WLxx/Source/Templates/iar/startup_stm32wle5xx.s'] -CPPDEFINES = ['STM32WLxx'] +CPPDEFINES = ['STM32WLxx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/stm32/stm32wle5-yizhilian-lm402/Kconfig b/bsp/stm32/stm32wle5-yizhilian-lm402/Kconfig index 8cbc7b71a8..79b160b856 100644 --- a/bsp/stm32/stm32wle5-yizhilian-lm402/Kconfig +++ b/bsp/stm32/stm32wle5-yizhilian-lm402/Kconfig @@ -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" diff --git a/bsp/stm32/stm32wle5-yizhilian-lm402/board/Kconfig b/bsp/stm32/stm32wle5-yizhilian-lm402/board/Kconfig index bf8c660bd2..aa2e87d496 100644 --- a/bsp/stm32/stm32wle5-yizhilian-lm402/board/Kconfig +++ b/bsp/stm32/stm32wle5-yizhilian-lm402/board/Kconfig @@ -23,7 +23,7 @@ menu "On-chip Peripheral Drivers" bool "Enable GPIO" select RT_USING_PIN default y - + config BSP_USING_ONCHIP_RTC bool "Enable RTC" default n @@ -35,17 +35,17 @@ menu "On-chip Peripheral Drivers" if BSP_USING_UART config BSP_USING_UART1 bool "Enable UART1" - default n - + default n + config BSP_UART1_RX_USING_DMA bool "Enable UART1 RX DMA" depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA default n - + config BSP_USING_UART2 bool "Enable UART2" - default n - + default n + config BSP_UART2_RX_USING_DMA bool "Enable UART2 RX DMA" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA @@ -58,9 +58,9 @@ menu "On-chip Peripheral Drivers" bool "Enable LPUART1 RX DMA" depends on BSP_USING_LPUART1 && RT_SERIAL_USING_DMA default n - + endif - + endmenu menu "Board extended module Drivers" diff --git a/bsp/stm32/stm32wle5-yizhilian-lm402/board/SConscript b/bsp/stm32/stm32wle5-yizhilian-lm402/board/SConscript index 71e017096f..121fcacfe9 100644 --- a/bsp/stm32/stm32wle5-yizhilian-lm402/board/SConscript +++ b/bsp/stm32/stm32wle5-yizhilian-lm402/board/SConscript @@ -25,7 +25,7 @@ elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['iccarm']: src += [startup_path_prefix + '/STM32WLxx_HAL/CMSIS/Device/ST/STM32WLxx/Source/Templates/iar/startup_stm32wle5xx.s'] -CPPDEFINES = ['STM32WLxx'] +CPPDEFINES = ['STM32WLxx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/synopsys/boards/SConstruct b/bsp/synopsys/boards/SConstruct index d2868bc1f1..cbfaac580d 100644 --- a/bsp/synopsys/boards/SConstruct +++ b/bsp/synopsys/boards/SConstruct @@ -199,7 +199,7 @@ EMBARC_CPPPATH = [ EMBARC_BSP_ROOT, #print("EMBARC_CPPPATH: %s"%EMBARC_CPPPATH) if TOOLCHAIN == 'mw': - EXEC_PATH = 'C:/ARC/MetaWare/arc/bin' + EXEC_PATH = 'C:/ARC/MetaWare/arc/bin' MAKE = 'gmake' PREFIX = '' CC = 'ccac' @@ -228,7 +228,7 @@ if TOOLCHAIN == 'mw': LFLAGS = ' -Hhostlink ' + OPT_ARG_FILE + ' -Hnocopyr -Hnosdata -Hnocrt -Hldopt=-Coutput=rtthread_snps_embarc.map -Hldopt=-Csections -Hldopt=-Ccrossfunc -Hldopt=-Csize -zstdout %s' % LINK_SCRIPT elif TOOLCHAIN == 'gnu': - EXEC_PATH = 'C:/arc_gnu/bin' + EXEC_PATH = 'C:/arc_gnu/bin' MAKE = 'make' PREFIX = 'arc-elf32-' CC = PREFIX + 'gcc' diff --git a/bsp/synopsys/boards/drivers/Kconfig b/bsp/synopsys/boards/drivers/Kconfig index 3cc4d3470d..39079c2696 100644 --- a/bsp/synopsys/boards/drivers/Kconfig +++ b/bsp/synopsys/boards/drivers/Kconfig @@ -7,4 +7,4 @@ config EMSK_USING_UART0 config EMSK_USING_UART1 bool "Using UART1" select RT_USING_SERIAL - default y \ No newline at end of file + default y diff --git a/bsp/synopsys/boards/drivers/SConscript b/bsp/synopsys/boards/drivers/SConscript index 29272aa88e..5322b02a96 100644 --- a/bsp/synopsys/boards/drivers/SConscript +++ b/bsp/synopsys/boards/drivers/SConscript @@ -4,7 +4,7 @@ Import('rtconfig') from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') ASFLAGS = ' -I' + cwd diff --git a/bsp/synwit/swm320/libraries/SConscript b/bsp/synwit/swm320/libraries/SConscript index 8dce723f1b..f84fbe6bb5 100644 --- a/bsp/synwit/swm320/libraries/SConscript +++ b/bsp/synwit/swm320/libraries/SConscript @@ -1,7 +1,7 @@ from building import * import rtconfig cwd = GetCurrentDir() -src = Glob('CMSIS/DeviceSupport/*.c') +src = Glob('CMSIS/DeviceSupport/*.c') CPPPATH = [cwd + '/CMSIS/CoreSupport', cwd + '/CMSIS/DeviceSupport', cwd + '/SWM320_StdPeriph_Driver'] src += Glob('SWM320_StdPeriph_Driver/*.c') diff --git a/bsp/synwit/swm341/drivers/Kconfig b/bsp/synwit/swm341/drivers/Kconfig index 94de3c6bfb..1fe5a28915 100644 --- a/bsp/synwit/swm341/drivers/Kconfig +++ b/bsp/synwit/swm341/drivers/Kconfig @@ -65,16 +65,16 @@ menu "On-chip Peripheral Drivers" config BSP_USING_ADC0_CHN7 bool "Enable ADC0_CHN7(A15)" default n - config BSP_USING_ADC0_CHN8 + config BSP_USING_ADC0_CHN8 bool "Enable ADC0_CHN8(A14)" default n - config BSP_USING_ADC0_CHN9 + config BSP_USING_ADC0_CHN9 bool "Enable ADC0_CHN9(A13)" default n - config BSP_USING_ADC0_CHN10 + config BSP_USING_ADC0_CHN10 bool "Enable ADC0_CHN10(A12)" default n - config BSP_USING_ADC0_CHN11 + config BSP_USING_ADC0_CHN11 bool "Enable ADC0_CHN11(A10)" default n endif @@ -394,7 +394,7 @@ menu "On-chip Peripheral Drivers" select PKG_USING_LVGL default n endif - + endmenu menu "Onboard Peripheral Drivers" diff --git a/bsp/synwit/swm341/libraries/SConscript b/bsp/synwit/swm341/libraries/SConscript index 2e56b298a6..2f2824c839 100644 --- a/bsp/synwit/swm341/libraries/SConscript +++ b/bsp/synwit/swm341/libraries/SConscript @@ -1,7 +1,7 @@ from building import * import rtconfig cwd = GetCurrentDir() -src = Glob('CMSIS/DeviceSupport/*.c') +src = Glob('CMSIS/DeviceSupport/*.c') CPPPATH = [cwd + '/CMSIS/CoreSupport', cwd + '/CMSIS/DeviceSupport', cwd + '/SWM341_StdPeriph_Driver'] src += Glob('SWM341_StdPeriph_Driver/*.c') diff --git a/bsp/tae32f5300/Libraries/SConscript b/bsp/tae32f5300/Libraries/SConscript index ae4c35e5fb..c084d6df4b 100644 --- a/bsp/tae32f5300/Libraries/SConscript +++ b/bsp/tae32f5300/Libraries/SConscript @@ -38,16 +38,16 @@ if GetDepend(['RT_USING_WDT']): if GetDepend(['RT_USING_HWTIMER']) or GetDepend(['RT_USING_PWM'] or GetDepend(['RT_USING_PULSE_ENCODER'])): src += ['TAE32F53xx_StdPeriph_Driver/src/tae32f53xx_ll_tmr.c'] -#add for startup script +#add for startup script if rtconfig.PLATFORM in ['gcc']: src = src + ['CMSIS/Device/Tai_action/TAE32F53xx/Source/GCC/startup_ARMCM3.S'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: - src = src + ['CMSIS/Device/Tai_action/TAE32F53xx/Source/startup_tae32f53xx.c'] + src = src + ['CMSIS/Device/Tai_action/TAE32F53xx/Source/startup_tae32f53xx.c'] elif rtconfig.PLATFORM in ['iccarm']: src = src + ['CMSIS/Device/Tai_action/TAE32F53xx/Source/IAR/startup_ARMCM3.s'] -#add headfile script -path = [cwd + '/CMSIS/Include', +#add headfile script +path = [cwd + '/CMSIS/Include', cwd + '/CMSIS/Device/Tai_action/TAE32F53xx/Include', cwd + '/TAE32F53xx_StdPeriph_Driver/inc'] diff --git a/bsp/tae32f5300/SConstruct b/bsp/tae32f5300/SConstruct index 19fba6cd7f..d106def6da 100644 --- a/bsp/tae32f5300/SConstruct +++ b/bsp/tae32f5300/SConstruct @@ -20,16 +20,16 @@ TARGET = 'TAE32F53xx.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: - env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) - env.Replace(ARFLAGS = ['']) - env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map') + env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) + env.Replace(ARFLAGS = ['']) + env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map') Export('RTT_ROOT') Export('rtconfig') diff --git a/bsp/tae32f5300/drivers/Kconfig b/bsp/tae32f5300/drivers/Kconfig index f0c6036df7..6d39184c1a 100644 --- a/bsp/tae32f5300/drivers/Kconfig +++ b/bsp/tae32f5300/drivers/Kconfig @@ -1,7 +1,7 @@ menu "Hardware Drivers Config" config MCU_TAE32F53xx - bool + bool select ARCH_ARM_CORTEX_M3 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN @@ -56,7 +56,7 @@ menu "On-chip Peripheral Drivers" default y select RT_USING_I2C select RT_USING_I2C_BITOPS - select RT_USING_PIN + select RT_USING_PIN if BSP_USING_I2C1 config BSP_I2C1_SCL_PIN int "i2c1 scl pin number" @@ -66,7 +66,7 @@ menu "On-chip Peripheral Drivers" int "I2C1 sda pin number" range 1 176 default 90 - endif + endif menuconfig BSP_USING_SPI bool "Enable SPI BUS" @@ -81,42 +81,42 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 select BSP_SPI1_TX_USING_DMA default n - + config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n - + default n + config BSP_SPI2_TX_USING_DMA bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 default n - + config BSP_SPI2_RX_USING_DMA bool "Enable SPI2 RX DMA" depends on BSP_USING_SPI2 select BSP_SPI2_TX_USING_DMA default n - + config BSP_USING_SPI3 bool "Enable SPI3 BUS" - default n + default n config BSP_SPI3_TX_USING_DMA bool "Enable SPI3 TX DMA" depends on BSP_USING_SPI3 default n - + config BSP_SPI3_RX_USING_DMA bool "Enable SPI3 RX DMA" depends on BSP_USING_SPI3 select BSP_SPI3_TX_USING_DMA - default n + default n config BSP_USING_SPI4 bool "Enable SPI4 BUS" @@ -126,42 +126,42 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI4 TX DMA" depends on BSP_USING_SPI4 default n - + config BSP_SPI4_RX_USING_DMA bool "Enable SPI4 RX DMA" depends on BSP_USING_SPI4 select BSP_SPI4_TX_USING_DMA default n - + config BSP_USING_SPI5 bool "Enable SPI5 BUS" - default n - + default n + config BSP_SPI5_RX_USING_DMA bool "Enable SPI5 TX DMA" depends on BSP_USING_SPI5 default n - + config BSP_SPI5_RX_USING_DMA bool "Enable SPI5 RX DMA" depends on BSP_USING_SPI5 select BSP_SPI5_TX_USING_DMA default n - + config BSP_USING_SPI6 bool "Enable SPI6 BUS" - default n + default n config BSP_SPI6_TX_USING_DMA bool "Enable SPI6 TX DMA" depends on BSP_USING_SPI6 default n - + config BSP_SPI6_RX_USING_DMA bool "Enable SPI6 RX DMA" depends on BSP_USING_SPI6 select BSP_SPI6_TX_USING_DMA - default n + default n endif menuconfig BSP_USING_RTC diff --git a/bsp/taihu/SConstruct b/bsp/taihu/SConstruct index dd187c5984..6dd67373a2 100644 --- a/bsp/taihu/SConstruct +++ b/bsp/taihu/SConstruct @@ -18,10 +18,10 @@ rtconfig.CFLAGS = rtconfig.CFLAGS + ' -I' + RTT_ROOT + '/libcpu/ppc/ppc405/inclu DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') @@ -30,5 +30,5 @@ Export('rtconfig') # prepare building environment objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False) -# build program +# build program DoBuilding(TARGET, objs) diff --git a/bsp/thead-smart/Kconfig b/bsp/thead-smart/Kconfig index 0df8e45101..2124994abd 100644 --- a/bsp/thead-smart/Kconfig +++ b/bsp/thead-smart/Kconfig @@ -33,6 +33,6 @@ if RT_USING_SERIAL config RT_USING_UART1 bool "Using uart1" - default y + default y endif diff --git a/bsp/ti/c28x/libraries/tms320f28379d/SConscript b/bsp/ti/c28x/libraries/tms320f28379d/SConscript index 3f15071389..0b2617c42f 100644 --- a/bsp/ti/c28x/libraries/tms320f28379d/SConscript +++ b/bsp/ti/c28x/libraries/tms320f28379d/SConscript @@ -47,8 +47,8 @@ if GetDepend(['BSP_USING_SPI']): if GetDepend(['BSP_USING_UART']): src += ['common/source/F2837xD_Sci.c'] src += ['common/source/F2837xD_sci_io.c'] - -path = [cwd + '/headers/include', + +path = [cwd + '/headers/include', cwd + '/headers/include'] CPPDEFINES = ['USE_HAL_DRIVER'] diff --git a/bsp/ti/c28x/tms320f28379d/Kconfig b/bsp/ti/c28x/tms320f28379d/Kconfig index 3e83f321c5..d87392a73c 100644 --- a/bsp/ti/c28x/tms320f28379d/Kconfig +++ b/bsp/ti/c28x/tms320f28379d/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../../../.." - + # you can change the RTT_ROOT default "../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" diff --git a/bsp/ti/c28x/tms320f28379d/board/Kconfig b/bsp/ti/c28x/tms320f28379d/board/Kconfig index 7c9e352d85..e69164f50b 100644 --- a/bsp/ti/c28x/tms320f28379d/board/Kconfig +++ b/bsp/ti/c28x/tms320f28379d/board/Kconfig @@ -135,7 +135,7 @@ menu "On-chip Peripheral Drivers" the phase for PWM1 module endif endif - + menuconfig BSP_PWM1_IT_ENABLE bool "Enable interrupt service" default n @@ -184,13 +184,13 @@ menu "On-chip Peripheral Drivers" bool "generate interrupt at the third time" endchoice config BSP_PWM1_INTPRD - int + int default 0 if BSP_PWM1_INT_ET_DISABLE default 1 if BSP_PWM1_INT_ET_1ST default 2 if BSP_PWM1_INT_ET_2ND default 3 if BSP_PWM1_INT_ET_3RD endif - choice + choice prompt "HSP Clock division" default BSP_PWM1_HSPCLKDIV1 config BSP_PWM1_HSPCLKDIV1 @@ -201,11 +201,11 @@ menu "On-chip Peripheral Drivers" bool "Clock Divided by 4" endchoice config BSP_PWM1_HSPCLKDIV - int + int default 0 if BSP_PWM1_HSPCLKDIV1 default 1 if BSP_PWM1_HSPCLKDIV2 default 2 if BSP_PWM1_HSPCLKDIV4 - choice + choice prompt "Clock division" default BSP_PWM1_CLKDIV1 config BSP_PWM1_CLKDIV1 @@ -216,11 +216,11 @@ menu "On-chip Peripheral Drivers" bool "Clock Divided by 4" endchoice config BSP_PWM1_CLKDIV - int + int default 0 if BSP_PWM1_CLKDIV1 default 1 if BSP_PWM1_CLKDIV2 default 2 if BSP_PWM1_CLKDIV4 - choice + choice default BSP_PWM1_CTR_MODE_UPDOWN prompt "Select counter mode" config BSP_PWM1_CTR_MODE_UPDOWN @@ -251,7 +251,7 @@ menu "On-chip Peripheral Drivers" endchoice config BSP_PWM1_LOADAMODE - int + int default 0 if BSP_PWM1_CC_CTR_ZERO default 1 if BSP_PWM1_CC_CTR_PRD default 2 if BSP_PWM1_CC_CTR_ZERO_PRD @@ -308,7 +308,7 @@ menu "On-chip Peripheral Drivers" bool "generate soc at the third time" endchoice config BSP_PWM1_SOCAPRD - int + int default 0 if BSP_PWM1_SOCA_ET_DISABLE default 1 if BSP_PWM1_SOCA_ET_1ST default 2 if BSP_PWM1_SOCA_ET_2ND @@ -355,7 +355,7 @@ menu "On-chip Peripheral Drivers" the phase for PWM2 module endif endif - + menuconfig BSP_PWM2_IT_ENABLE bool "Enable interrupt service" default n @@ -404,13 +404,13 @@ menu "On-chip Peripheral Drivers" bool "generate interrupt at the third time" endchoice config BSP_PWM2_INTPRD - int + int default 0 if BSP_PWM2_INT_ET_DISABLE default 1 if BSP_PWM2_INT_ET_1ST default 2 if BSP_PWM2_INT_ET_2ND default 3 if BSP_PWM2_INT_ET_3RD endif - choice + choice prompt "HSP Clock division" default BSP_PWM2_HSPCLKDIV1 config BSP_PWM2_HSPCLKDIV1 @@ -421,11 +421,11 @@ menu "On-chip Peripheral Drivers" bool "Clock Divided by 4" endchoice config BSP_PWM2_HSPCLKDIV - int + int default 0 if BSP_PWM2_HSPCLKDIV1 default 1 if BSP_PWM2_HSPCLKDIV2 default 2 if BSP_PWM2_HSPCLKDIV4 - choice + choice prompt "Clock division" default BSP_PWM2_CLKDIV1 config BSP_PWM2_CLKDIV1 @@ -436,11 +436,11 @@ menu "On-chip Peripheral Drivers" bool "Clock Divided by 4" endchoice config BSP_PWM2_CLKDIV - int + int default 0 if BSP_PWM2_CLKDIV1 default 1 if BSP_PWM2_CLKDIV2 default 2 if BSP_PWM2_CLKDIV4 - choice + choice default BSP_PWM2_CTR_MODE_UPDOWN prompt "Select counter mode" config BSP_PWM2_CTR_MODE_UPDOWN @@ -471,7 +471,7 @@ menu "On-chip Peripheral Drivers" endchoice config BSP_PWM2_LOADAMODE - int + int default 0 if BSP_PWM2_CC_CTR_ZERO default 1 if BSP_PWM2_CC_CTR_PRD default 2 if BSP_PWM2_CC_CTR_ZERO_PRD @@ -528,7 +528,7 @@ menu "On-chip Peripheral Drivers" bool "generate soc at the third time" endchoice config BSP_PWM2_SOCAPRD - int + int default 0 if BSP_PWM2_SOCA_ET_DISABLE default 1 if BSP_PWM2_SOCA_ET_1ST default 2 if BSP_PWM2_SOCA_ET_2ND @@ -575,7 +575,7 @@ menu "On-chip Peripheral Drivers" the phase for PWM3 module endif endif - + menuconfig BSP_PWM3_IT_ENABLE bool "Enable interrupt service" default n @@ -624,13 +624,13 @@ menu "On-chip Peripheral Drivers" bool "generate interrupt at the third time" endchoice config BSP_PWM3_INTPRD - int + int default 0 if BSP_PWM3_INT_ET_DISABLE default 1 if BSP_PWM3_INT_ET_1ST default 2 if BSP_PWM3_INT_ET_2ND default 3 if BSP_PWM3_INT_ET_3RD endif - choice + choice prompt "HSP Clock division" default BSP_PWM3_HSPCLKDIV1 config BSP_PWM3_HSPCLKDIV1 @@ -641,11 +641,11 @@ menu "On-chip Peripheral Drivers" bool "Clock Divided by 4" endchoice config BSP_PWM3_HSPCLKDIV - int + int default 0 if BSP_PWM3_HSPCLKDIV1 default 1 if BSP_PWM3_HSPCLKDIV2 default 2 if BSP_PWM3_HSPCLKDIV4 - choice + choice prompt "Clock division" default BSP_PWM3_CLKDIV1 config BSP_PWM3_CLKDIV1 @@ -656,11 +656,11 @@ menu "On-chip Peripheral Drivers" bool "Clock Divided by 4" endchoice config BSP_PWM3_CLKDIV - int + int default 0 if BSP_PWM3_CLKDIV1 default 1 if BSP_PWM3_CLKDIV2 default 2 if BSP_PWM3_CLKDIV4 - choice + choice default BSP_PWM3_CTR_MODE_UPDOWN prompt "Select counter mode" config BSP_PWM3_CTR_MODE_UPDOWN @@ -691,7 +691,7 @@ menu "On-chip Peripheral Drivers" endchoice config BSP_PWM3_LOADAMODE - int + int default 0 if BSP_PWM3_CC_CTR_ZERO default 1 if BSP_PWM3_CC_CTR_PRD default 2 if BSP_PWM3_CC_CTR_ZERO_PRD @@ -748,7 +748,7 @@ menu "On-chip Peripheral Drivers" bool "generate soc at the third time" endchoice config BSP_PWM3_SOCAPRD - int + int default 0 if BSP_PWM3_SOCA_ET_DISABLE default 1 if BSP_PWM3_SOCA_ET_1ST default 2 if BSP_PWM3_SOCA_ET_2ND @@ -795,7 +795,7 @@ menu "On-chip Peripheral Drivers" the phase for PWM4 module endif endif - + menuconfig BSP_PWM4_IT_ENABLE bool "Enable interrupt service" default n @@ -844,13 +844,13 @@ menu "On-chip Peripheral Drivers" bool "generate interrupt at the third time" endchoice config BSP_PWM4_INTPRD - int + int default 0 if BSP_PWM4_INT_ET_DISABLE default 1 if BSP_PWM4_INT_ET_1ST default 2 if BSP_PWM4_INT_ET_2ND default 3 if BSP_PWM4_INT_ET_3RD endif - choice + choice prompt "HSP Clock division" default BSP_PWM4_HSPCLKDIV1 config BSP_PWM4_HSPCLKDIV1 @@ -861,11 +861,11 @@ menu "On-chip Peripheral Drivers" bool "Clock Divided by 4" endchoice config BSP_PWM4_HSPCLKDIV - int + int default 0 if BSP_PWM4_HSPCLKDIV1 default 1 if BSP_PWM4_HSPCLKDIV2 default 2 if BSP_PWM4_HSPCLKDIV4 - choice + choice prompt "Clock division" default BSP_PWM4_CLKDIV1 config BSP_PWM4_CLKDIV1 @@ -876,11 +876,11 @@ menu "On-chip Peripheral Drivers" bool "Clock Divided by 4" endchoice config BSP_PWM4_CLKDIV - int + int default 0 if BSP_PWM4_CLKDIV1 default 1 if BSP_PWM4_CLKDIV2 default 2 if BSP_PWM4_CLKDIV4 - choice + choice default BSP_PWM4_CTR_MODE_UPDOWN prompt "Select counter mode" config BSP_PWM4_CTR_MODE_UPDOWN @@ -911,7 +911,7 @@ menu "On-chip Peripheral Drivers" endchoice config BSP_PWM4_LOADAMODE - int + int default 0 if BSP_PWM4_CC_CTR_ZERO default 1 if BSP_PWM4_CC_CTR_PRD default 2 if BSP_PWM4_CC_CTR_ZERO_PRD @@ -968,7 +968,7 @@ menu "On-chip Peripheral Drivers" bool "generate soc at the third time" endchoice config BSP_PWM4_SOCAPRD - int + int default 0 if BSP_PWM4_SOCA_ET_DISABLE default 1 if BSP_PWM4_SOCA_ET_1ST default 2 if BSP_PWM4_SOCA_ET_2ND diff --git a/bsp/ti/c28x/tms320f28379d/board/SConscript b/bsp/ti/c28x/tms320f28379d/board/SConscript index ca2ddbd9cf..e3e8024ac2 100644 --- a/bsp/ti/c28x/tms320f28379d/board/SConscript +++ b/bsp/ti/c28x/tms320f28379d/board/SConscript @@ -19,4 +19,4 @@ startup_path_prefix = SDK_LIB # src += [startup_path_prefix + '/HAL_Drivers/drv_sci.c'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/tm4c123bsp/SConstruct b/bsp/tm4c123bsp/SConstruct index 9941169c4d..50083edd56 100644 --- a/bsp/tm4c123bsp/SConstruct +++ b/bsp/tm4c123bsp/SConstruct @@ -8,7 +8,7 @@ else: RTT_ROOT = os.path.normpath(os.getcwd() + '/../..') # set RTT_ROOT -#if not os.getenv("RTT_ROOT"): +#if not os.getenv("RTT_ROOT"): #RTT_ROOT="rt-thread" sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] diff --git a/bsp/tm4c123bsp/board/Kconfig b/bsp/tm4c123bsp/board/Kconfig index be749799ea..9c93c1a0cc 100644 --- a/bsp/tm4c123bsp/board/Kconfig +++ b/bsp/tm4c123bsp/board/Kconfig @@ -42,7 +42,7 @@ menu "Onboard Peripheral Drivers" bool "Enable potentiometer" select BSP_USING_ADC select BSP_USING_ADC1 - default n + default n config BSP_USING_EEPROM bool "Enable I2C EEPROM (i2c1)" @@ -118,7 +118,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART2 RX DMA" depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA default n - + config BSP_USING_UART3 bool "Enable UART3" default n @@ -126,9 +126,9 @@ menu "On-chip Peripheral Drivers" config BSP_UART3_RX_USING_DMA bool "Enable UART3 RX DMA" depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA - default n + default n endif - + config BSP_USING_ON_CHIP_FLASH bool "Enable on-chip FLASH" default n @@ -150,7 +150,7 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI1 TX DMA" depends on BSP_USING_SPI1 default n - + config BSP_SPI1_RX_USING_DMA bool "Enable SPI1 RX DMA" depends on BSP_USING_SPI1 @@ -159,33 +159,33 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SPI2 bool "Enable SPI2 BUS" - default n - + default n + config BSP_SPI2_TX_USING_DMA bool "Enable SPI2 TX DMA" depends on BSP_USING_SPI2 default n - + config BSP_SPI2_RX_USING_DMA bool "Enable SPI2 RX DMA" depends on BSP_USING_SPI2 select BSP_SPI2_TX_USING_DMA default n - + config BSP_USING_SPI3 bool "Enable SPI3 BUS" - default n + default n config BSP_SPI3_TX_USING_DMA bool "Enable SPI3 TX DMA" depends on BSP_USING_SPI3 default n - + config BSP_SPI3_RX_USING_DMA bool "Enable SPI3 RX DMA" depends on BSP_USING_SPI3 select BSP_SPI3_TX_USING_DMA - default n + default n endif menuconfig BSP_USING_I2C1 @@ -337,8 +337,8 @@ menu "On-chip Peripheral Drivers" select RT_HWCRYPTO_USING_CRC # "Crypto device frame dose not support above 8-bits granularity" # "Reserve progress, running well, about 32-bits granularity, such as stm32f1, stm32f4" - default n - + default n + endmenu menu "Board extended module Drivers" diff --git a/bsp/tm4c123bsp/libraries/Drivers/SConscript b/bsp/tm4c123bsp/libraries/Drivers/SConscript index 50ef944d57..d50fd5cadc 100644 --- a/bsp/tm4c123bsp/libraries/Drivers/SConscript +++ b/bsp/tm4c123bsp/libraries/Drivers/SConscript @@ -10,7 +10,7 @@ src = Split(""" if GetDepend(['RT_USING_PIN']): src += ['drv_gpio.c'] - + if GetDepend(['RT_USING_SERIAL']): src += ['drv_uart.c'] @@ -72,10 +72,10 @@ if GetDepend(['BSP_USING_ON_CHIP_FLASH', 'SOC_SERIES_STM32F7']): if GetDepend(['BSP_USING_ON_CHIP_FLASH', 'SOC_SERIES_STM32L4']): src += ['drv_flash/drv_flash_l4.c'] - + if GetDepend('RT_USING_HWCRYPTO'): src += ['drv_crypto.c'] - + if GetDepend(['BSP_USING_WDT']): src += ['drv_wdt.c'] diff --git a/bsp/tm4c123bsp/libraries/TivaWare_C_series/SConscript b/bsp/tm4c123bsp/libraries/TivaWare_C_series/SConscript index 7871c9ec09..bd6ba1b1cf 100644 --- a/bsp/tm4c123bsp/libraries/TivaWare_C_series/SConscript +++ b/bsp/tm4c123bsp/libraries/TivaWare_C_series/SConscript @@ -16,13 +16,13 @@ tm4c123_driverlib/src/gpio.c """) #if GetDepend(['RT_USING_PIN']): - + if GetDepend(['RT_USING_SERIAL']): src += ['tm4c123_driverlib/src/uart.c'] #if GetDepend(['RT_USING_I2C']): - + if GetDepend(['RT_USING_SPI']): src += ['tm4c123_driverlib/src/ssi.c'] @@ -32,10 +32,10 @@ if GetDepend(['RT_USING_SPI']): #if GetDepend(['RT_USING_CAN']): -#if GetDepend(['RT_USING_HWTIMER']) +#if GetDepend(['RT_USING_HWTIMER']) if GetDepend(['RT_USING_PWM']) or GetDepend(['RT_USING_PULSE_ENCODER']): - src += ['tm4c123_driverlib/src/pwm.c'] + src += ['tm4c123_driverlib/src/pwm.c'] #if GetDepend(['BSP_USING_ETH']): @@ -64,7 +64,7 @@ if GetDepend(['RT_USING_ADC']): #if GetDepend(['BSP_USING_ON_CHIP_FLASH']): -path = [cwd + '/tm4c123_driverlib', +path = [cwd + '/tm4c123_driverlib', cwd + '/tm4c123_driverlib/driverlib', cwd + '/tm4c123_driverlib/driverlib/inc'] diff --git a/bsp/tm4c129x/Kconfig b/bsp/tm4c129x/Kconfig index 4215b86b09..df93257e9d 100644 --- a/bsp/tm4c129x/Kconfig +++ b/bsp/tm4c129x/Kconfig @@ -26,5 +26,5 @@ config SOC_TM4C129 config RT_USING_UART0 bool "Using RT_USING_UART0" - default y - + default y + diff --git a/bsp/tm4c129x/SConstruct b/bsp/tm4c129x/SConstruct index f670f565fd..54b8f6095c 100644 --- a/bsp/tm4c129x/SConstruct +++ b/bsp/tm4c129x/SConstruct @@ -14,10 +14,10 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/tm4c129x/drivers/SConscript b/bsp/tm4c129x/drivers/SConscript index e5f4cd4945..58bca3ad7f 100644 --- a/bsp/tm4c129x/drivers/SConscript +++ b/bsp/tm4c129x/drivers/SConscript @@ -5,7 +5,7 @@ src = Glob('*.c') # remove no need file. if GetDepend('RT_USING_LWIP') == False: - SrcRemove(src, 'drv_emac.c') + SrcRemove(src, 'drv_emac.c') CPPPATH = [cwd] diff --git a/bsp/tm4c129x/libraries/SConscript b/bsp/tm4c129x/libraries/SConscript index 3d153e9984..c91b7a27d8 100644 --- a/bsp/tm4c129x/libraries/SConscript +++ b/bsp/tm4c129x/libraries/SConscript @@ -8,7 +8,7 @@ src = Glob('driverlib/*.c') SrcRemove(src, 'onewire.c') CFLAGS = '' -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: src += ['startup/startup_gcc.c'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: diff --git a/bsp/upd70f3454/SConstruct b/bsp/upd70f3454/SConstruct index b2bb1fb417..42efe4a9c3 100644 --- a/bsp/upd70f3454/SConstruct +++ b/bsp/upd70f3454/SConstruct @@ -10,7 +10,7 @@ else: sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] from building import * -TARGET = 'rtthread.' + rtconfig.TARGET_EXT +TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], diff --git a/bsp/upd70f3454/drivers/SConscript b/bsp/upd70f3454/drivers/SConscript index 8e9111c357..449e7a8992 100644 --- a/bsp/upd70f3454/drivers/SConscript +++ b/bsp/upd70f3454/drivers/SConscript @@ -4,7 +4,7 @@ import rtconfig cwd = GetCurrentDir() src_c = Glob('*.c') -# add for startup script +# add for startup script if rtconfig.PLATFORM in ['gcc']: src_asm = ['start_gcc.S', 'vectors_gcc.S', 'interrupts_gcc.S'] elif rtconfig.PLATFORM in ['iccarm']: diff --git a/bsp/w60x/Kconfig b/bsp/w60x/Kconfig index 4064eec31c..f53b8c1abc 100644 --- a/bsp/w60x/Kconfig +++ b/bsp/w60x/Kconfig @@ -9,7 +9,7 @@ config RTT_DIR string option env="RTT_ROOT" default "../.." - + # you can change the RTT_ROOT default "../.." to your rtthread_root, # example : default "F:/git_repositories/rt-thread" @@ -17,7 +17,7 @@ config PKGS_DIR string option env="PKGS_ROOT" default "packages" - + config ENV_DIR string option env="ENV_ROOT" diff --git a/bsp/w60x/applications/SConscript b/bsp/w60x/applications/SConscript index a526af2c75..ca2395451a 100644 --- a/bsp/w60x/applications/SConscript +++ b/bsp/w60x/applications/SConscript @@ -3,7 +3,7 @@ Import('rtconfig') from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/w60x/drivers/Kconfig b/bsp/w60x/drivers/Kconfig index 4682a88151..2a10fd89dc 100644 --- a/bsp/w60x/drivers/Kconfig +++ b/bsp/w60x/drivers/Kconfig @@ -173,7 +173,7 @@ menu "On-chip Peripheral Drivers" default 19 endif endif - + config BSP_USING_I2C bool "Enable I2C" select RT_USING_I2C @@ -195,12 +195,12 @@ menu "On-chip Peripheral Drivers" config BSP_USING_SOFT_I2C1 bool "Enabel SOFT I2C1" default n - endif + endif if BSP_USING_SOFT_I2C config BSP_USING_SOFT_I2C2 bool "Enabel SOFT I2C2" - default n + default n endif menuconfig BSP_USING_SPI diff --git a/bsp/wch/arm/Libraries/CH32F10x_StdPeriph_Driver/SConscript b/bsp/wch/arm/Libraries/CH32F10x_StdPeriph_Driver/SConscript index 84a1542f5b..0246136658 100644 --- a/bsp/wch/arm/Libraries/CH32F10x_StdPeriph_Driver/SConscript +++ b/bsp/wch/arm/Libraries/CH32F10x_StdPeriph_Driver/SConscript @@ -29,7 +29,7 @@ StdPeriph_Driver/src/ch32f10x_wwdg.c """) path = [ - cwd + '/CMSIS', + cwd + '/CMSIS', cwd + '/CMSIS/WCH/CH32F10x/Include', cwd + '/StdPeriph_Driver/inc'] diff --git a/bsp/wch/arm/Libraries/CH32F20x_StdPeriph_Driver/SConscript b/bsp/wch/arm/Libraries/CH32F20x_StdPeriph_Driver/SConscript index b3da75ec13..ed170f20a3 100644 --- a/bsp/wch/arm/Libraries/CH32F20x_StdPeriph_Driver/SConscript +++ b/bsp/wch/arm/Libraries/CH32F20x_StdPeriph_Driver/SConscript @@ -29,7 +29,7 @@ StdPeriph_Driver/src/ch32f20x_wwdg.c """) path = [ - cwd + '/CMSIS', + cwd + '/CMSIS', cwd + '/CMSIS/WCH/CH32F20x/Include', cwd + '/StdPeriph_Driver/inc'] diff --git a/bsp/wch/arm/Libraries/Kconfig b/bsp/wch/arm/Libraries/Kconfig index 6906fa9221..7014bb3911 100644 --- a/bsp/wch/arm/Libraries/Kconfig +++ b/bsp/wch/arm/Libraries/Kconfig @@ -20,4 +20,4 @@ config SOC_ARM_SERIES_CH32F207 bool select ARCH_ARM_CORTEX_M3 select SOC_ARM_FAMILY_CH32 - \ No newline at end of file + diff --git a/bsp/wch/arm/ch32f103c8-core/board/Kconfig b/bsp/wch/arm/ch32f103c8-core/board/Kconfig index 41ae4bcb64..beac3e7972 100644 --- a/bsp/wch/arm/ch32f103c8-core/board/Kconfig +++ b/bsp/wch/arm/ch32f103c8-core/board/Kconfig @@ -27,7 +27,7 @@ config BSP_USING_UART bool "using uart3" default n endif - + config BSP_USING_SPI bool "using onchip spi" select RT_USING_SPI @@ -42,7 +42,7 @@ config BSP_USING_SPI bool "using spi2" default n endif - + config BSP_USING_HWI2C bool "using onchip i2c" select RT_USING_I2C diff --git a/bsp/wch/arm/ch579m/board/Kconfig b/bsp/wch/arm/ch579m/board/Kconfig index 54fb348389..e8312fdfed 100644 --- a/bsp/wch/arm/ch579m/board/Kconfig +++ b/bsp/wch/arm/ch579m/board/Kconfig @@ -13,7 +13,7 @@ menu "On-chip Peripheral Drivers" default y select RT_USING_SERIAL if BSP_USING_UART - config BSP_USING_UART0 + config BSP_USING_UART0 bool "Enable UART0" default n @@ -24,17 +24,17 @@ menu "On-chip Peripheral Drivers" config BSP_USING_UART2 bool "Enable UART2" default n - + config BSP_USING_UART3 bool "Enable UART3" default n endif - + config BSP_USING_USBH bool "Enable USBH" default n select RT_USING_USB_HOST - + config BSP_USING_ETH bool "Enable ETH" default n diff --git a/bsp/wch/arm/ch579m/board/SConscript b/bsp/wch/arm/ch579m/board/SConscript index 744b56d030..df45bfeaa7 100644 --- a/bsp/wch/arm/ch579m/board/SConscript +++ b/bsp/wch/arm/ch579m/board/SConscript @@ -8,4 +8,4 @@ CPPPATH = [cwd] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/wch/arm/ch579m/libraries/SConscript b/bsp/wch/arm/ch579m/libraries/SConscript index b5d44ac73b..4fc931e943 100644 --- a/bsp/wch/arm/ch579m/libraries/SConscript +++ b/bsp/wch/arm/ch579m/libraries/SConscript @@ -13,4 +13,4 @@ src += Glob('StdPeriphDriver/*.c') group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/wch/risc-v/Libraries/CH32V10x_StdPeriph_Driver/SConscript b/bsp/wch/risc-v/Libraries/CH32V10x_StdPeriph_Driver/SConscript index dd47e2e35d..fb3ef6a634 100644 --- a/bsp/wch/risc-v/Libraries/CH32V10x_StdPeriph_Driver/SConscript +++ b/bsp/wch/risc-v/Libraries/CH32V10x_StdPeriph_Driver/SConscript @@ -30,7 +30,7 @@ CMSIS/WCH/CH32V10x/Source/GCC/startup_ch32v10x.S """) path = [ - cwd + '/CMSIS', + cwd + '/CMSIS', cwd + '/CMSIS/WCH/CH32V10x/Include', cwd + '/StdPeriph_Driver/inc'] diff --git a/bsp/wch/risc-v/Libraries/Kconfig b/bsp/wch/risc-v/Libraries/Kconfig index 298f56a9aa..6cf71d3d55 100644 --- a/bsp/wch/risc-v/Libraries/Kconfig +++ b/bsp/wch/risc-v/Libraries/Kconfig @@ -5,12 +5,12 @@ config SOC_RISCV_SERIES_CH32V1 bool select ARCH_RISCV select SOC_RISCV_FAMILY_CH32 - + config SOC_RISCV_SERIES_CH32V2 bool select ARCH_RISCV select SOC_RISCV_FAMILY_CH32 - + config SOC_RISCV_SERIES_CH32V3 bool select ARCH_RISCV diff --git a/bsp/wch/risc-v/Libraries/ch32_drivers/SConscript b/bsp/wch/risc-v/Libraries/ch32_drivers/SConscript index bc7af68f9c..503fd88aab 100644 --- a/bsp/wch/risc-v/Libraries/ch32_drivers/SConscript +++ b/bsp/wch/risc-v/Libraries/ch32_drivers/SConscript @@ -16,11 +16,11 @@ if GetDepend('SOC_RISCV_FAMILY_CH32'): src += ['drv_adc.c'] if GetDepend('BSP_USING_DAC'): - src += ['drv_dac.c'] + src += ['drv_dac.c'] if GetDepend('BSP_USING_SOFT_I2C'): src += ['drv_soft_i2c.c'] - + if GetDepend('BSP_USING_SPI'): src += ['drv_soft_spi.c','drv_spi.c'] @@ -29,13 +29,13 @@ if GetDepend('SOC_RISCV_FAMILY_CH32'): if GetDepend('BSP_USING_IWDT'): src += ['drv_iwdt.c'] - + if GetDepend('BSP_USING_CAN'): - src += ['drv_can.c'] + src += ['drv_can.c'] if GetDepend('BSP_USING_PWM'): src += ['drv_pwm.c'] - + if GetDepend('BSP_USING_HWTIMER'): src += ['drv_hwtimer.c'] diff --git a/bsp/wch/risc-v/Libraries/ch32v20x_libraries/bmsis/SConscript b/bsp/wch/risc-v/Libraries/ch32v20x_libraries/bmsis/SConscript index 08fcbe8b8c..a6d50f55f3 100644 --- a/bsp/wch/risc-v/Libraries/ch32v20x_libraries/bmsis/SConscript +++ b/bsp/wch/risc-v/Libraries/ch32v20x_libraries/bmsis/SConscript @@ -1,7 +1,7 @@ #-*- encoding: utf-8 -*- import os -from building import * +from building import * Import('RTT_ROOT') Import('rtconfig') @@ -14,22 +14,22 @@ DEPENDS = [""] #DEPENDS = ["PKG_USING_RW007"] #--------------------------------------------------------------------------------- -# Compile the configuration +# Compile the configuration # # SOURCES: Need to compile c and c++ source, auto search when SOURCES is empty -# +# # LOCAL_CPPPATH: Local file path (.h/.c/.cpp) -# LOCAL_CCFLAGS: Local compilation parameter +# LOCAL_CCFLAGS: Local compilation parameter # LOCAL_ASFLAGS: Local assembly parameters -# -# CPPPATH: Global file path (.h/.c/.cpp), auto search when LOCAL_CPPPATH/CPPPATH +# +# CPPPATH: Global file path (.h/.c/.cpp), auto search when LOCAL_CPPPATH/CPPPATH # is empty # no pass!!! -# CCFLAGS: Global compilation parameter +# CCFLAGS: Global compilation parameter # ASFLAGS: Global assembly parameters # # CPPDEFINES: Global macro definition -# LOCAL_CPPDEFINES: Local macro definition -# +# LOCAL_CPPDEFINES: Local macro definition +# # LIBS: Specify the static library that need to be linked # LIBPATH: Specify the search directory for the library file (.lib/.a) # @@ -38,21 +38,21 @@ DEPENDS = [""] SOURCES = Glob("./source/*.c") SOURCES += Glob("./source/startup_ch32v20x_D8W.S") -LOCAL_CPPPATH = [] -LOCAL_CCFLAGS = "" +LOCAL_CPPPATH = [] +LOCAL_CCFLAGS = "" LOCAL_ASFLAGS = "" -CPPPATH = [GetCurrentDir(), os.path.join(GetCurrentDir(), 'include')] -CCFLAGS = "" +CPPPATH = [GetCurrentDir(), os.path.join(GetCurrentDir(), 'include')] +CCFLAGS = "" ASFLAGS = "" CPPDEFINES = [] LOCAL_CPPDEFINES = [] -LIBS = [] -LIBPATH = [] +LIBS = [] +LIBPATH = [] -LINKFLAGS = "" +LINKFLAGS = "" SOURCES_IGNORE = [] CPPPATH_IGNORE = [] @@ -60,20 +60,20 @@ CPPPATH_IGNORE = [] #--------------------------------------------------------------------------------- # Main target #--------------------------------------------------------------------------------- -objs = DefineGroup(name = PKGNAME, src = SOURCES, depend = DEPENDS, - CPPPATH = CPPPATH, - CCFLAGS = CCFLAGS, - ASFLAGS = ASFLAGS, - LOCAL_CPPPATH = LOCAL_CPPPATH, - LOCAL_CCFLAGS = LOCAL_CCFLAGS, - LOCAL_ASFLAGS = LOCAL_ASFLAGS, - CPPDEFINES = CPPDEFINES, - LOCAL_CPPDEFINES = LOCAL_CPPDEFINES, - LIBS = LIBS, +objs = DefineGroup(name = PKGNAME, src = SOURCES, depend = DEPENDS, + CPPPATH = CPPPATH, + CCFLAGS = CCFLAGS, + ASFLAGS = ASFLAGS, + LOCAL_CPPPATH = LOCAL_CPPPATH, + LOCAL_CCFLAGS = LOCAL_CCFLAGS, + LOCAL_ASFLAGS = LOCAL_ASFLAGS, + CPPDEFINES = CPPDEFINES, + LOCAL_CPPDEFINES = LOCAL_CPPDEFINES, + LIBS = LIBS, LIBPATH = LIBPATH, - LINKFLAGS = LINKFLAGS) + LINKFLAGS = LINKFLAGS) -Return("objs") +Return("objs") #--------------------------------------------------------------------------------- # End #--------------------------------------------------------------------------------- diff --git a/bsp/wch/risc-v/Libraries/ch32v20x_libraries/ch32v208_hal/SConscript b/bsp/wch/risc-v/Libraries/ch32v20x_libraries/ch32v208_hal/SConscript index 841b6e7ca9..4bf1e5e9db 100644 --- a/bsp/wch/risc-v/Libraries/ch32v20x_libraries/ch32v208_hal/SConscript +++ b/bsp/wch/risc-v/Libraries/ch32v20x_libraries/ch32v208_hal/SConscript @@ -1,7 +1,7 @@ #-*- encoding: utf-8 -*- import os -from building import * +from building import * Import('RTT_ROOT') Import('rtconfig') @@ -13,22 +13,22 @@ VERSION = "v1.0.0" DEPENDS = [""] #--------------------------------------------------------------------------------- -# Compile the configuration +# Compile the configuration # # SOURCES: Need to compile c and c++ source, auto search when SOURCES is empty -# +# # LOCAL_CPPPATH: Local file path (.h/.c/.cpp) -# LOCAL_CCFLAGS: Local compilation parameter +# LOCAL_CCFLAGS: Local compilation parameter # LOCAL_ASFLAGS: Local assembly parameters -# -# CPPPATH: Global file path (.h/.c/.cpp), auto search when LOCAL_CPPPATH/CPPPATH +# +# CPPPATH: Global file path (.h/.c/.cpp), auto search when LOCAL_CPPPATH/CPPPATH # is empty # no pass!!! -# CCFLAGS: Global compilation parameter +# CCFLAGS: Global compilation parameter # ASFLAGS: Global assembly parameters # # CPPDEFINES: Global macro definition -# LOCAL_CPPDEFINES: Local macro definition -# +# LOCAL_CPPDEFINES: Local macro definition +# # LIBS: Specify the static library that need to be linked # LIBPATH: Specify the search directory for the library file (.lib/.a) # @@ -37,21 +37,21 @@ DEPENDS = [""] CWD = GetCurrentDir() SOURCES = Glob("./source/*.c") -LOCAL_CPPPATH = [] -LOCAL_CCFLAGS = "" +LOCAL_CPPPATH = [] +LOCAL_CCFLAGS = "" LOCAL_ASFLAGS = "" -CPPPATH = [GetCurrentDir(), os.path.join(GetCurrentDir(), 'include')] -CCFLAGS = "" +CPPPATH = [GetCurrentDir(), os.path.join(GetCurrentDir(), 'include')] +CCFLAGS = "" ASFLAGS = "" CPPDEFINES = [] LOCAL_CPPDEFINES = [] -LIBS = [] +LIBS = [] LIBPATH = [] -LINKFLAGS = "" +LINKFLAGS = "" SOURCES_IGNORE = [] CPPPATH_IGNORE = [] @@ -59,20 +59,20 @@ CPPPATH_IGNORE = [] #--------------------------------------------------------------------------------- # Main target #--------------------------------------------------------------------------------- -objs = DefineGroup(name = PKGNAME, src = SOURCES, depend = DEPENDS, - CPPPATH = CPPPATH, - CCFLAGS = CCFLAGS, - ASFLAGS = ASFLAGS, - LOCAL_CPPPATH = LOCAL_CPPPATH, - LOCAL_CCFLAGS = LOCAL_CCFLAGS, - LOCAL_ASFLAGS = LOCAL_ASFLAGS, - CPPDEFINES = CPPDEFINES, +objs = DefineGroup(name = PKGNAME, src = SOURCES, depend = DEPENDS, + CPPPATH = CPPPATH, + CCFLAGS = CCFLAGS, + ASFLAGS = ASFLAGS, + LOCAL_CPPPATH = LOCAL_CPPPATH, + LOCAL_CCFLAGS = LOCAL_CCFLAGS, + LOCAL_ASFLAGS = LOCAL_ASFLAGS, + CPPDEFINES = CPPDEFINES, LOCAL_CPPDEFINES = LOCAL_CPPDEFINES, - LIBS = LIBS, - LIBPATH = LIBPATH, - LINKFLAGS = LINKFLAGS) + LIBS = LIBS, + LIBPATH = LIBPATH, + LINKFLAGS = LINKFLAGS) -Return("objs") +Return("objs") #--------------------------------------------------------------------------------- # End #--------------------------------------------------------------------------------- diff --git a/bsp/wch/risc-v/Libraries/ch32v30x_libraries/bmsis/SConscript b/bsp/wch/risc-v/Libraries/ch32v30x_libraries/bmsis/SConscript index beb4118703..7a433373ca 100644 --- a/bsp/wch/risc-v/Libraries/ch32v30x_libraries/bmsis/SConscript +++ b/bsp/wch/risc-v/Libraries/ch32v30x_libraries/bmsis/SConscript @@ -1,7 +1,7 @@ #-*- encoding: utf-8 -*- import os -from building import * +from building import * Import('RTT_ROOT') Import('rtconfig') @@ -14,22 +14,22 @@ DEPENDS = [""] #DEPENDS = ["PKG_USING_RW007"] #--------------------------------------------------------------------------------- -# Compile the configuration +# Compile the configuration # # SOURCES: Need to compile c and c++ source, auto search when SOURCES is empty -# +# # LOCAL_CPPPATH: Local file path (.h/.c/.cpp) -# LOCAL_CCFLAGS: Local compilation parameter +# LOCAL_CCFLAGS: Local compilation parameter # LOCAL_ASFLAGS: Local assembly parameters -# -# CPPPATH: Global file path (.h/.c/.cpp), auto search when LOCAL_CPPPATH/CPPPATH +# +# CPPPATH: Global file path (.h/.c/.cpp), auto search when LOCAL_CPPPATH/CPPPATH # is empty # no pass!!! -# CCFLAGS: Global compilation parameter +# CCFLAGS: Global compilation parameter # ASFLAGS: Global assembly parameters # # CPPDEFINES: Global macro definition -# LOCAL_CPPDEFINES: Local macro definition -# +# LOCAL_CPPDEFINES: Local macro definition +# # LIBS: Specify the static library that need to be linked # LIBPATH: Specify the search directory for the library file (.lib/.a) # @@ -38,21 +38,21 @@ DEPENDS = [""] SOURCES = Glob("./source/*.c") SOURCES += Glob("./source/startup_ch32v30x.S") -LOCAL_CPPPATH = [] -LOCAL_CCFLAGS = "" +LOCAL_CPPPATH = [] +LOCAL_CCFLAGS = "" LOCAL_ASFLAGS = "" -CPPPATH = [GetCurrentDir(), os.path.join(GetCurrentDir(), 'include')] -CCFLAGS = "" +CPPPATH = [GetCurrentDir(), os.path.join(GetCurrentDir(), 'include')] +CCFLAGS = "" ASFLAGS = "" CPPDEFINES = [] LOCAL_CPPDEFINES = [] -LIBS = [] -LIBPATH = [] +LIBS = [] +LIBPATH = [] -LINKFLAGS = "" +LINKFLAGS = "" SOURCES_IGNORE = [] CPPPATH_IGNORE = [] @@ -60,20 +60,20 @@ CPPPATH_IGNORE = [] #--------------------------------------------------------------------------------- # Main target #--------------------------------------------------------------------------------- -objs = DefineGroup(name = PKGNAME, src = SOURCES, depend = DEPENDS, - CPPPATH = CPPPATH, - CCFLAGS = CCFLAGS, - ASFLAGS = ASFLAGS, - LOCAL_CPPPATH = LOCAL_CPPPATH, - LOCAL_CCFLAGS = LOCAL_CCFLAGS, - LOCAL_ASFLAGS = LOCAL_ASFLAGS, - CPPDEFINES = CPPDEFINES, - LOCAL_CPPDEFINES = LOCAL_CPPDEFINES, - LIBS = LIBS, +objs = DefineGroup(name = PKGNAME, src = SOURCES, depend = DEPENDS, + CPPPATH = CPPPATH, + CCFLAGS = CCFLAGS, + ASFLAGS = ASFLAGS, + LOCAL_CPPPATH = LOCAL_CPPPATH, + LOCAL_CCFLAGS = LOCAL_CCFLAGS, + LOCAL_ASFLAGS = LOCAL_ASFLAGS, + CPPDEFINES = CPPDEFINES, + LOCAL_CPPDEFINES = LOCAL_CPPDEFINES, + LIBS = LIBS, LIBPATH = LIBPATH, - LINKFLAGS = LINKFLAGS) + LINKFLAGS = LINKFLAGS) -Return("objs") +Return("objs") #--------------------------------------------------------------------------------- # End #--------------------------------------------------------------------------------- diff --git a/bsp/wch/risc-v/Libraries/ch32v30x_libraries/ch32v307_hal/SConscript b/bsp/wch/risc-v/Libraries/ch32v30x_libraries/ch32v307_hal/SConscript index 98058f5172..81f8436408 100644 --- a/bsp/wch/risc-v/Libraries/ch32v30x_libraries/ch32v307_hal/SConscript +++ b/bsp/wch/risc-v/Libraries/ch32v30x_libraries/ch32v307_hal/SConscript @@ -1,7 +1,7 @@ #-*- encoding: utf-8 -*- import os -from building import * +from building import * Import('RTT_ROOT') Import('rtconfig') @@ -13,22 +13,22 @@ VERSION = "v1.0.0" DEPENDS = [""] #--------------------------------------------------------------------------------- -# Compile the configuration +# Compile the configuration # # SOURCES: Need to compile c and c++ source, auto search when SOURCES is empty -# +# # LOCAL_CPPPATH: Local file path (.h/.c/.cpp) -# LOCAL_CCFLAGS: Local compilation parameter +# LOCAL_CCFLAGS: Local compilation parameter # LOCAL_ASFLAGS: Local assembly parameters -# -# CPPPATH: Global file path (.h/.c/.cpp), auto search when LOCAL_CPPPATH/CPPPATH +# +# CPPPATH: Global file path (.h/.c/.cpp), auto search when LOCAL_CPPPATH/CPPPATH # is empty # no pass!!! -# CCFLAGS: Global compilation parameter +# CCFLAGS: Global compilation parameter # ASFLAGS: Global assembly parameters # # CPPDEFINES: Global macro definition -# LOCAL_CPPDEFINES: Local macro definition -# +# LOCAL_CPPDEFINES: Local macro definition +# # LIBS: Specify the static library that need to be linked # LIBPATH: Specify the search directory for the library file (.lib/.a) # @@ -37,21 +37,21 @@ DEPENDS = [""] CWD = GetCurrentDir() SOURCES = Glob("./source/*.c") -LOCAL_CPPPATH = [] -LOCAL_CCFLAGS = "" +LOCAL_CPPPATH = [] +LOCAL_CCFLAGS = "" LOCAL_ASFLAGS = "" -CPPPATH = [GetCurrentDir(), os.path.join(GetCurrentDir(), 'include')] -CCFLAGS = "" +CPPPATH = [GetCurrentDir(), os.path.join(GetCurrentDir(), 'include')] +CCFLAGS = "" ASFLAGS = "" CPPDEFINES = [] LOCAL_CPPDEFINES = [] -LIBS = [] +LIBS = [] LIBPATH = [] -LINKFLAGS = "" +LINKFLAGS = "" SOURCES_IGNORE = [] CPPPATH_IGNORE = [] @@ -59,20 +59,20 @@ CPPPATH_IGNORE = [] #--------------------------------------------------------------------------------- # Main target #--------------------------------------------------------------------------------- -objs = DefineGroup(name = PKGNAME, src = SOURCES, depend = DEPENDS, - CPPPATH = CPPPATH, - CCFLAGS = CCFLAGS, - ASFLAGS = ASFLAGS, - LOCAL_CPPPATH = LOCAL_CPPPATH, - LOCAL_CCFLAGS = LOCAL_CCFLAGS, - LOCAL_ASFLAGS = LOCAL_ASFLAGS, - CPPDEFINES = CPPDEFINES, +objs = DefineGroup(name = PKGNAME, src = SOURCES, depend = DEPENDS, + CPPPATH = CPPPATH, + CCFLAGS = CCFLAGS, + ASFLAGS = ASFLAGS, + LOCAL_CPPPATH = LOCAL_CPPPATH, + LOCAL_CCFLAGS = LOCAL_CCFLAGS, + LOCAL_ASFLAGS = LOCAL_ASFLAGS, + CPPDEFINES = CPPDEFINES, LOCAL_CPPDEFINES = LOCAL_CPPDEFINES, - LIBS = LIBS, - LIBPATH = LIBPATH, - LINKFLAGS = LINKFLAGS) + LIBS = LIBS, + LIBPATH = LIBPATH, + LINKFLAGS = LINKFLAGS) -Return("objs") +Return("objs") #--------------------------------------------------------------------------------- # End #--------------------------------------------------------------------------------- diff --git a/bsp/wch/risc-v/ch32v208w-r0/board/Kconfig b/bsp/wch/risc-v/ch32v208w-r0/board/Kconfig index 613551495b..60b1545d11 100644 --- a/bsp/wch/risc-v/ch32v208w-r0/board/Kconfig +++ b/bsp/wch/risc-v/ch32v208w-r0/board/Kconfig @@ -51,7 +51,7 @@ menu "On-chip Peripheral Drivers" bool "Enable UART8" default n endif - + menuconfig BSP_USING_ADC bool "Enable ADC" select RT_USING_ADC @@ -68,16 +68,16 @@ menu "On-chip Peripheral Drivers" config ADC_CHANNEL_16 bool "Enable ADC CHANNEL 16 (inside temperature)" - default n + default n config ADC_CHANNEL_17 bool "Enable ADC CHANNEL 17 (inside Verf)" - default n + default n endif menuconfig BSP_USING_DAC bool "Enable DAC" - select RT_USING_DAC + select RT_USING_DAC default n if BSP_USING_DAC @@ -86,8 +86,8 @@ menu "On-chip Peripheral Drivers" default n config BSP_USING_DAC_CHANNEL2 bool "Enable DAC CHANNEL2" - default n - endif + default n + endif menuconfig BSP_USING_SOFT_I2C bool "Enable I2C Bus" @@ -135,31 +135,31 @@ menu "On-chip Peripheral Drivers" bool "Enable SPI" select RT_USING_SPI_BITOPS select RT_USING_SPI - + if BSP_USING_SPI config BSP_USING_SPI1 bool "Enable SPI1" default n - + config BSP_USING_SPI2 bool "Enable SPI2" default n - + config BSP_USING_SPI3 bool "Enable SPI3" default n - + if BSP_USING_SPI3 config BSP_USING_SPI_FLASH bool "Enable SPI Flash" default n endif - + config BSP_USING_SOFT_SPI1 bool "Enable SSPI1 Bus (User SPI)" default n if BSP_USING_SOFT_SPI1 - comment "Notice: PB9 --> 25; PB8 --> 24; PB7 --> 23" + comment "Notice: PB9 --> 25; PB8 --> 24; PB7 --> 23" config BSP_S_SPI1_SCK_PIN int "sspi1 SCL pin number" range 1 79 @@ -171,14 +171,14 @@ menu "On-chip Peripheral Drivers" config BSP_S_SPI1_MISO_PIN int "sspi1 MOSI pin number" range 1 79 - default 23 + default 23 endif - + config BSP_USING_SOFT_SPI2 bool "Enable SSPI2 Bus (soft SPI)" default n if BSP_USING_SOFT_SPI2 - comment "Notice: PE0 --> 64; PE1 --> 65; PE2 --> 66" + comment "Notice: PE0 --> 64; PE1 --> 65; PE2 --> 66" config BSP_S_SPI2_SCK_PIN int "sspi2 SCL pin number" range 1 79 @@ -190,15 +190,15 @@ menu "On-chip Peripheral Drivers" config BSP_S_SPI2_MISO_PIN int "sspi2 MOSI pin number" range 1 79 - default 66 - endif + default 66 + endif endif config BSP_USING_RTC bool "Enable RTC" select RT_USING_RTC default n - + if BSP_USING_RTC config BSP_USING_RTC_LSI bool "Using LSI clock for rtc, if not, LSE default" @@ -215,8 +215,8 @@ menu "On-chip Peripheral Drivers" select RT_USING_WDT select LSI_VALUE default n - - menuconfig BSP_USING_CAN + + menuconfig BSP_USING_CAN bool "Enable CAN" default n select RT_USING_CAN @@ -387,7 +387,7 @@ menu "On-chip Peripheral Drivers" endif endif - + config BSP_USING_TIM5 bool "Using TIM5" default n @@ -423,7 +423,7 @@ menu "On-chip Peripheral Drivers" endif endif - + config BSP_USING_TIM6 bool "Using TIM6" default n @@ -437,9 +437,9 @@ menu "On-chip Peripheral Drivers" bool "Using TIM6 as hwtimer mode" select BSP_USING_HWTIMER endchoice - + endif - + config BSP_USING_TIM7 bool "Using TIM7" default n @@ -453,9 +453,9 @@ menu "On-chip Peripheral Drivers" bool "Using TIM7 as hwtimer mode" select BSP_USING_HWTIMER endchoice - + endif - + config BSP_USING_TIM8 bool "Using TIM8" default n @@ -489,9 +489,9 @@ menu "On-chip Peripheral Drivers" config BSP_USING_TIM8_PWM_CH4 bool "Using TIM8 channel 4" endif - + endif - + config BSP_USING_TIM9 bool "Using TIM9" default n @@ -525,9 +525,9 @@ menu "On-chip Peripheral Drivers" config BSP_USING_TIM9_PWM_CH4 bool "Using TIM9 channel 4" endif - + endif - + config BSP_USING_TIM10 bool "Using TIM10" default n @@ -561,11 +561,11 @@ menu "On-chip Peripheral Drivers" config BSP_USING_TIM10_PWM_CH4 bool "Using TIM10 channel 4" endif - + endif - + endif - + endmenu menu "Onboard Peripheral Drivers" diff --git a/bsp/x86/Kconfig b/bsp/x86/Kconfig index e8ac6055e5..b8258393ad 100644 --- a/bsp/x86/Kconfig +++ b/bsp/x86/Kconfig @@ -19,7 +19,7 @@ source "$RTT_DIR/Kconfig" source "$PKGS_DIR/Kconfig" config IA32 - bool + bool select ARCH_IA32 select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN diff --git a/bsp/x86/SConstruct b/bsp/x86/SConstruct index 9705c3e75b..48d7e21e44 100644 --- a/bsp/x86/SConstruct +++ b/bsp/x86/SConstruct @@ -14,10 +14,10 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) Export('RTT_ROOT') diff --git a/bsp/x86/drivers/SConscript b/bsp/x86/drivers/SConscript index 02046c4ba6..02b6001068 100644 --- a/bsp/x86/drivers/SConscript +++ b/bsp/x86/drivers/SConscript @@ -4,7 +4,7 @@ from building import * cwd = os.path.join(str(Dir('#')), 'drivers') -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd, cwd + '/include'] diff --git a/bsp/xplorer4330/Libraries/Device/SConscript b/bsp/xplorer4330/Libraries/Device/SConscript index 8084ff93ff..9380ad9409 100644 --- a/bsp/xplorer4330/Libraries/Device/SConscript +++ b/bsp/xplorer4330/Libraries/Device/SConscript @@ -10,21 +10,21 @@ NXP/LPC43xx/Source/Templates/system_LPC43xx.c CPPPATH = [cwd + '/NXP/LPC43xx/Include', cwd + '/../CMSIS/Include'] CPPDEFINES = [rtconfig.USE_CORE] CPPDEFINES += ['USE_SPIFI'] -# add for startup script +# add for startup script if rtconfig.USE_CORE =='CORE_M4': - if rtconfig.PLATFORM in ['gcc']: - src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx.s'] - elif rtconfig.PLATFORM in ['armcc', 'armclang']: - src += ['NXP/LPC43xx/Source/Templates/ARM/startup_LPC43xx.s'] - elif rtconfig.PLATFORM in ['iccarm']: - src += ['NXP/LPC43xx/Source/Templates/IAR/startup_LPC43xx.s'] + if rtconfig.PLATFORM in ['gcc']: + src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx.s'] + elif rtconfig.PLATFORM in ['armcc', 'armclang']: + src += ['NXP/LPC43xx/Source/Templates/ARM/startup_LPC43xx.s'] + elif rtconfig.PLATFORM in ['iccarm']: + src += ['NXP/LPC43xx/Source/Templates/IAR/startup_LPC43xx.s'] else: - if rtconfig.PLATFORM in ['gcc']: - src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx_M0.s'] - elif rtconfig.PLATFORM in ['armcc', 'armclang']: - src += ['NXP/LPC43xx/Source/Templates/ARM/startup_LPC43xx_M0.s'] - elif rtconfig.PLATFORM in ['iccarm']: - src += ['NXP/LPC43xx/Source/Templates/IAR/startup_LPC43xx_M0.s'] + if rtconfig.PLATFORM in ['gcc']: + src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx_M0.s'] + elif rtconfig.PLATFORM in ['armcc', 'armclang']: + src += ['NXP/LPC43xx/Source/Templates/ARM/startup_LPC43xx_M0.s'] + elif rtconfig.PLATFORM in ['iccarm']: + src += ['NXP/LPC43xx/Source/Templates/IAR/startup_LPC43xx_M0.s'] group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/xplorer4330/M0/SConstruct b/bsp/xplorer4330/M0/SConstruct index 18d6ff1d64..85aebf8065 100644 --- a/bsp/xplorer4330/M0/SConstruct +++ b/bsp/xplorer4330/M0/SConstruct @@ -26,5 +26,5 @@ Export('rtconfig') # prepare building environment objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False) -# do building +# do building DoBuilding(TARGET, objs) diff --git a/bsp/xplorer4330/M4/SConstruct b/bsp/xplorer4330/M4/SConstruct index 18d6ff1d64..85aebf8065 100644 --- a/bsp/xplorer4330/M4/SConstruct +++ b/bsp/xplorer4330/M4/SConstruct @@ -26,5 +26,5 @@ Export('rtconfig') # prepare building environment objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False) -# do building +# do building DoBuilding(TARGET, objs) diff --git a/bsp/xplorer4330/drivers/SConscript b/bsp/xplorer4330/drivers/SConscript index e5f4cd4945..58bca3ad7f 100644 --- a/bsp/xplorer4330/drivers/SConscript +++ b/bsp/xplorer4330/drivers/SConscript @@ -5,7 +5,7 @@ src = Glob('*.c') # remove no need file. if GetDepend('RT_USING_LWIP') == False: - SrcRemove(src, 'drv_emac.c') + SrcRemove(src, 'drv_emac.c') CPPPATH = [cwd] diff --git a/bsp/yichip/yc3121-pos/Libraries/SConscript b/bsp/yichip/yc3121-pos/Libraries/SConscript index 76e9f6ffab..41b06c57e7 100644 --- a/bsp/yichip/yc3121-pos/Libraries/SConscript +++ b/bsp/yichip/yc3121-pos/Libraries/SConscript @@ -1,7 +1,7 @@ from building import * import rtconfig cwd = GetCurrentDir() -src = Glob('sdk/*.c') +src = Glob('sdk/*.c') CPPPATH = [cwd + '/sdk', cwd + '/core', cwd] src += Glob('core/*.c') @@ -9,7 +9,7 @@ src += Glob('core/*.c') if rtconfig.PLATFORM in ['gcc']: src += ['startup/flash_start_gcc.s'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: - src += ['startup/startup.s', 'startup/flash_start.s'] + src += ['startup/startup.s', 'startup/flash_start.s'] elif rtconfig.PLATFORM in ['iccarm']: src += ['startup/flash_start_iar.s'] group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH) diff --git a/bsp/yichip/yc3121-pos/SConstruct b/bsp/yichip/yc3121-pos/SConstruct index bdbfaf94b3..615a67aadc 100644 --- a/bsp/yichip/yc3121-pos/SConstruct +++ b/bsp/yichip/yc3121-pos/SConstruct @@ -19,10 +19,10 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT DefaultEnvironment(tools=[]) env = Environment(tools = ['mingw'], - AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, - CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, - AR = rtconfig.AR, ARFLAGS = '-rc', - LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) + AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, + CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, + AR = rtconfig.AR, ARFLAGS = '-rc', + LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) env.PrependENVPath('PATH', rtconfig.EXEC_PATH) if rtconfig.PLATFORM in ['iccarm']: diff --git a/bsp/yichip/yc3121-pos/drivers/Kconfig b/bsp/yichip/yc3121-pos/drivers/Kconfig index e0c1ca9902..1b8228fde4 100644 --- a/bsp/yichip/yc3121-pos/drivers/Kconfig +++ b/bsp/yichip/yc3121-pos/drivers/Kconfig @@ -10,7 +10,7 @@ menu "Hardware Drivers Config" config BSP_USING_UART0 bool "Enable UART0 PA2/3(R/T)" select RT_USING_SERIAL - default y + default y config BSP_USING_UART1 bool "Enable UART1 PC2/3(R/T)" @@ -18,5 +18,5 @@ menu "Hardware Drivers Config" default n endmenu endmenu - + endmenu diff --git a/bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/emacps_v3_11/SConscript b/bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/emacps_v3_11/SConscript index 8e5fc7069e..46d7c9f9c0 100644 --- a/bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/emacps_v3_11/SConscript +++ b/bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/emacps_v3_11/SConscript @@ -12,4 +12,4 @@ path = cwd group = DefineGroup('ZYNQMP_HAL', src, depend = [''], CPPPATH = CPPPATH) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/gpiops_v3_7/SConscript b/bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/gpiops_v3_7/SConscript index 8e5fc7069e..46d7c9f9c0 100644 --- a/bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/gpiops_v3_7/SConscript +++ b/bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/gpiops_v3_7/SConscript @@ -12,4 +12,4 @@ path = cwd group = DefineGroup('ZYNQMP_HAL', src, depend = [''], CPPPATH = CPPPATH) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/sdps_v3_9/SConscript b/bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/sdps_v3_9/SConscript index 8e5fc7069e..46d7c9f9c0 100644 --- a/bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/sdps_v3_9/SConscript +++ b/bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/sdps_v3_9/SConscript @@ -12,4 +12,4 @@ path = cwd group = DefineGroup('ZYNQMP_HAL', src, depend = [''], CPPPATH = CPPPATH) -Return('group') \ No newline at end of file +Return('group') diff --git a/bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/xemacpsif/SConscript b/bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/xemacpsif/SConscript index 8e5fc7069e..46d7c9f9c0 100644 --- a/bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/xemacpsif/SConscript +++ b/bsp/zynqmp-r5-axu4ev/drivers/Zynq_HAL_Driver/xemacpsif/SConscript @@ -12,4 +12,4 @@ path = cwd group = DefineGroup('ZYNQMP_HAL', src, depend = [''], CPPPATH = CPPPATH) -Return('group') \ No newline at end of file +Return('group') diff --git a/components/Kconfig b/components/Kconfig index 7f24e7c453..1bd2d43e58 100644 --- a/components/Kconfig +++ b/components/Kconfig @@ -1,13 +1,13 @@ menu "RT-Thread Components" config RT_USING_COMPONENTS_INIT - bool + bool default n - + config RT_USING_USER_MAIN - bool + bool default n - + if RT_USING_USER_MAIN config RT_MAIN_THREAD_STACK_SIZE int "Set main thread stack size" @@ -15,7 +15,7 @@ config RT_USING_USER_MAIN default 2048 config RT_MAIN_THREAD_PRIORITY - int "Set main thread priority" + int "Set main thread priority" default 4 if RT_THREAD_PRIORITY_8 default 10 if RT_THREAD_PRIORITY_32 default 85 if RT_THREAD_PRIORITY_256 diff --git a/components/drivers/Kconfig b/components/drivers/Kconfig index 52d735c941..9c79847e23 100755 --- a/components/drivers/Kconfig +++ b/components/drivers/Kconfig @@ -225,9 +225,9 @@ config RT_USING_FDT config FDT_USING_DEBUG bool "Using fdt debug function " default n - + endif - + config RT_USING_RTC bool "Using RTC device drivers" default n @@ -310,7 +310,7 @@ config RT_USING_SPI config RT_SFUD_USING_FLASH_INFO_TABLE bool "Using defined supported flash chip information table" default y - + config RT_SFUD_USING_QSPI bool "Using QSPI mode support" select RT_USING_QSPI @@ -346,7 +346,7 @@ config RT_USING_WDT config RT_USING_AUDIO bool "Using Audio device drivers" default n - + if RT_USING_AUDIO config RT_AUDIO_REPLAY_MP_BLOCK_SIZE int "Replay memory pool block size" diff --git a/components/drivers/fdt/examples/SConscript b/components/drivers/fdt/examples/SConscript index 30867a1de3..463c4814cc 100644 --- a/components/drivers/fdt/examples/SConscript +++ b/components/drivers/fdt/examples/SConscript @@ -7,4 +7,4 @@ CPPPATH = [cwd] group = DefineGroup('FDT', src, depend = ['FDT_USING_DEBUG'], CPPPATH = CPPPATH) -Return('group') \ No newline at end of file +Return('group') diff --git a/components/drivers/fdt/libfdt/SConscript b/components/drivers/fdt/libfdt/SConscript index 638a457bfe..9efdd16c0a 100644 --- a/components/drivers/fdt/libfdt/SConscript +++ b/components/drivers/fdt/libfdt/SConscript @@ -7,4 +7,4 @@ CPPPATH = [cwd] group = DefineGroup('FDT', src, depend = ['RT_USING_FDTLIB'], CPPPATH = CPPPATH) -Return('group') \ No newline at end of file +Return('group') diff --git a/components/drivers/fdt/src/SConscript b/components/drivers/fdt/src/SConscript index 74ae118929..23f4af644e 100644 --- a/components/drivers/fdt/src/SConscript +++ b/components/drivers/fdt/src/SConscript @@ -14,4 +14,4 @@ for d in list: objs = objs + SConscript(os.path.join(d, 'SConscript')) objs = objs + group -Return('objs') \ No newline at end of file +Return('objs') diff --git a/components/drivers/ipc/SConscript b/components/drivers/ipc/SConscript index 9f921ec509..fad4f5fb72 100644 --- a/components/drivers/ipc/SConscript +++ b/components/drivers/ipc/SConscript @@ -1,7 +1,7 @@ from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd + '/../include'] if not GetDepend('RT_USING_HEAP'): diff --git a/components/drivers/misc/SConscript b/components/drivers/misc/SConscript index b0d0354cf4..f9fd17689e 100644 --- a/components/drivers/misc/SConscript +++ b/components/drivers/misc/SConscript @@ -1,22 +1,22 @@ from building import * cwd = GetCurrentDir() -src = [] +src = [] CPPPATH = [cwd + '/../include'] group = [] if GetDepend(['RT_USING_PIN']): src = src + ['pin.c'] - + if GetDepend(['RT_USING_ADC']): src = src + ['adc.c'] - + if GetDepend(['RT_USING_DAC']): src = src + ['dac.c'] if GetDepend(['RT_USING_PWM']): src = src + ['rt_drv_pwm.c'] - + if GetDepend(['RT_USING_PULSE_ENCODER']): src = src + ['pulse_encoder.c'] diff --git a/components/drivers/phy/SConscript b/components/drivers/phy/SConscript index ec12ed24c2..5b6effc98a 100644 --- a/components/drivers/phy/SConscript +++ b/components/drivers/phy/SConscript @@ -1,7 +1,7 @@ from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd + '/../include'] group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_PHY'], CPPPATH = CPPPATH) diff --git a/components/drivers/rtc/SConscript b/components/drivers/rtc/SConscript index 6ec8bcb3c5..fe0d5e9db3 100644 --- a/components/drivers/rtc/SConscript +++ b/components/drivers/rtc/SConscript @@ -1,18 +1,18 @@ from building import * cwd = GetCurrentDir() -src = [] +src = [] CPPPATH = [cwd + '/../include'] group = [] if GetDepend(['RT_USING_RTC']): src = src + ['rtc.c'] - if GetDepend(['RT_USING_ALARM']): + if GetDepend(['RT_USING_ALARM']): src = src + ['alarm.c'] - if GetDepend(['RT_USING_SOFT_RTC']): + if GetDepend(['RT_USING_SOFT_RTC']): src = src + ['soft_rtc.c'] group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_RTC'], CPPPATH = CPPPATH) -Return('group') \ No newline at end of file +Return('group') diff --git a/components/drivers/sensor/SConscript b/components/drivers/sensor/SConscript index afafc6d2ce..c25e2fe4b0 100644 --- a/components/drivers/sensor/SConscript +++ b/components/drivers/sensor/SConscript @@ -1,4 +1,4 @@ -# SConscript for sensor framework +# SConscript for sensor framework from building import * diff --git a/components/drivers/touch/SConscript b/components/drivers/touch/SConscript index 6c2a126c9c..df698c7840 100644 --- a/components/drivers/touch/SConscript +++ b/components/drivers/touch/SConscript @@ -1,4 +1,4 @@ -# SConscript for touch framework +# SConscript for touch framework from building import * diff --git a/components/drivers/usb/SConscript b/components/drivers/usb/SConscript index ca80405a76..3e148cefe2 100644 --- a/components/drivers/usb/SConscript +++ b/components/drivers/usb/SConscript @@ -3,8 +3,8 @@ import os from building import * cwd = GetCurrentDir() -objs = [] -list = os.listdir(cwd) +objs = [] +list = os.listdir(cwd) for d in list: path = os.path.join(cwd, d) diff --git a/components/drivers/usb/usbdevice/SConscript b/components/drivers/usb/usbdevice/SConscript index b6dfa8da10..3cc5bf6d43 100644 --- a/components/drivers/usb/usbdevice/SConscript +++ b/components/drivers/usb/usbdevice/SConscript @@ -8,28 +8,28 @@ core/usbdevice.c """) if GetDepend('RT_USB_DEVICE_CDC'): - src += Glob('class/cdc_vcom.c') - + src += Glob('class/cdc_vcom.c') + if GetDepend('RT_USB_DEVICE_HID'): src += Glob('class/hid.c') if GetDepend('RT_USB_DEVICE_MSTORAGE'): - src += Glob('class/mstorage.c') + src += Glob('class/mstorage.c') if GetDepend('RT_USB_DEVICE_ECM'): - src += Glob('class/ecm.c') + src += Glob('class/ecm.c') if GetDepend('RT_USB_DEVICE_RNDIS'): - src += Glob('class/rndis.c') + src += Glob('class/rndis.c') if GetDepend('RT_USB_DEVICE_WINUSB'): - src += Glob('class/winusb.c') - + src += Glob('class/winusb.c') + if GetDepend('RT_USB_DEVICE_AUDIO_MIC'): - src += Glob('class/audio_mic.c') + src += Glob('class/audio_mic.c') if GetDepend('RT_USB_DEVICE_AUDIO_SPEAKER'): - src += Glob('class/audio_speaker.c') + src += Glob('class/audio_speaker.c') CPPPATH = [cwd] diff --git a/components/drivers/usb/usbhost/SConscript b/components/drivers/usb/usbhost/SConscript index 081c732819..aa5385d52a 100644 --- a/components/drivers/usb/usbhost/SConscript +++ b/components/drivers/usb/usbhost/SConscript @@ -10,24 +10,24 @@ core/hub.c """) if GetDepend('RT_USBH_ADK'): - src += Glob('class/adk.c') - src += Glob('class/adkapp.c') + src += Glob('class/adk.c') + src += Glob('class/adkapp.c') if GetDepend('RT_USBH_MSTORAGE'): - src += Glob('class/mass.c') - src += Glob('class/udisk.c') + src += Glob('class/mass.c') + src += Glob('class/udisk.c') if GetDepend('RT_USBH_HID'): - src += Glob('class/hid.c') + src += Glob('class/hid.c') if GetDepend('RT_USBH_HID_MOUSE'): - src += Glob('class/umouse.c') + src += Glob('class/umouse.c') if GetDepend('RT_USBH_HID_KEYBOARD'): - src += Glob('class/ukbd.c') + src += Glob('class/ukbd.c') CPPPATH = [cwd, cwd + '/class', cwd + '/core', \ - cwd + '/include', cwd + '../../../include'] + cwd + '/include', cwd + '../../../include'] group = DefineGroup('rt_usbh', src, depend = ['RT_USING_USB_HOST'], CPPPATH = CPPPATH) diff --git a/components/drivers/virtio/SConscript b/components/drivers/virtio/SConscript index a7af6a017e..d38ec0e356 100644 --- a/components/drivers/virtio/SConscript +++ b/components/drivers/virtio/SConscript @@ -3,7 +3,7 @@ from building import * cwd = GetCurrentDir() -src = Glob('*.c') +src = Glob('*.c') CPPPATH = [cwd] group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_VIRTIO'], CPPPATH = CPPPATH) diff --git a/components/libc/cplusplus/SConscript b/components/libc/cplusplus/SConscript index 1c764ea3e3..760049c139 100644 --- a/components/libc/cplusplus/SConscript +++ b/components/libc/cplusplus/SConscript @@ -18,4 +18,4 @@ if GetDepend('RT_USING_CPLUSPLUS11'): group = DefineGroup('CPlusPlus', src, depend = ['RT_USING_CPLUSPLUS'], CPPPATH = CPPPATH) -Return('group') \ No newline at end of file +Return('group') diff --git a/components/libc/posix/signal/SConscript b/components/libc/posix/signal/SConscript index 9c712fa694..eb0b103baf 100644 --- a/components/libc/posix/signal/SConscript +++ b/components/libc/posix/signal/SConscript @@ -6,8 +6,8 @@ cwd = GetCurrentDir() src = Glob('*.c') + Glob('*.cpp') CPPPATH = [cwd] -group = DefineGroup('POSIX', src, - depend = ['RT_USING_SIGNALS', 'RT_USING_PTHREADS'], +group = DefineGroup('POSIX', src, + depend = ['RT_USING_SIGNALS', 'RT_USING_PTHREADS'], CPPPATH = CPPPATH) Return('group') diff --git a/components/lwp/Kconfig b/components/lwp/Kconfig index 96e761b06b..b0c10ef722 100644 --- a/components/lwp/Kconfig +++ b/components/lwp/Kconfig @@ -56,11 +56,11 @@ if RT_USING_LWP int "The unix98 PTY input buffer size" default 1024 - config LWP_PTY_PTS_SIZE + config LWP_PTY_PTS_SIZE int "The unix98 PTY device max num" default 3 - config LWP_PTY_USING_DEBUG + config LWP_PTY_USING_DEBUG bool "The unix98 PTY debug output" default n endif diff --git a/components/lwp/SConscript b/components/lwp/SConscript index 76a5567d78..3c43dcd86e 100644 --- a/components/lwp/SConscript +++ b/components/lwp/SConscript @@ -24,7 +24,7 @@ if arch == 'risc-v': if GetDepend('LWP_UNIX98_PTY'): # print("LWP_UNIX98_PTY") - src += Glob('unix98pty/*.c') + src += Glob('unix98pty/*.c') CPPPATH += ['unix98pty/'] if platform in platform_file.keys(): # support platforms diff --git a/components/mm/SConscript b/components/mm/SConscript index d6f78ee06f..aee18c27c8 100644 --- a/components/mm/SConscript +++ b/components/mm/SConscript @@ -5,7 +5,7 @@ objs = [] if GetDepend('ARCH_MM_MMU'): cwd = GetCurrentDir() - src = Glob('*.c') + Glob('*_gcc.S') + src = Glob('*.c') + Glob('*_gcc.S') CPPPATH = [cwd] group = DefineGroup('mm', src, depend = [''], CPPPATH = CPPPATH) diff --git a/components/utilities/rt-link/Kconfig b/components/utilities/rt-link/Kconfig index d20c2f01d4..29ef4be81f 100644 --- a/components/utilities/rt-link/Kconfig +++ b/components/utilities/rt-link/Kconfig @@ -7,7 +7,7 @@ if RT_USING_RT_LINK choice prompt"use hw crc device or not" default RT_LINK_USING_SF_CRC - + config RT_LINK_USING_SF_CRC bool "use software crc table" config RT_LINK_USING_HW_CRC diff --git a/components/utilities/ymodem/SConscript b/components/utilities/ymodem/SConscript index d75539fe2c..2b3f14f0c9 100644 --- a/components/utilities/ymodem/SConscript +++ b/components/utilities/ymodem/SConscript @@ -4,7 +4,7 @@ cwd = GetCurrentDir() src = Split(''' ymodem.c ''') - + CPPPATH = [cwd] if GetDepend('YMODEM_USING_FILE_TRANSFER'): diff --git a/examples/utest/testcases/kernel/SConscript b/examples/utest/testcases/kernel/SConscript index 8e7cf42cd8..1cedc291c4 100644 --- a/examples/utest/testcases/kernel/SConscript +++ b/examples/utest/testcases/kernel/SConscript @@ -16,7 +16,7 @@ if GetDepend(['UTEST_SLAB_TC']): if GetDepend(['UTEST_IRQ_TC']): src += ['irq_tc.c'] - + if GetDepend(['UTEST_SEMAPHORE_TC']): src += ['semaphore_tc.c'] diff --git a/libcpu/risc-v/ch32/SConscript b/libcpu/risc-v/ch32/SConscript index cb5f8dd366..4d5d401c91 100644 --- a/libcpu/risc-v/ch32/SConscript +++ b/libcpu/risc-v/ch32/SConscript @@ -7,7 +7,7 @@ Import('rtconfig') cwd = GetCurrentDir() src = Glob('*.c') + Glob('*.cpp') CPPPATH = [cwd] -ASFLAGS = ' -I ' + cwd +ASFLAGS = ' -I ' + cwd if rtconfig.PLATFORM == 'gcc': src += Glob('*_gcc.S') diff --git a/libcpu/risc-v/common/SConscript b/libcpu/risc-v/common/SConscript index dfaf0be574..ccd26ae518 100644 --- a/libcpu/risc-v/common/SConscript +++ b/libcpu/risc-v/common/SConscript @@ -5,7 +5,7 @@ from building import * cwd = GetCurrentDir() src = Glob('*.c') + Glob('*.cpp') + Glob('*_gcc.S') CPPPATH = [cwd] -ASFLAGS = ' -I ' + cwd +ASFLAGS = ' -I ' + cwd group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH, ASFLAGS = ASFLAGS) diff --git a/tools/kconfig-frontends/SConstruct b/tools/kconfig-frontends/SConstruct index 945fde9f69..f872887c4e 100644 --- a/tools/kconfig-frontends/SConstruct +++ b/tools/kconfig-frontends/SConstruct @@ -3,9 +3,9 @@ import os env = Environment() env.AppendENVPath('PATH', os.environ['PATH']) env['CPPPATH'] = ['libs/parser', 'libs'] -env['CPPDEFINES'] = ['CURSES_LOC=\\"ncurses.h\\"', 'HAVE_CONFIG_H', - 'ROOTMENU=\\"Configuration\\"', - 'CONFIG_=\\"CONFIG_\\"', +env['CPPDEFINES'] = ['CURSES_LOC=\\"ncurses.h\\"', 'HAVE_CONFIG_H', + 'ROOTMENU=\\"Configuration\\"', + 'CONFIG_=\\"CONFIG_\\"', 'KBUILD_NO_NLS', 'GPERF_LEN_TYPE=unsigned int'] env['LIBS'] = ['ncurses']