format Kconfig and sconscript

This commit is contained in:
Meco Man 2023-01-08 21:14:23 -05:00 committed by Man, Jianting (Meco)
parent f4b285dc9c
commit 9bc68d26a4
885 changed files with 3941 additions and 3919 deletions

View File

@ -10,7 +10,7 @@ src = Split("""
CME_M7/system_cmem7.c CME_M7/system_cmem7.c
""") """)
# add for startup script # add for startup script
if rtconfig.PLATFORM in ['gcc']: if rtconfig.PLATFORM in ['gcc']:
src += ['CME_M7/startup/gcc/startup_CME_M7.c'] src += ['CME_M7/startup/gcc/startup_CME_M7.c']
elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['armcc', 'armclang']:

View File

@ -22,7 +22,7 @@ source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
config SOC_CME_M7 config SOC_CME_M7
bool bool
select ARCH_ARM_CORTEX_M3 select ARCH_ARM_CORTEX_M3
select RT_USING_COMPONENTS_INIT select RT_USING_COMPONENTS_INIT
default y default y

View File

@ -10,16 +10,16 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT
DefaultEnvironment(tools=[]) DefaultEnvironment(tools=[])
env = Environment(tools = ['mingw'], env = Environment(tools = ['mingw'],
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS,
AR = rtconfig.AR, ARFLAGS = '-rc', AR = rtconfig.AR, ARFLAGS = '-rc',
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if rtconfig.PLATFORM in ['iccarm']: if rtconfig.PLATFORM in ['iccarm']:
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
env.Replace(ARFLAGS = ['']) env.Replace(ARFLAGS = [''])
env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map'])
Export('RTT_ROOT') Export('RTT_ROOT')
Export('rtconfig') Export('rtconfig')

View File

@ -4,10 +4,10 @@ from building import *
cwd = os.path.join(str(Dir('#')), 'drivers') cwd = os.path.join(str(Dir('#')), 'drivers')
src = ['board.c'] src = ['board.c']
# add uart driver. # add uart driver.
src += ['uart.c'] src += ['uart.c']
# add EMAC driver for Lwip. # add EMAC driver for Lwip.
if GetDepend('RT_USING_LWIP') == True: if GetDepend('RT_USING_LWIP') == True:

View File

@ -1,6 +1,6 @@
config SOC_ESPRESSIF config SOC_ESPRESSIF
bool bool
config SOC_ESP32_C3 config SOC_ESP32_C3
bool bool
@ -24,7 +24,7 @@ choice
bool "LUATOS ESP32C3 board" bool "LUATOS ESP32C3 board"
config BSP_BOARD_HX_EXP32C3 config BSP_BOARD_HX_EXP32C3
bool "HONGXU ESP32C3 board" bool "HONGXU ESP32C3 board"
endchoice endchoice
menu "Onboard Peripheral Drivers" menu "Onboard Peripheral Drivers"
@ -57,9 +57,9 @@ menu "On-chip Peripheral Drivers"
bool "Enable GPIO" bool "Enable GPIO"
select RT_USING_PIN select RT_USING_PIN
default y default y
config BSP_USING_UART config BSP_USING_UART
bool "Enable UART" bool "Enable UART"
select RT_USING_SERIAL select RT_USING_SERIAL
select RT_USING_SERIAL_V1 select RT_USING_SERIAL_V1
default y default y

View File

@ -2,7 +2,7 @@ import os
from building import * from building import *
cwd = GetCurrentDir() cwd = GetCurrentDir()
src = Glob('*.c') src = Glob('*.c')
CPPPATH = [cwd] CPPPATH = [cwd]

View File

@ -2,7 +2,7 @@ import os
from building import * from building import *
cwd = GetCurrentDir() cwd = GetCurrentDir()
src = Glob('*.c') src = Glob('*.c')
CPPPATH = [] CPPPATH = []

View File

@ -49,12 +49,12 @@ if GetDepend('BSP_USING_ON_CHIP_FLASH'):
if GetDepend(['RT_USING_WDT']): if GetDepend(['RT_USING_WDT']):
src += ['drv_wdt.c'] src += ['drv_wdt.c']
if GetDepend(['RT_USING_DAC']): if GetDepend(['RT_USING_DAC']):
src += ['drv_dac.c'] src += ['drv_dac.c']
if GetDepend(['BSP_USING_TIM']): if GetDepend(['BSP_USING_TIM']):
src += ['drv_hwtimer.c'] src += ['drv_hwtimer.c']
path = [cwd] path = [cwd]
path += [cwd + '/config'] path += [cwd + '/config']

View File

@ -19,7 +19,7 @@ src = Split('''
mtb-hal-cat1/source/cyhal_utils_psoc.c mtb-hal-cat1/source/cyhal_utils_psoc.c
mtb-hal-cat1/source/cyhal_utils.c mtb-hal-cat1/source/cyhal_utils.c
mtb-hal-cat1/source/cyhal_lptimer.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/triggers/cyhal_triggers_psoc6_02.c
mtb-hal-cat1/COMPONENT_CAT1A/source/pin_packages/cyhal_psoc6_02_124_bga.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 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_sema.c
mtb-pdl-cat1/drivers/source/cy_ipc_drv.c mtb-pdl-cat1/drivers/source/cy_ipc_drv.c
mtb-pdl-cat1/drivers/source/cy_trigmux.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/cybsp.c
TARGET_CY8CKIT-062S2-43012/COMPONENT_CM4/system_psoc6_cm4.c TARGET_CY8CKIT-062S2-43012/COMPONENT_CM4/system_psoc6_cm4.c
TARGET_CY8CKIT-062S2-43012/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg.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_system.c
TARGET_CY8CKIT-062S2-43012/COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_clocks.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_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 lib/cy_capsense.lib
''') ''')
@ -130,10 +130,10 @@ if GetDepend(['RT_USING_WDT']):
src += ['mtb-hal-cat1/source/cyhal_wdt.c'] src += ['mtb-hal-cat1/source/cyhal_wdt.c']
if GetDepend(['RT_USING_DAC']): if GetDepend(['RT_USING_DAC']):
src += ['mtb_shared/csdidac/cy_csdidac.c'] src += ['mtb_shared/csdidac/cy_csdidac.c']
if GetDepend(['RT_USING_HWTIMER']): if GetDepend(['RT_USING_HWTIMER']):
src += ['mtb-hal-cat1/source/cyhal_timer.c'] src += ['mtb-hal-cat1/source/cyhal_timer.c']
path = [cwd + '/capsense', path = [cwd + '/capsense',
cwd + '/psoc6cm0p', cwd + '/psoc6cm0p',

View File

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

View File

@ -13,4 +13,4 @@ for item in list:
if os.path.isfile(os.path.join(cwd, item, 'SConscript')): if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
group = group + SConscript(os.path.join(item, 'SConscript')) group = group + SConscript(os.path.join(item, 'SConscript'))
Return('group') Return('group')

View File

@ -45,7 +45,7 @@ menu "On-chip Peripheral Drivers"
default n default n
config BSP_USING_UART5 config BSP_USING_UART5
bool "Enable UART5" bool "Enable UART5"
default y default y
endif endif
menuconfig BSP_USING_PWM menuconfig BSP_USING_PWM
@ -112,7 +112,7 @@ menu "On-chip Peripheral Drivers"
if BSP_USING_SPI3 if BSP_USING_SPI3
config BSP_USING_SPI3_SAMPLE config BSP_USING_SPI3_SAMPLE
bool "Enable SPI3 BUS Sample" bool "Enable SPI3 BUS Sample"
default n default n
endif endif
endif endif
@ -178,7 +178,7 @@ menu "On-chip Peripheral Drivers"
int "i2c6 SDA pin number" int "i2c6 SDA pin number"
range 1 113 range 1 113
default 105 default 105
endif endif
endif endif
menuconfig BSP_USING_I2C menuconfig BSP_USING_I2C
@ -234,7 +234,7 @@ menu "On-chip Peripheral Drivers"
bool "Enable Watchdog Timer" bool "Enable Watchdog Timer"
select RT_USING_WDT select RT_USING_WDT
default n default n
menuconfig BSP_USING_DAC menuconfig BSP_USING_DAC
bool "Enable DAC" bool "Enable DAC"
default n default n
@ -278,7 +278,7 @@ menu "Board extended module Drivers"
select PKG_USING_RW007 select PKG_USING_RW007
select BSP_USING_SPI select BSP_USING_SPI
select RW007_NOT_USE_EXAMPLE_DRIVERS select RW007_NOT_USE_EXAMPLE_DRIVERS
if BSP_USING_RW007 if BSP_USING_RW007
comment "Notice: P5_7 --> 47; P6_2 -->50; P6_5 --> 53; P12_0 --> 96" comment "Notice: P5_7 --> 47; P6_2 -->50; P6_5 --> 53; P12_0 --> 96"
config IFX_RW007_SPI_BUS_NAME config IFX_RW007_SPI_BUS_NAME

View File

@ -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'] 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) group = DefineGroup('Drivers', src, depend=[''], CPPPATH=path, CPPDEFINES=CPPDEFINES)
Return('group') Return('group')

View File

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

View File

@ -13,4 +13,4 @@ for item in list:
if os.path.isfile(os.path.join(cwd, item, 'SConscript')): if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
group = group + SConscript(os.path.join(item, 'SConscript')) group = group + SConscript(os.path.join(item, 'SConscript'))
Return('group') Return('group')

View File

@ -45,7 +45,7 @@ menu "On-chip Peripheral Drivers"
default n default n
config BSP_USING_UART5 config BSP_USING_UART5
bool "Enable UART5" bool "Enable UART5"
default y default y
endif endif
menuconfig BSP_USING_PWM menuconfig BSP_USING_PWM
@ -112,7 +112,7 @@ menu "On-chip Peripheral Drivers"
if BSP_USING_SPI3 if BSP_USING_SPI3
config BSP_USING_SPI3_SAMPLE config BSP_USING_SPI3_SAMPLE
bool "Enable SPI3 BUS Sample" bool "Enable SPI3 BUS Sample"
default n default n
endif endif
endif endif
@ -178,7 +178,7 @@ menu "On-chip Peripheral Drivers"
int "i2c6 SDA pin number" int "i2c6 SDA pin number"
range 1 113 range 1 113
default 105 default 105
endif endif
endif endif
menuconfig BSP_USING_I2C menuconfig BSP_USING_I2C
@ -234,7 +234,7 @@ menu "On-chip Peripheral Drivers"
bool "Enable Watchdog Timer" bool "Enable Watchdog Timer"
select RT_USING_WDT select RT_USING_WDT
default n default n
menuconfig BSP_USING_DAC menuconfig BSP_USING_DAC
bool "Enable DAC" bool "Enable DAC"
default n default n
@ -278,7 +278,7 @@ menu "Board extended module Drivers"
select PKG_USING_RW007 select PKG_USING_RW007
select BSP_USING_SPI select BSP_USING_SPI
select RW007_NOT_USE_EXAMPLE_DRIVERS select RW007_NOT_USE_EXAMPLE_DRIVERS
if BSP_USING_RW007 if BSP_USING_RW007
comment "Notice: P5_7 --> 47; P6_2 -->50; P6_5 --> 53; P12_0 --> 96" comment "Notice: P5_7 --> 47; P6_2 -->50; P6_5 --> 53; P12_0 --> 96"
config IFX_RW007_SPI_BUS_NAME config IFX_RW007_SPI_BUS_NAME

View File

@ -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'] 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) group = DefineGroup('Drivers', src, depend=[''], CPPPATH=path, CPPDEFINES=CPPDEFINES)
Return('group') Return('group')

View File

@ -9,7 +9,7 @@ config RTT_DIR
string string
option env="RTT_ROOT" option env="RTT_ROOT"
default "../../.." default "../../.."
# you can change the RTT_ROOT default: "rt-thread" # you can change the RTT_ROOT default: "rt-thread"
# example : default "F:/git_repositories/rt-thread" # example : default "F:/git_repositories/rt-thread"

View File

@ -9,7 +9,7 @@ config RTT_DIR
string string
option env="RTT_ROOT" option env="RTT_ROOT"
default "../../.." default "../../.."
# you can change the RTT_ROOT default: "rt-thread" # you can change the RTT_ROOT default: "rt-thread"
# example : default "F:/git_repositories/rt-thread" # example : default "F:/git_repositories/rt-thread"

View File

@ -13,16 +13,16 @@ from building import *
TARGET = 'rtthread_acm32f4xx.' + rtconfig.TARGET_EXT TARGET = 'rtthread_acm32f4xx.' + rtconfig.TARGET_EXT
env = Environment(tools = ['mingw'], env = Environment(tools = ['mingw'],
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS,
AR = rtconfig.AR, ARFLAGS = '-rc', AR = rtconfig.AR, ARFLAGS = '-rc',
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if rtconfig.PLATFORM in ['iccarm']: if rtconfig.PLATFORM in ['iccarm']:
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
env.Replace(ARFLAGS = ['']) env.Replace(ARFLAGS = [''])
env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map'])
Export('RTT_ROOT') Export('RTT_ROOT')
Export('rtconfig') Export('rtconfig')

View File

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

View File

@ -35,9 +35,9 @@ menu "Onboard Peripheral Drivers"
config WIZ_SPI_BUS config WIZ_SPI_BUS
string "WIZ SPI bus name" string "WIZ SPI bus name"
default "spi2" default "spi2"
config WIZ_SPI_CS config WIZ_SPI_CS
int "WIZ SPI bus cs pin" int "WIZ SPI bus cs pin"
default 19 default 19
endif endif
endmenu endmenu
@ -129,7 +129,7 @@ menu "On-chip Peripheral Drivers"
if BSP_USING_I2C if BSP_USING_I2C
config I2C_BUS_NAME config I2C_BUS_NAME
string "HW I2C bus name" string "HW I2C bus name"
default "i2c" default "i2c"
endif endif
menuconfig BSP_USING_SPI menuconfig BSP_USING_SPI
@ -151,8 +151,8 @@ menu "On-chip Peripheral Drivers"
config BSP_USING_SPI2 config BSP_USING_SPI2
bool "Enable SPI2 BUS" bool "Enable SPI2 BUS"
default n default n
config BSP_USING_SPI0S config BSP_USING_SPI0S
bool "Enable SPI0S BUS" bool "Enable SPI0S BUS"
default n default n
@ -162,7 +162,7 @@ menu "On-chip Peripheral Drivers"
bool "Enable HW onchip rtc" bool "Enable HW onchip rtc"
select RT_USING_ONCHIP_RTC select RT_USING_ONCHIP_RTC
default n default n
config BSP_USING_WDT config BSP_USING_WDT
bool "Enable Watchdog Timer" bool "Enable Watchdog Timer"
select RT_USING_WDT select RT_USING_WDT

View File

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

View File

@ -82,8 +82,8 @@ menu "On-chip Peripheral Drivers"
config BSP_USING_SPI2 config BSP_USING_SPI2
bool "Enable SPI2 BUS" bool "Enable SPI2 BUS"
default n default n
config BSP_USING_SPI3 config BSP_USING_SPI3
bool "Enable SPI3 BUS" bool "Enable SPI3 BUS"
default n default n
@ -122,7 +122,7 @@ menu "On-chip Peripheral Drivers"
config BSP_USING_ON_CHIP_FLASH config BSP_USING_ON_CHIP_FLASH
bool "Enable on-chip FLASH" bool "Enable on-chip FLASH"
default n default n
config BSP_USING_WDT config BSP_USING_WDT
bool "Enable Watchdog Timer" bool "Enable Watchdog Timer"

View File

@ -1,7 +1,7 @@
from building import * from building import *
cwd = GetCurrentDir() cwd = GetCurrentDir()
src = Glob('*.c') + Glob('*.cpp') src = Glob('*.c') + Glob('*.cpp')
CPPPATH = [cwd] CPPPATH = [cwd]
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)

View File

@ -1,7 +1,7 @@
from building import * from building import *
cwd = GetCurrentDir() cwd = GetCurrentDir()
src = Glob('*.c') + Glob('*.cpp') src = Glob('*.c') + Glob('*.cpp')
CPPPATH = [cwd] CPPPATH = [cwd]
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH) group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)

View File

@ -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/g2d_rcq/Kconfig"
source "$BSP_DIR/../libraries/sunxi-hal/hal/source/usb/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/ce/Kconfig"
source "$BSP_DIR/../libraries/sunxi-hal/hal/source/efuse/Kconfig" source "$BSP_DIR/../libraries/sunxi-hal/hal/source/efuse/Kconfig"
endif endif

View File

@ -279,5 +279,5 @@ menu "Board extended module Drivers"
select BSP_USING_SPI select BSP_USING_SPI
select BSP_USING_SPI0 select BSP_USING_SPI0
endmenu endmenu
endmenu endmenu

View File

@ -6,22 +6,22 @@ config DRIVERS_CCMU
config DRIVERS_SUNXI_CLK config DRIVERS_SUNXI_CLK
bool "enable sunxi ccmu driver" bool "enable sunxi ccmu driver"
depends on DRIVERS_CCMU depends on DRIVERS_CCMU
default y default y
config DRIVERS_SUNXI_CCU config DRIVERS_SUNXI_CCU
bool "enable sunxi-ng ccmu driver" bool "enable sunxi-ng ccmu driver"
depends on DRIVERS_CCMU depends on DRIVERS_CCMU
default n default n
config HAL_TEST_CLK config HAL_TEST_CLK
bool "enable sunxi ccmu hal APIs test command" bool "enable sunxi ccmu hal APIs test command"
depends on DRIVERS_SUNXI_CLK depends on DRIVERS_SUNXI_CLK
default n default n
config HAL_TEST_CCU config HAL_TEST_CCU
bool "enable sunxi-ng ccmu hal APIs test command" bool "enable sunxi-ng ccmu hal APIs test command"
depends on DRIVERS_SUNXI_CCU depends on DRIVERS_SUNXI_CCU
default n default n
endmenu endmenu

View File

@ -6,7 +6,7 @@ config DRIVERS_CE
config HAL_TEST_CE config HAL_TEST_CE
bool "enable ce hal APIs test command" bool "enable ce hal APIs test command"
depends on DRIVERS_CE depends on DRIVERS_CE
default n default n

View File

@ -1,25 +1,25 @@
menu "CIR Devices" menu "CIR Devices"
config DRIVERS_CIR config DRIVERS_CIR
bool "enable CIR driver" bool "enable CIR driver"
default y default y
menu "CIR option features" menu "CIR option features"
config DRIVERS_CIR_DEBUG config DRIVERS_CIR_DEBUG
bool "support CIR debug" bool "support CIR debug"
select DRIVERS_CIR select DRIVERS_CIR
default n default n
config DRIVERS_CIR_TEST config DRIVERS_CIR_TEST
bool "CIR test case" bool "CIR test case"
select DRIVERS_CIR select DRIVERS_CIR
default n default n
config HAL_TEST_CIR config HAL_TEST_CIR
bool "CIR TEST CASE" bool "CIR TEST CASE"
depends on DRIVERS_CIR depends on DRIVERS_CIR
default n default n
endmenu endmenu

View File

@ -2,6 +2,6 @@ menu "Common Option"
config DRVIER_SYSCONFIG config DRVIER_SYSCONFIG
bool "enable sysconfig" bool "enable sysconfig"
default y default y
endmenu endmenu

View File

@ -5,61 +5,61 @@
menu "Video support for sunxi" menu "Video support for sunxi"
config DISP2_SUNXI config DISP2_SUNXI
tristate "DISP Driver Support(sunxi-disp2)" tristate "DISP Driver Support(sunxi-disp2)"
default n default n
---help--- ---help---
Display driver for sunxi based boards. Display driver for sunxi based boards.
choice choice
prompt "DISP2 Framebuffer rotation support" prompt "DISP2 Framebuffer rotation support"
default SUNXI_DISP2_FB_DISABLE_ROTATE default SUNXI_DISP2_FB_DISABLE_ROTATE
config SUNXI_DISP2_FB_DISABLE_ROTATE config SUNXI_DISP2_FB_DISABLE_ROTATE
bool "Disable rotation" bool "Disable rotation"
depends on (DISP2_SUNXI) depends on (DISP2_SUNXI)
---help--- ---help---
Do not use framebuffer rotation Do not use framebuffer rotation
config SUNXI_DISP2_FB_ROTATION_SUPPORT config SUNXI_DISP2_FB_ROTATION_SUPPORT
bool "Software rotation support" bool "Software rotation support"
depends on (DISP2_SUNXI) depends on (DISP2_SUNXI)
---help--- ---help---
Framebuffer software rotation on the top of disp2. Framebuffer software rotation on the top of disp2.
config SUNXI_DISP2_FB_HW_ROTATION_SUPPORT config SUNXI_DISP2_FB_HW_ROTATION_SUPPORT
bool "Hardware(G2D) rotation support" bool "Hardware(G2D) rotation support"
depends on (DISP2_SUNXI && SUNXI_G2D) depends on (DISP2_SUNXI && SUNXI_G2D)
---help--- ---help---
Framebuffer hardware(G2D) rotation on the top of disp2. Framebuffer hardware(G2D) rotation on the top of disp2.
endchoice endchoice
config HAL_TEST_DISP config HAL_TEST_DISP
bool "DISP2 hal APIs test" bool "DISP2 hal APIs test"
depends on (DISP2_SUNXI) depends on (DISP2_SUNXI)
default n default n
---help--- ---help---
Enable disp2 hal test command. Enable disp2 hal test command.
config FPGA_V7_PLATFORM config FPGA_V7_PLATFORM
bool "FPGA" bool "FPGA"
depends on (DISP2_SUNXI) depends on (DISP2_SUNXI)
default n default n
---help--- ---help---
Enable fpga Enable fpga
config SUNXI_DISP2_FB_DECOMPRESS_LZMA config SUNXI_DISP2_FB_DECOMPRESS_LZMA
bool "Framebuffer show bootlogo from lzma file" bool "Framebuffer show bootlogo from lzma file"
depends on (DISP2_SUNXI) depends on (DISP2_SUNXI)
default n default n
select DECOMPRESS_LZMA select DECOMPRESS_LZMA
---help--- ---help---
Show bootlogo from lzma file. Show bootlogo from lzma file.
config HDMI_DISP2_SUNXI config HDMI_DISP2_SUNXI
tristate "HDMI Driver Support(sunxi-disp2)" tristate "HDMI Driver Support(sunxi-disp2)"
depends on (DISP2_SUNXI) depends on (DISP2_SUNXI)
default n default n
---help--- ---help---
Hdmi driver for sunxi based boards. Hdmi driver for sunxi based boards.
menuconfig HDMI2_DISP2_SUNXI menuconfig HDMI2_DISP2_SUNXI
tristate "HDMI2.0 Driver Support(sunxi-disp2)" tristate "HDMI2.0 Driver Support(sunxi-disp2)"
@ -72,11 +72,11 @@ menuconfig HDMI2_DISP2_SUNXI
HDR,4k@60Hz. If unsure, say N. HDR,4k@60Hz. If unsure, say N.
config HDMI_EP952_DISP2_SUNXI config HDMI_EP952_DISP2_SUNXI
tristate "HDMI EP952 Driver Support(sunxi-disp2)" tristate "HDMI EP952 Driver Support(sunxi-disp2)"
depends on (DISP2_SUNXI) depends on (DISP2_SUNXI)
default n default n
---help--- ---help---
Hdmi ep952 driver for sunxi based boards. Hdmi ep952 driver for sunxi based boards.
menuconfig HDMI2_HDCP_SUNXI menuconfig HDMI2_HDCP_SUNXI
tristate "HDMI2.0 HDCP" tristate "HDMI2.0 HDCP"
depends on (HDMI2_DISP2_SUNXI) depends on (HDMI2_DISP2_SUNXI)
@ -114,28 +114,28 @@ config HDMI2_CEC_USER
If unsure, say N. If unsure, say N.
config TV_DISP2_SUNXI config TV_DISP2_SUNXI
tristate "TV Driver Support(sunxi-disp2)" tristate "TV Driver Support(sunxi-disp2)"
depends on (DISP2_SUNXI) depends on (DISP2_SUNXI)
default n default n
---help--- ---help---
TV driver for sunxi based boards. TV driver for sunxi based boards.
config VDPO_DISP2_SUNXI config VDPO_DISP2_SUNXI
tristate "VDPO Driver Support(sunxi-disp2)" tristate "VDPO Driver Support(sunxi-disp2)"
depends on (DISP2_SUNXI) depends on (DISP2_SUNXI)
default n default n
---help--- ---help---
VDPO driver for sunxi based boards. VDPO driver for sunxi based boards.
config DISP2_TV_GM7121 config DISP2_TV_GM7121
tristate "GM7121 TV module Support(sunxi-disp2)" tristate "GM7121 TV module Support(sunxi-disp2)"
depends on (DISP2_SUNXI && TV_DISP2_SUNXI) depends on (DISP2_SUNXI && TV_DISP2_SUNXI)
default n default n
---help--- ---help---
config EDP_DISP2_SUNXI config EDP_DISP2_SUNXI
tristate "EDP Driver Support(sunxi-disp2)" tristate "EDP Driver Support(sunxi-disp2)"
depends on (DISP2_SUNXI) depends on (DISP2_SUNXI)
default n default n
---help--- ---help---
EDP 1.2 driver for sunxi. Embedded Display Port is EDP 1.2 driver for sunxi. Embedded Display Port is
a high speed display interface for embedded device. a high speed display interface for embedded device.
DisplayPort can be used to transmit audio and video DisplayPort can be used to transmit audio and video
@ -143,46 +143,46 @@ config EDP_DISP2_SUNXI
transmitted without the other. transmitted without the other.
config DISP2_TV_AC200 config DISP2_TV_AC200
tristate "AC200 TV module Support(sunxi-disp2)" tristate "AC200 TV module Support(sunxi-disp2)"
depends on (DISP2_SUNXI && MFD_ACX00) depends on (DISP2_SUNXI && MFD_ACX00)
default n default n
---help--- ---help---
config EINK_PANEL_USED config EINK_PANEL_USED
bool "Eink panel used" bool "Eink panel used"
depends on (DISP2_SUNXI && (ARCH_SUN8IW10 || ARCH_SUN8IW15)) depends on (DISP2_SUNXI && (ARCH_SUN8IW10 || ARCH_SUN8IW15))
default n default n
---help--- ---help---
config EINK200_SUNXI config EINK200_SUNXI
bool "Eink Driver Version 2.0 Support" bool "Eink Driver Version 2.0 Support"
depends on (DISP2_SUNXI && ARCH_SUN50IW10) depends on (DISP2_SUNXI && ARCH_SUN50IW10)
default n default n
---help--- ---help---
config DISP2_SUNXI_BOOT_COLORBAR config DISP2_SUNXI_BOOT_COLORBAR
bool "boot colorbar Support for disp driver(sunxi-disp2)" bool "boot colorbar Support for disp driver(sunxi-disp2)"
depends on DISP2_SUNXI depends on DISP2_SUNXI
default n default n
---help--- ---help---
If true, the framebuffer will be filled by specified data If true, the framebuffer will be filled by specified data
to display vertical colorbar. to display vertical colorbar.
menu "LCD panels select" menu "LCD panels select"
depends on DISP2_SUNXI depends on DISP2_SUNXI
source "$BSP_DIR/../libraries/sunxi-hal/hal/source/disp2/disp/lcd/Kconfig" source "$BSP_DIR/../libraries/sunxi-hal/hal/source/disp2/disp/lcd/Kconfig"
endmenu endmenu
menu "Display engine feature select" menu "Display engine feature select"
depends on DISP2_SUNXI depends on DISP2_SUNXI
source "$BSP_DIR/../libraries/sunxi-hal/hal/source/disp2/disp/Kconfig" source "$BSP_DIR/../libraries/sunxi-hal/hal/source/disp2/disp/Kconfig"
endmenu endmenu
menu "Soc and board select" menu "Soc and board select"
depends on DISP2_SUNXI depends on DISP2_SUNXI
source "$BSP_DIR/../libraries/sunxi-hal/hal/source/disp2/soc/Kconfig" source "$BSP_DIR/../libraries/sunxi-hal/hal/source/disp2/soc/Kconfig"
endmenu endmenu

View File

@ -1,11 +1,11 @@
config DISP2_SUNXI_SUPPORT_SMBL config DISP2_SUNXI_SUPPORT_SMBL
bool "Support smart backlight" bool "Support smart backlight"
default n default n
---help--- ---help---
If you want to support smart backlight, select it. If you want to support smart backlight, select it.
config DISP2_SUNXI_SUPPORT_ENAHNCE config DISP2_SUNXI_SUPPORT_ENAHNCE
bool "Support Video Enhance Process" bool "Support Video Enhance Process"
default y default y
---help--- ---help---
If you want to support video enhance process, select it. If you want to support video enhance process, select it.

View File

@ -1,181 +1,181 @@
config LCD_SUPPORT_GG1P4062UTSW config LCD_SUPPORT_GG1P4062UTSW
bool "LCD support cpu_gg1p4062utsw panel" bool "LCD support cpu_gg1p4062utsw panel"
default n default n
---help--- ---help---
If you want to support cpu_gg1p4062utsw panel for display driver, select it. If you want to support cpu_gg1p4062utsw panel for display driver, select it.
config LCD_SUPPORT_DX0960BE40A1 config LCD_SUPPORT_DX0960BE40A1
bool "LCD support dx0960be40a1 panel" bool "LCD support dx0960be40a1 panel"
default n default n
---help--- ---help---
If you want to support dx0960be40a1 panel for display driver, select it. If you want to support dx0960be40a1 panel for display driver, select it.
config LCD_SUPPORT_TFT720X1280 config LCD_SUPPORT_TFT720X1280
bool "LCD support dx0960be40a1 panel" bool "LCD support dx0960be40a1 panel"
default n default n
---help--- ---help---
If you want to support dx0960be40a1 panel for display driver, select it. If you want to support dx0960be40a1 panel for display driver, select it.
config LCD_SUPPORT_FD055HD003S config LCD_SUPPORT_FD055HD003S
bool "LCD support fd055hd003s panel" bool "LCD support fd055hd003s panel"
default n default n
---help--- ---help---
If you want to support fd055hd003s panel for display driver, select it. If you want to support fd055hd003s panel for display driver, select it.
config LCD_SUPPORT_HE0801A068 config LCD_SUPPORT_HE0801A068
bool "LCD support he0801a068 panel" bool "LCD support he0801a068 panel"
default y default y
---help--- ---help---
If you want to support he0801a068 panel for display driver, select it. If you want to support he0801a068 panel for display driver, select it.
config LCD_SUPPORT_ILI9341 config LCD_SUPPORT_ILI9341
bool "LCD support ili9341 panel" bool "LCD support ili9341 panel"
default n default n
---help--- ---help---
If you want to support ili9341 panel for display driver, select it. If you want to support ili9341 panel for display driver, select it.
config LCD_SUPPORT_LH219WQ1 config LCD_SUPPORT_LH219WQ1
bool "LCD support LH219WQ1 panel" bool "LCD support LH219WQ1 panel"
default n default n
---help--- ---help---
If you want to support LH219WQ1 panel for display driver, select it. If you want to support LH219WQ1 panel for display driver, select it.
config LCD_SUPPORT_LS029B3SX02 config LCD_SUPPORT_LS029B3SX02
bool "LCD support ls029b3sx02 panel" bool "LCD support ls029b3sx02 panel"
default n default n
---help--- ---help---
If you want to support ls029b3sx02 panel for display driver, select it. If you want to support ls029b3sx02 panel for display driver, select it.
config LCD_SUPPORT_LT070ME05000 config LCD_SUPPORT_LT070ME05000
bool "LCD support lt070me05000 panel" bool "LCD support lt070me05000 panel"
default n default n
---help--- ---help---
If you want to support lt070me05000 panel for display driver, select it. If you want to support lt070me05000 panel for display driver, select it.
config LCD_SUPPORT_S6D7AA0X01 config LCD_SUPPORT_S6D7AA0X01
bool "LCD support S6D7AA0X01 panel" bool "LCD support S6D7AA0X01 panel"
default n default n
---help--- ---help---
If you want to support S6D7AA0X01 panel for display driver, select it. If you want to support S6D7AA0X01 panel for display driver, select it.
config LCD_SUPPORT_T27P06 config LCD_SUPPORT_T27P06
bool "LCD support t27p06 panel" bool "LCD support t27p06 panel"
default n default n
---help--- ---help---
If you want to support t27p06 panel for display driver, select it. If you want to support t27p06 panel for display driver, select it.
config LCD_SUPPORT_TFT720_1280 config LCD_SUPPORT_TFT720_1280
bool "LCD support tft720_1280 panel" bool "LCD support tft720_1280 panel"
default n default n
---help--- ---help---
If you want to support tft720_1280 panel for display driver, select it. If you want to support tft720_1280 panel for display driver, select it.
config LCD_SUPPORT_TFT08006 config LCD_SUPPORT_TFT08006
bool "LCD support tft08006 panel" bool "LCD support tft08006 panel"
default n default n
---help--- ---help---
If you want to support tft08006 panel for display driver, select it. If you want to support tft08006 panel for display driver, select it.
config LCD_SUPPORT_TFTRGB config LCD_SUPPORT_TFTRGB
bool "LCD support tft-RGB panel" bool "LCD support tft-RGB panel"
default n default n
---help--- ---help---
If you want to support tft-rgb panel for display driver, select it. If you want to support tft-rgb panel for display driver, select it.
config LCD_SUPPORT_WTQ05027D01 config LCD_SUPPORT_WTQ05027D01
bool "LCD support wtq05027d01 panel" bool "LCD support wtq05027d01 panel"
default n default n
---help--- ---help---
If you want to support wtq05027d01 panel for display driver, select it. If you want to support wtq05027d01 panel for display driver, select it.
config LCD_SUPPORT_H245QBN02 config LCD_SUPPORT_H245QBN02
bool "LCD support H245QBN02 panel" bool "LCD support H245QBN02 panel"
default n default n
---help--- ---help---
If you want to support H245QBN02 panel for display driver, select it. If you want to support H245QBN02 panel for display driver, select it.
config LCD_SUPPORT_ST7789V config LCD_SUPPORT_ST7789V
bool "LCD support ST7789V panel" bool "LCD support ST7789V panel"
default n default n
---help--- ---help---
If you want to support ST7789V panel for display driver, select it. If you want to support ST7789V panel for display driver, select it.
config LCD_SUPPORT_ST7796S config LCD_SUPPORT_ST7796S
bool "LCD support ST7796S panel" bool "LCD support ST7796S panel"
default n default n
---help--- ---help---
If you want to support ST7796S panel for display driver, select it. If you want to support ST7796S panel for display driver, select it.
config LCD_SUPPORT_ST7701S config LCD_SUPPORT_ST7701S
bool "LCD support ST7701S panel" bool "LCD support ST7701S panel"
default n default n
---help--- ---help---
If you want to support ST7701S panel for display driver, select it. If you want to support ST7701S panel for display driver, select it.
config LCD_SUPPORT_T30P106 config LCD_SUPPORT_T30P106
bool "LCD support T30P106 panel" bool "LCD support T30P106 panel"
default n default n
---help--- ---help---
If you want to support T30P106 panel for display driver, select it. If you want to support T30P106 panel for display driver, select it.
config LCD_SUPPORT_TO20T20000 config LCD_SUPPORT_TO20T20000
bool "LCD support TO20T20000 panel" bool "LCD support TO20T20000 panel"
default n default n
---help--- ---help---
If you want to support TO20T20000 panel for display driver, select it. If you want to support TO20T20000 panel for display driver, select it.
config LCD_SUPPORT_FRD450H40014 config LCD_SUPPORT_FRD450H40014
bool "LCD support FRD450H40014 panel" bool "LCD support FRD450H40014 panel"
default n default n
---help--- ---help---
If you want to support FRD450H40014 panel for display driver, select it. If you want to support FRD450H40014 panel for display driver, select it.
config LCD_SUPPORT_S2003T46G config LCD_SUPPORT_S2003T46G
bool "LCD support S2003T46G panel" bool "LCD support S2003T46G panel"
default n default n
---help--- ---help---
If you want to support S2003T46G panel for display driver, select it. If you want to support S2003T46G panel for display driver, select it.
config LCD_SUPPORT_WILLIAMLCD config LCD_SUPPORT_WILLIAMLCD
bool "LCD support WilliamLcd panel" bool "LCD support WilliamLcd panel"
default y default y
---help--- ---help---
If you want to support WilliamLcd panel for display driver, select it. If you want to support WilliamLcd panel for display driver, select it.
config LCD_SUPPORT_LQ101R1SX03 config LCD_SUPPORT_LQ101R1SX03
bool "LCD support lq101r1sx03 panel" bool "LCD support lq101r1sx03 panel"
default y default y
---help--- ---help---
If you want to support lq101r1sx03 panel for display driver, select it. If you want to support lq101r1sx03 panel for display driver, select it.
config LCD_SUPPORT_INET_DSI_PANEL config LCD_SUPPORT_INET_DSI_PANEL
bool "LCD support inet_dsi_panel panel" bool "LCD support inet_dsi_panel panel"
default y default y
---help--- ---help---
If you want to support inet_dsi_panel panel for display driver, select it. If you want to support inet_dsi_panel panel for display driver, select it.
config LCD_SUPPORT_WTL096601G03 config LCD_SUPPORT_WTL096601G03
bool "LCD support WTL096601G03 panel" bool "LCD support WTL096601G03 panel"
default n default n
---help--- ---help---
If you want to support WTL096601G03 panel for display driver, select it. If you want to support WTL096601G03 panel for display driver, select it.
config LCD_SUPPORT_RT13QV005D config LCD_SUPPORT_RT13QV005D
bool "LCD support rt13qv005d panel" bool "LCD support rt13qv005d panel"
default n default n
---help--- ---help---
If you want to support rt13qv005d panel for display driver, select it. If you want to support rt13qv005d panel for display driver, select it.
config LCD_SUPPORT_ST7789V_CPU config LCD_SUPPORT_ST7789V_CPU
bool "LCD support st7789v_cpu panel" bool "LCD support st7789v_cpu panel"
default n default n
---help--- ---help---
If you want to support st7789v_cpu panel for display driver, select it. If you want to support st7789v_cpu panel for display driver, select it.
config LCD_SUPPORT_VVX07H005A10 config LCD_SUPPORT_VVX07H005A10
bool "LCD support VVX07H005A10 panel" bool "LCD support VVX07H005A10 panel"
default n default n
---help--- ---help---
If you want to support VVX07H005A10 panel for display driver, select it. If you want to support VVX07H005A10 panel for display driver, select it.

View File

@ -3,59 +3,59 @@
menu "Board Select" menu "Board Select"
config V459_PERF1 config V459_PERF1
bool "board v459 perf1" bool "board v459 perf1"
default n default n
---help--- ---help---
board v459 perf1 board v459 perf1
config F133_FPGA config F133_FPGA
bool "board fpga f133" bool "board fpga f133"
default n default n
---help--- ---help---
board f133 fpga board f133 fpga
config VVX07H005A10_MIPI config VVX07H005A10_MIPI
bool "board, disp with VVX07H005A10_mipi" bool "board, disp with VVX07H005A10_mipi"
default n default n
---help--- ---help---
board, disp with VVX07H005A10_mipi board, disp with VVX07H005A10_mipi
config TFT08006_MIPI config TFT08006_MIPI
bool "board, disp with TFT08006_mipi" bool "board, disp with TFT08006_mipi"
default n default n
---help--- ---help---
board, disp with TFT08006_mipi board, disp with TFT08006_mipi
config TFT_RGB config TFT_RGB
bool "board, disp with TFT RGB" bool "board, disp with TFT RGB"
default n default n
---help--- ---help---
board, disp with TFT RGB board, disp with TFT RGB
config HE0801A068_MIPI config HE0801A068_MIPI
bool "EVB board, disp with HE0801A068_MIPI" bool "EVB board, disp with HE0801A068_MIPI"
default n default n
---help--- ---help---
EVB board, disp with HE0801A068_MIPI EVB board, disp with HE0801A068_MIPI
config DEFAULT_LVDS config DEFAULT_LVDS
bool "board, disp with lvds" bool "board, disp with lvds"
default n default n
---help--- ---help---
board, disp with lvds board, disp with lvds
endmenu endmenu
menu "Soc Select" menu "Soc Select"
config ARCH_SUN8IW19 config ARCH_SUN8IW19
bool "soc sun8iw19 " bool "soc sun8iw19 "
default n default n
---help--- ---help---
soc sun8iw19 soc sun8iw19
config ARCH_SUN20IW1 config ARCH_SUN20IW1
bool "soc sun20iw1 " bool "soc sun20iw1 "
default n default n
---help--- ---help---
soc sun20iw1 soc sun20iw1
endmenu endmenu

View File

@ -6,7 +6,7 @@ config DRIVERS_DMA
config HAL_TEST_DMA config HAL_TEST_DMA
bool "enable dma hal APIs test command" bool "enable dma hal APIs test command"
depends on DRIVERS_DMA depends on DRIVERS_DMA
default n default n
endmenu endmenu

View File

@ -6,7 +6,7 @@ config DRIVERS_EFUSE
config HAL_TEST_EFUSE config HAL_TEST_EFUSE
bool "enable efuse hal APIs test command" bool "enable efuse hal APIs test command"
depends on DRIVERS_EFUSE depends on DRIVERS_EFUSE
default n default n
endmenu endmenu

View File

@ -6,7 +6,7 @@ config DRIVERS_G2D
config HAL_TEST_G2D config HAL_TEST_G2D
bool "enable g2d hal APIs test command" bool "enable g2d hal APIs test command"
depends on DRIVERS_G2D depends on DRIVERS_G2D
default n default n
endmenu endmenu

View File

@ -6,7 +6,7 @@ config DRIVERS_GPIO
config HAL_TEST_GPIO config HAL_TEST_GPIO
bool "enable gpio hal APIs test command" bool "enable gpio hal APIs test command"
depends on DRIVERS_GPIO depends on DRIVERS_GPIO
default n default n
endmenu endmenu

View File

@ -1,15 +1,15 @@
menu "INTC driver" menu "INTC driver"
config DRIVERS_INTC config DRIVERS_INTC
bool "enable INTC driver" bool "enable INTC driver"
default n default n
menu "INTC option features" menu "INTC option features"
config DRIVERS_INTC_FEATURE_1 config DRIVERS_INTC_FEATURE_1
bool "INTC feature 1" bool "INTC feature 1"
select DRIVERS_INTC select DRIVERS_INTC
default n default n
endmenu endmenu

View File

@ -5,39 +5,39 @@ config DRIVERS_MBUS
default y default y
if DRIVERS_MBUS if DRIVERS_MBUS
config DRIVERS_MBUS_GPU_BW config DRIVERS_MBUS_GPU_BW
bool "mbus gpu bandwidth" bool "mbus gpu bandwidth"
default n default n
config DRIVERS_MBUS_RV_SYS_BW config DRIVERS_MBUS_RV_SYS_BW
bool "mbus riscv sys bandwidth" bool "mbus riscv sys bandwidth"
default n default n
config DRIVERS_MBUS_MAHB_BW config DRIVERS_MBUS_MAHB_BW
bool "mbus mahb bandwidth" bool "mbus mahb bandwidth"
default n default n
config DRIVERS_MBUS_DMA_BW config DRIVERS_MBUS_DMA_BW
bool "mbus dma bandwidth" bool "mbus dma bandwidth"
default n default n
config DRIVERS_MBUS_CE_BW config DRIVERS_MBUS_CE_BW
bool "mbus ce bandwidth" bool "mbus ce bandwidth"
default n default n
config DRIVERS_MBUS_TVD_BW config DRIVERS_MBUS_TVD_BW
bool "mbus tvd bandwidth" bool "mbus tvd bandwidth"
default n default n
config DRIVERS_MBUS_CSI_BW config DRIVERS_MBUS_CSI_BW
bool "mbus csi bandwidth" bool "mbus csi bandwidth"
default n default n
config DRIVERS_MBUS_DSP_SYS_BW config DRIVERS_MBUS_DSP_SYS_BW
bool "mbus dsp sys bandwidth" bool "mbus dsp sys bandwidth"
default n default n
config DRIVERS_MBUS_G2D_BW config DRIVERS_MBUS_G2D_BW
bool "mbus g2d bandwidth" bool "mbus g2d bandwidth"
default n default n
config DRIVERS_MBUS_DI_BW config DRIVERS_MBUS_DI_BW
bool "mbus di bandwidth" bool "mbus di bandwidth"
default n default n
config DRIVERS_MBUS_IOMMU_BW config DRIVERS_MBUS_IOMMU_BW
bool "mbus iommu bandwidth" bool "mbus iommu bandwidth"
default n default n
endif endif
config HAL_TEST_MBUS config HAL_TEST_MBUS

View File

@ -6,12 +6,12 @@ config DRIVERS_MSGBOX
config DRIVERS_MSGBOX_SX config DRIVERS_MSGBOX_SX
bool "enable Message Box(SX) driver" bool "enable Message Box(SX) driver"
depends on DRIVERS_MSGBOX depends on DRIVERS_MSGBOX
default n default n
config DRIVERS_MSGBOX_AMP config DRIVERS_MSGBOX_AMP
bool "enable Message Box(amp) driver" bool "enable Message Box(amp) driver"
depends on DRIVERS_MSGBOX depends on DRIVERS_MSGBOX
default n default n
endmenu endmenu

View File

@ -6,7 +6,7 @@ config DRIVERS_PRCM
config HAL_TEST_PRCM config HAL_TEST_PRCM
bool "enable prcm hal APIs test command" bool "enable prcm hal APIs test command"
depends on DRIVERS_PRCM depends on DRIVERS_PRCM
default n default n
endmenu endmenu

View File

@ -7,42 +7,42 @@ config DRIVERS_SDMMC
if DRIVERS_SDMMC if DRIVERS_SDMMC
config USE_SD config USE_SD
bool "enable SD" bool "enable SD"
default y default y
config USE_SDIO config USE_SDIO
bool "enable SDIO" bool "enable SDIO"
default y default y
config USE_MMC config USE_MMC
bool "enable mmc" bool "enable mmc"
default n default n
config DETECT_CARD config DETECT_CARD
bool "enable detect card" bool "enable detect card"
default y default y
config SDC_DMA_USED config SDC_DMA_USED
bool "enable dma transmission" bool "enable dma transmission"
default y default y
config SDIO_IRQ_SUPPORT config SDIO_IRQ_SUPPORT
bool "enable sdio irq" bool "enable sdio irq"
default y default y
config SD_TEST config SD_TEST
select USE_SD select USE_SD
bool "enable SD Card test case." bool "enable SD Card test case."
default y default y
config SDC_DMA_BUF_SIZE config SDC_DMA_BUF_SIZE
int "SD Card Align DMA Buffer Size(Kbyte)." int "SD Card Align DMA Buffer Size(Kbyte)."
depends on SDC_DMA_USED depends on SDC_DMA_USED
default 64 default 64
config DRIVERS_SDC_CDPIN_PRESENT_VAL config DRIVERS_SDC_CDPIN_PRESENT_VAL
int "sdc card detect pin present value" int "sdc card detect pin present value"
default 0 default 0
endif endif
endmenu endmenu

View File

@ -1,6 +1,6 @@
menuconfig DRIVERS_SOUND menuconfig DRIVERS_SOUND
bool "Sound card support" bool "Sound card support"
default y default y
if DRIVERS_SOUND if DRIVERS_SOUND
source "drivers/hal/source/sound/codecs/Kconfig" source "drivers/hal/source/sound/codecs/Kconfig"

View File

@ -1,42 +1,42 @@
menu "AllWinner CODEC drivers" menu "AllWinner CODEC drivers"
config SND_CODEC_SUNXI_RWFUNC config SND_CODEC_SUNXI_RWFUNC
bool bool
default n default n
config SND_CODEC_SUN8IW18_AUDIOCODEC config SND_CODEC_SUN8IW18_AUDIOCODEC
bool "Allwinner AudioCodec support" bool "Allwinner AudioCodec support"
default n default n
select SND_PLATFORM_SUNXI_CPUDAI select SND_PLATFORM_SUNXI_CPUDAI
select SND_PLATFORM_SUNXI_PCM select SND_PLATFORM_SUNXI_PCM
select SND_CODEC_SUNXI_RWFUNC select SND_CODEC_SUNXI_RWFUNC
depends on (ARCH_SUN8IW18P1 || ARCH_SUN8IW18) depends on (ARCH_SUN8IW18P1 || ARCH_SUN8IW18)
help help
Select Y to add support the Codec embedded in the Allwinner Select Y to add support the Codec embedded in the Allwinner
sun8iw18 and affiliated SoCs. sun8iw18 and affiliated SoCs.
config SND_CODEC_SUN8IW19_AUDIOCODEC config SND_CODEC_SUN8IW19_AUDIOCODEC
bool "Allwinner AudioCodec support" bool "Allwinner AudioCodec support"
default n default n
select SND_PLATFORM_SUNXI_CPUDAI select SND_PLATFORM_SUNXI_CPUDAI
select SND_PLATFORM_SUNXI_PCM select SND_PLATFORM_SUNXI_PCM
depends on (ARCH_SUN8IW19P1 || ARCH_SUN8IW19) depends on (ARCH_SUN8IW19P1 || ARCH_SUN8IW19)
help help
Select Y to add support the Codec embedded in the Allwinner Select Y to add support the Codec embedded in the Allwinner
sun8iw19 and affiliated SoCs. sun8iw19 and affiliated SoCs.
config SND_CODEC_SUN8IW20_AUDIOCODEC config SND_CODEC_SUN8IW20_AUDIOCODEC
bool "Allwinner AudioCodec support" bool "Allwinner AudioCodec support"
default n default n
select SND_PLATFORM_SUNXI_CPUDAI select SND_PLATFORM_SUNXI_CPUDAI
select SND_PLATFORM_SUNXI_PCM select SND_PLATFORM_SUNXI_PCM
depends on SOC_SUN20IW1P1 depends on SOC_SUN20IW1P1
help help
Select Y to add support the Codec embedded in the Allwinner Select Y to add support the Codec embedded in the Allwinner
sun8iw20 and affiliated SoCs. sun8iw20 and affiliated SoCs.
config SND_CODEC_AC108 config SND_CODEC_AC108
bool "Sunxi AC108 codec" bool "Sunxi AC108 codec"
default n default n
endmenu endmenu

View File

@ -1,24 +1,24 @@
menu "AW Sound Compenents" menu "AW Sound Compenents"
config COMPONENTS_AW_ALSA_LIB config COMPONENTS_AW_ALSA_LIB
bool "Allwinner alsa library" bool "Allwinner alsa library"
depends on DRIVERS_SOUND depends on DRIVERS_SOUND
default n default n
help help
This is library package for aw-alsa, only used for Allwinner FreeRTOS. This is library package for aw-alsa, only used for Allwinner FreeRTOS.
config COMPONENTS_AW_ALSA_UTILS config COMPONENTS_AW_ALSA_UTILS
bool "Allwinner alsa utilities" bool "Allwinner alsa utilities"
depends on COMPONENTS_AW_ALSA_LIB depends on COMPONENTS_AW_ALSA_LIB
default n default n
help help
This is package for aw-alsa-lib utilities, only used for Allwinner Tina RTOS. This is package for aw-alsa-lib utilities, only used for Allwinner Tina RTOS.
config BUILTIN_WAV_FILE config BUILTIN_WAV_FILE
bool "builtin wav file" bool "builtin wav file"
depends on COMPONENTS_AW_ALSA_UTILS depends on COMPONENTS_AW_ALSA_UTILS
default y default y
help help
Say Y to use builtin wav file. Say Y to use builtin wav file.
endmenu endmenu

View File

@ -1,82 +1,82 @@
menu "Platform(Audio Interface) drivers" menu "Platform(Audio Interface) drivers"
config SND_PLATFORM_SUNXI_PCM config SND_PLATFORM_SUNXI_PCM
bool bool
default n default n
config SND_PLATFORM_SUNXI_CPUDAI config SND_PLATFORM_SUNXI_CPUDAI
bool "Allwinner internal cpudai" bool "Allwinner internal cpudai"
select SND_PLATFORM_SUNXI_PCM select SND_PLATFORM_SUNXI_PCM
default n default n
help help
Only support for the Codec embedded in the Allwinner SoCs. Only support for the Codec embedded in the Allwinner SoCs.
config SND_PLATFORM_SUNXI_DAUDIO config SND_PLATFORM_SUNXI_DAUDIO
bool "Allwinner Digital Audio Support" bool "Allwinner Digital Audio Support"
select SND_PLATFORM_SUNXI_PCM select SND_PLATFORM_SUNXI_PCM
depends on (!ARCH_SUN8IW19) depends on (!ARCH_SUN8IW19)
default n default n
help help
Select Y to add support for I2S/PCM/TDM module in Allwinner SoCs. Select Y to add support for I2S/PCM/TDM module in Allwinner SoCs.
config SND_PLATFORM_SUN8IW19_DAUDIO config SND_PLATFORM_SUN8IW19_DAUDIO
bool "Allwinner Digital Audio Support" bool "Allwinner Digital Audio Support"
select SND_PLATFORM_SUNXI_PCM select SND_PLATFORM_SUNXI_PCM
depends on (ARCH_SUN8IW19P1 || ARCH_SUN8IW19) depends on (ARCH_SUN8IW19P1 || ARCH_SUN8IW19)
default n default n
help help
Select Y to add support for I2S/PCM/TDM module in Allwinner SoCs. Select Y to add support for I2S/PCM/TDM module in Allwinner SoCs.
if SND_PLATFORM_SUNXI_DAUDIO || SND_PLATFORM_SUN8IW19_DAUDIO if SND_PLATFORM_SUNXI_DAUDIO || SND_PLATFORM_SUN8IW19_DAUDIO
menu "Allwinner Digital Audio Choose" menu "Allwinner Digital Audio Choose"
config SND_PLATFORM_SUNXI_DAUDIO0 config SND_PLATFORM_SUNXI_DAUDIO0
bool "Allwinner Daudio0 Support" bool "Allwinner Daudio0 Support"
default n default n
help help
Select Y to add support for Daudio0. Select Y to add support for Daudio0.
config SND_PLATFORM_SUNXI_DAUDIO1 config SND_PLATFORM_SUNXI_DAUDIO1
bool "Allwinner Daudio1 Support" bool "Allwinner Daudio1 Support"
default n default n
help help
Select Y to add support for Daudio1. Select Y to add support for Daudio1.
config SND_PLATFORM_SUNXI_DAUDIO2 config SND_PLATFORM_SUNXI_DAUDIO2
bool "Allwinner Daudio2 Support" bool "Allwinner Daudio2 Support"
depends on (!SND_PLATFORM_SUN8IW19_DAUDIO) depends on (!SND_PLATFORM_SUN8IW19_DAUDIO)
default n default n
help help
Select Y to add support for Daudio2. Select Y to add support for Daudio2.
config SND_PLATFORM_SUNXI_DAUDIO3 config SND_PLATFORM_SUNXI_DAUDIO3
bool "Allwinner Daudio3 Support" bool "Allwinner Daudio3 Support"
depends on (!SND_PLATFORM_SUN8IW19_DAUDIO) depends on (!SND_PLATFORM_SUN8IW19_DAUDIO)
default n default n
help help
Select Y to add support for Daudio3. Select Y to add support for Daudio3.
endmenu endmenu
endif endif
config SND_PLATFORM_SUNXI_DMIC config SND_PLATFORM_SUNXI_DMIC
bool "Allwinner DMIC Support" bool "Allwinner DMIC Support"
select SND_PLATFORM_SUNXI_PCM select SND_PLATFORM_SUNXI_PCM
select SND_CODEC_DUMMY select SND_CODEC_DUMMY
default n default n
help help
Select Y to add support for DMIC module in Allwinner SoCs. Select Y to add support for DMIC module in Allwinner SoCs.
config SND_PLATFORM_SUNXI_SPDIF config SND_PLATFORM_SUNXI_SPDIF
bool "Allwinner SPDIF Support" bool "Allwinner SPDIF Support"
select SND_PLATFORM_SUNXI_PCM select SND_PLATFORM_SUNXI_PCM
select SND_CODEC_DUMMY select SND_CODEC_DUMMY
default n default n
help help
Select Y to add support for SPDIF module in Allwinner SoCs. Select Y to add support for SPDIF module in Allwinner SoCs.
config SND_SUNXI_DEBUG config SND_SUNXI_DEBUG
bool "Allwinner Audio Debug Support" bool "Allwinner Audio Debug Support"
default n default n
help help
Select Y to add support for audio debug in Allwinner SoCs. Select Y to add support for audio debug in Allwinner SoCs.
endmenu endmenu

View File

@ -7,7 +7,7 @@ config DRIVERS_THERMAL
config HAL_TEST_THERMAL config HAL_TEST_THERMAL
bool "enable thermal hal APIs test command" bool "enable thermal hal APIs test command"
depends on DRIVERS_THERMAL depends on DRIVERS_THERMAL
default n default n

View File

@ -6,32 +6,32 @@ config DRIVERS_UART
config HAL_TEST_UART config HAL_TEST_UART
bool "enable uart hal APIs test command" bool "enable uart hal APIs test command"
depends on DRIVERS_UART depends on DRIVERS_UART
default n default n
config SUNXI_UART_SUPPORT_POLL config SUNXI_UART_SUPPORT_POLL
bool "support poll APIs" bool "support poll APIs"
depends on DRIVERS_UART depends on DRIVERS_UART
default n default n
config SUNXI_UART_REGISTER_UART0 config SUNXI_UART_REGISTER_UART0
bool "support uart0 device" bool "support uart0 device"
depends on DRIVERS_UART depends on DRIVERS_UART
default n default n
config SUNXI_UART_REGISTER_UART1 config SUNXI_UART_REGISTER_UART1
bool "support uart1 device" bool "support uart1 device"
depends on DRIVERS_UART depends on DRIVERS_UART
default n default n
config SUNXI_UART_REGISTER_UART2 config SUNXI_UART_REGISTER_UART2
bool "support uart2 device" bool "support uart2 device"
depends on DRIVERS_UART depends on DRIVERS_UART
default n default n
config SUNXI_UART_REGISTER_UART3 config SUNXI_UART_REGISTER_UART3
bool "support uart3 device" bool "support uart3 device"
depends on DRIVERS_UART depends on DRIVERS_UART
default n default n
endmenu endmenu

View File

@ -1,6 +1,6 @@
menuconfig DRIVERS_USB menuconfig DRIVERS_USB
bool "USB Drivers" bool "USB Drivers"
default y default y
if DRIVERS_USB if DRIVERS_USB
menu "USB HOST" menu "USB HOST"
@ -10,24 +10,24 @@ config USB_HOST
default n default n
config HAL_TEST_HCI config HAL_TEST_HCI
bool "enable HCI hal APIs test command" bool "enable HCI hal APIs test command"
depends on USB_HOST depends on USB_HOST
default n default n
config USB_STORAGE config USB_STORAGE
bool "USB Mass Storage support" bool "USB Mass Storage support"
depends on USB_HOST depends on USB_HOST
default n default n
config USB_CAMERA config USB_CAMERA
bool "UVC support" bool "UVC support"
depends on USB_HOST depends on USB_HOST
default n default n
config USB_HID config USB_HID
bool "USB HID support" bool "USB HID support"
depends on USB_HOST depends on USB_HOST
default n default n
endmenu endmenu
menu "USB DEVICE" menu "USB DEVICE"
@ -37,13 +37,13 @@ config USB_DEVICE
default y default y
config HAL_TEST_UDC config HAL_TEST_UDC
bool "enable udc hal APIs test command" bool "enable udc hal APIs test command"
depends on USB_DEVICE depends on USB_DEVICE
default y default y
endmenu endmenu
config USB_MANAGER config USB_MANAGER
bool "USB Manager support" bool "USB Manager support"
default n default n
endif endif

View File

@ -22,7 +22,7 @@ source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
config SOC_TINA config SOC_TINA
bool bool
select ARCH_ARM_ARM9 select ARCH_ARM_ARM9
select RT_USING_CACHE select RT_USING_CACHE
select RT_USING_COMPONENTS_INIT select RT_USING_COMPONENTS_INIT

View File

@ -9,7 +9,7 @@ config RTT_DIR
string string
option env="RTT_ROOT" option env="RTT_ROOT"
default "../.." default "../.."
# you can change the RTT_ROOT default "../.." to your rtthread_root, # you can change the RTT_ROOT default "../.." to your rtthread_root,
# example : default "F:/git_repositories/rt-thread" # example : default "F:/git_repositories/rt-thread"
@ -17,7 +17,7 @@ config PKGS_DIR
string string
option env="PKGS_ROOT" option env="PKGS_ROOT"
default "packages" default "packages"
config ENV_DIR config ENV_DIR
string string
option env="ENV_ROOT" option env="ENV_ROOT"

View File

@ -30,7 +30,7 @@ menu "On-chip Peripheral Drivers"
bool "Enable UART2" bool "Enable UART2"
default n default n
endif endif
menuconfig BSP_USING_ADC menuconfig BSP_USING_ADC
bool "Enable ADC" bool "Enable ADC"
default n default n
@ -40,7 +40,7 @@ menu "On-chip Peripheral Drivers"
bool "Enable ADC1" bool "Enable ADC1"
default n default n
endif endif
menuconfig BSP_USING_DAC menuconfig BSP_USING_DAC
bool "Enable DAC" bool "Enable DAC"
default n default n
@ -50,7 +50,7 @@ menu "On-chip Peripheral Drivers"
bool "Enable DAC1" bool "Enable DAC1"
default n default n
endif endif
menuconfig BSP_USING_ONCHIP_RTC menuconfig BSP_USING_ONCHIP_RTC
bool "Enable RTC" bool "Enable RTC"
select RT_USING_RTC select RT_USING_RTC
@ -67,7 +67,7 @@ menu "On-chip Peripheral Drivers"
bool "RTC USING LSI" bool "RTC USING LSI"
endchoice endchoice
endif endif
menuconfig BSP_USING_I2C menuconfig BSP_USING_I2C
bool "Enable I2C BUS (software simulation)" bool "Enable I2C BUS (software simulation)"
default n default n
@ -115,7 +115,7 @@ menu "On-chip Peripheral Drivers"
default 41 default 41
endif endif
endif endif
menuconfig BSP_USING_SPI menuconfig BSP_USING_SPI
bool "Enable SPI" bool "Enable SPI"
default n default n
@ -129,7 +129,7 @@ menu "On-chip Peripheral Drivers"
bool "Enable SPI2" bool "Enable SPI2"
default n default n
endif endif
menuconfig BSP_USING_TMR menuconfig BSP_USING_TMR
bool "Enable Timer" bool "Enable Timer"
default n default n
@ -158,20 +158,20 @@ menu "On-chip Peripheral Drivers"
config BSP_USING_TMR14 config BSP_USING_TMR14
bool "Enable TMR14" bool "Enable TMR14"
default n default n
config BSP_USING_TMR15 config BSP_USING_TMR15
bool "Enable TMR15" bool "Enable TMR15"
default n default n
config BSP_USING_TMR16 config BSP_USING_TMR16
bool "Enable TMR16" bool "Enable TMR16"
default n default n
config BSP_USING_TMR17 config BSP_USING_TMR17
bool "Enable TMR17" bool "Enable TMR17"
default n default n
endif endif
menuconfig BSP_USING_PWM menuconfig BSP_USING_PWM
bool "Enable PWM" bool "Enable PWM"
default n default n
@ -198,12 +198,12 @@ menu "On-chip Peripheral Drivers"
default n default n
endif endif
endif endif
config BSP_USING_WDT config BSP_USING_WDT
bool "Enable Watchdog Timer" bool "Enable Watchdog Timer"
select RT_USING_WDT select RT_USING_WDT
default n default n
endmenu endmenu
menu "Board extended module Drivers" menu "Board extended module Drivers"

View File

@ -31,15 +31,15 @@ if GetDepend(['RT_USING_SPI']):
if GetDepend(['RT_USING_HWTIMER']) or GetDepend(['RT_USING_PWM']): if GetDepend(['RT_USING_HWTIMER']) or GetDepend(['RT_USING_PWM']):
src += ['APM32F0xx_StdPeriphDriver/src/apm32f0xx_tmr.c'] src += ['APM32F0xx_StdPeriphDriver/src/apm32f0xx_tmr.c']
if GetDepend(['RT_USING_WDT']): if GetDepend(['RT_USING_WDT']):
src += ['APM32F0xx_StdPeriphDriver/src/apm32f0xx_wwdt.c'] src += ['APM32F0xx_StdPeriphDriver/src/apm32f0xx_wwdt.c']
src += ['APM32F0xx_StdPeriphDriver/src/apm32f0xx_iwdt.c'] src += ['APM32F0xx_StdPeriphDriver/src/apm32f0xx_iwdt.c']
if GetDepend(['RT_USING_CAN']): if GetDepend(['RT_USING_CAN']):
src += ['APM32F0xx_StdPeriphDriver/src/apm32f0xx_can.c'] src += ['APM32F0xx_StdPeriphDriver/src/apm32f0xx_can.c']
path = [cwd + '/Device/Geehy/APM32F0xx/Include', path = [cwd + '/Device/Geehy/APM32F0xx/Include',
cwd + '/APM32F0xx_StdPeriphDriver/inc', cwd + '/APM32F0xx_StdPeriphDriver/inc',
cwd + '/CMSIS/Include'] cwd + '/CMSIS/Include']

View File

@ -30,15 +30,15 @@ if GetDepend(['RT_USING_SPI']):
if GetDepend(['RT_USING_HWTIMER']) or GetDepend(['RT_USING_PWM']): if GetDepend(['RT_USING_HWTIMER']) or GetDepend(['RT_USING_PWM']):
src += ['APM32F10x_StdPeriphDriver/src/apm32f10x_tmr.c'] src += ['APM32F10x_StdPeriphDriver/src/apm32f10x_tmr.c']
if GetDepend(['RT_USING_WDT']): if GetDepend(['RT_USING_WDT']):
src += ['APM32F10x_StdPeriphDriver/src/apm32f10x_wwdt.c'] src += ['APM32F10x_StdPeriphDriver/src/apm32f10x_wwdt.c']
src += ['APM32F10x_StdPeriphDriver/src/apm32f10x_iwdt.c'] src += ['APM32F10x_StdPeriphDriver/src/apm32f10x_iwdt.c']
if GetDepend(['BSP_USING_ETH']): if GetDepend(['BSP_USING_ETH']):
src += ['APM32F10x_ETH_Driver/src/apm32f10x_eth.c'] 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 + '/APM32F10x_StdPeriphDriver/inc',
cwd + '/CMSIS/Include', cwd + '/CMSIS/Include',
cwd + '/APM32F10x_ETH_Driver/inc'] cwd + '/APM32F10x_ETH_Driver/inc']

View File

@ -31,15 +31,15 @@ if GetDepend(['RT_USING_SPI']):
if GetDepend(['RT_USING_HWTIMER']) or GetDepend(['RT_USING_PWM']): if GetDepend(['RT_USING_HWTIMER']) or GetDepend(['RT_USING_PWM']):
src += ['APM32F4xx_StdPeriphDriver/src/apm32f4xx_tmr.c'] src += ['APM32F4xx_StdPeriphDriver/src/apm32f4xx_tmr.c']
if GetDepend(['RT_USING_WDT']): if GetDepend(['RT_USING_WDT']):
src += ['APM32F4xx_StdPeriphDriver/src/apm32f4xx_wwdt.c'] src += ['APM32F4xx_StdPeriphDriver/src/apm32f4xx_wwdt.c']
src += ['APM32F4xx_StdPeriphDriver/src/apm32f4xx_iwdt.c'] src += ['APM32F4xx_StdPeriphDriver/src/apm32f4xx_iwdt.c']
if GetDepend(['BSP_USING_ETH']): if GetDepend(['BSP_USING_ETH']):
src += ['APM32F4xx_ETH_Driver/src/apm32f4xx_eth.c'] 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 + '/APM32F4xx_StdPeriphDriver/inc',
cwd + '/CMSIS/Include', cwd + '/CMSIS/Include',
cwd + '/APM32F4xx_ETH_Driver/inc'] cwd + '/APM32F4xx_ETH_Driver/inc']

View File

@ -25,7 +25,7 @@ if GetDepend(['RT_USING_DAC']):
if GetDepend('BSP_USING_ONCHIP_RTC'): if GetDepend('BSP_USING_ONCHIP_RTC'):
src += ['drv_rtc.c'] src += ['drv_rtc.c']
if GetDepend(['RT_USING_I2C']): 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'): 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'] src += ['drv_soft_i2c.c']

View File

@ -14,4 +14,4 @@ config SOC_SERIES_APM32F1
config SOC_SERIES_APM32F4 config SOC_SERIES_APM32F4
bool bool
select ARCH_ARM_CORTEX_M4 select ARCH_ARM_CORTEX_M4
select SOC_FAMILY_APM32 select SOC_FAMILY_APM32

View File

@ -9,7 +9,7 @@ config RTT_DIR
string string
option env="RTT_ROOT" option env="RTT_ROOT"
default "../.." default "../.."
# you can change the RTT_ROOT default "../.." to your rtthread_root, # you can change the RTT_ROOT default "../.." to your rtthread_root,
# example : default "F:/git_repositories/rt-thread" # example : default "F:/git_repositories/rt-thread"
@ -17,7 +17,7 @@ config PKGS_DIR
string string
option env="PKGS_ROOT" option env="PKGS_ROOT"
default "packages" default "packages"
config ENV_DIR config ENV_DIR
string string
option env="ENV_ROOT" option env="ENV_ROOT"
@ -27,7 +27,7 @@ source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
config SOC_APOLLO2 config SOC_APOLLO2
bool bool
select ARCH_ARM_CORTEX_M4 select ARCH_ARM_CORTEX_M4
select RT_USING_COMPONENTS_INIT select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN select RT_USING_USER_MAIN

View File

@ -14,16 +14,16 @@ TARGET = 'rtthread_apollo2.' + rtconfig.TARGET_EXT
DefaultEnvironment(tools=[]) DefaultEnvironment(tools=[])
env = Environment(tools = ['mingw'], env = Environment(tools = ['mingw'],
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS,
AR = rtconfig.AR, ARFLAGS = '-rc', AR = rtconfig.AR, ARFLAGS = '-rc',
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
if rtconfig.PLATFORM in ['iccarm']: if rtconfig.PLATFORM in ['iccarm']:
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES']) env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
env.Replace(ARFLAGS = ['']) env.Replace(ARFLAGS = [''])
env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map']) env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map'])
Export('RTT_ROOT') Export('RTT_ROOT')
Export('rtconfig') Export('rtconfig')

View File

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

View File

@ -9,7 +9,7 @@ src = Split("""
""") """)
# add for startup script # add for startup script
if rtconfig.PLATFORM in ['gcc']: if rtconfig.PLATFORM in ['gcc']:
src = src + ['gcc/' + 'startup_gcc.c'] src = src + ['gcc/' + 'startup_gcc.c']
elif rtconfig.PLATFORM in ['armcc', 'armclang']: elif rtconfig.PLATFORM in ['armcc', 'armclang']:

View File

@ -27,18 +27,18 @@ config SOC_AT91SAM926
config RT_USING_UART0 config RT_USING_UART0
bool "Using RT_USING_UART0" bool "Using RT_USING_UART0"
default n default n
config RT_USING_UART3 config RT_USING_UART3
bool "Using RT_USING_UART3" bool "Using RT_USING_UART3"
default y default y
config RT_USING_UART4 config RT_USING_UART4
bool "Using RT_USING_UART4" bool "Using RT_USING_UART4"
default n default n
config RT_USING_LED config RT_USING_LED
bool "Using RT_USING_LED" bool "Using RT_USING_LED"
default y default y
help help
led blink demo led blink demo

View File

@ -14,10 +14,10 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT
DefaultEnvironment(tools=[]) DefaultEnvironment(tools=[])
env = Environment(tools = ['mingw'], env = Environment(tools = ['mingw'],
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS,
AR = rtconfig.AR, ARFLAGS = '-rc', AR = rtconfig.AR, ARFLAGS = '-rc',
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
Export('RTT_ROOT') Export('RTT_ROOT')

View File

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

View File

@ -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'] src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f403a_407.s']
elif rtconfig.PLATFORM in ['iccarm']: elif rtconfig.PLATFORM in ['iccarm']:
src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f403a_407.s'] src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f403a_407.s']
CPPDEFINES = ['AT32F403AVGT7'] CPPDEFINES = ['AT32F403AVGT7']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
Return('group') Return('group')

View File

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

View File

@ -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'] src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f403a_407.s']
elif rtconfig.PLATFORM in ['iccarm']: elif rtconfig.PLATFORM in ['iccarm']:
src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f403a_407.s'] src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f403a_407.s']
CPPDEFINES = ['AT32F407VGT7'] CPPDEFINES = ['AT32F407VGT7']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
Return('group') Return('group')

View File

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

View File

@ -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'] src += [startup_path_prefix + '/AT32F413_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f413.s']
elif rtconfig.PLATFORM in ['iccarm']: elif rtconfig.PLATFORM in ['iccarm']:
src += [startup_path_prefix + '/AT32F413_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f413.s'] src += [startup_path_prefix + '/AT32F413_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f413.s']
CPPDEFINES = ['AT32F413RCT7'] CPPDEFINES = ['AT32F413RCT7']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
Return('group') Return('group')

View File

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

View File

@ -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'] src += [startup_path_prefix + '/AT32F415_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f415.s']
elif rtconfig.PLATFORM in ['iccarm']: elif rtconfig.PLATFORM in ['iccarm']:
src += [startup_path_prefix + '/AT32F415_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f415.s'] src += [startup_path_prefix + '/AT32F415_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f415.s']
CPPDEFINES = ['AT32F415RCT7'] CPPDEFINES = ['AT32F415RCT7']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
Return('group') Return('group')

View File

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

View File

@ -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'] src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f435_437.s']
elif rtconfig.PLATFORM in ['iccarm']: elif rtconfig.PLATFORM in ['iccarm']:
src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f435_437.s'] src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f435_437.s']
CPPDEFINES = ['AT32F435ZMT7'] CPPDEFINES = ['AT32F435ZMT7']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
Return('group') Return('group')

View File

@ -30,7 +30,7 @@ menu "On-chip Peripheral Drivers"
config BSP_USING_ON_CHIP_FLASH config BSP_USING_ON_CHIP_FLASH
bool "Enable on-chip FLASH" bool "Enable on-chip FLASH"
default n default n
config BSP_USING_EMAC config BSP_USING_EMAC
bool "Enable Ethernet" bool "Enable Ethernet"

View File

@ -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'] src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f435_437.s']
elif rtconfig.PLATFORM in ['iccarm']: elif rtconfig.PLATFORM in ['iccarm']:
src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f435_437.s'] src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f435_437.s']
CPPDEFINES = ['AT32F437ZMT7'] CPPDEFINES = ['AT32F437ZMT7']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
Return('group') Return('group')

View File

@ -19,35 +19,35 @@ source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
config SOC_AT91SAM926 config SOC_AT91SAM926
bool bool
select RT_USING_CACHE select RT_USING_CACHE
select RT_USING_COMPONENTS_INIT select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
default y default y
config RT_USING_DBGU config RT_USING_DBGU
bool "Using RT_USING_DBGU" bool "Using RT_USING_DBGU"
default y default y
config RT_USING_UART0 config RT_USING_UART0
bool "Using RT_USING_UART0" bool "Using RT_USING_UART0"
default n default n
config RT_USING_UART1 config RT_USING_UART1
bool "Using RT_USING_UART1" bool "Using RT_USING_UART1"
default n default n
config RT_USING_UART2 config RT_USING_UART2
bool "Using RT_USING_UART2" bool "Using RT_USING_UART2"
default n default n
config RT_USING_UART3 config RT_USING_UART3
bool "Using RT_USING_UART3" bool "Using RT_USING_UART3"
default n default n
config RT_USING_LED config RT_USING_LED
bool "Using RT_USING_LED" bool "Using RT_USING_LED"
default y default y
help help
led blink demo led blink demo

View File

@ -14,10 +14,10 @@ TARGET = 'rtthread-at91sam9260.' + rtconfig.TARGET_EXT
DefaultEnvironment(tools=[]) DefaultEnvironment(tools=[])
env = Environment(tools = ['mingw'], env = Environment(tools = ['mingw'],
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS,
AR = rtconfig.AR, ARFLAGS = '-rc', AR = rtconfig.AR, ARFLAGS = '-rc',
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
Export('RTT_ROOT') Export('RTT_ROOT')

View File

@ -12,20 +12,20 @@ usart.c
# add Ethernet drvers. # add Ethernet drvers.
if GetDepend('RT_USING_LED'): if GetDepend('RT_USING_LED'):
src += ['led.c'] src += ['led.c']
if GetDepend('RT_USING_SDIO'): if GetDepend('RT_USING_SDIO'):
src += ['at91_mci.c'] src += ['at91_mci.c']
if GetDepend('RT_USING_LWIP'): if GetDepend('RT_USING_LWIP'):
src += ['macb.c'] src += ['macb.c']
if GetDepend('RT_USING_I2C') and GetDepend('RT_USING_I2C_BITOPS'): 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'): if GetDepend('RT_USING_MTD_NAND'):
src += ['at91_nand.c'] src += ['at91_nand.c']
CPPPATH = [cwd] CPPPATH = [cwd]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)

View File

@ -7,16 +7,16 @@ CPPPATH = [cwd]
# The set of source files associated with this SConscript file. # The set of source files associated with this SConscript file.
if rtconfig.PLATFORM in ['armcc', 'armclang']: if rtconfig.PLATFORM in ['armcc', 'armclang']:
src = Glob('*.c') + Glob('*_rvds.S') src = Glob('*.c') + Glob('*_rvds.S')
if rtconfig.PLATFORM in ['gcc']: 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']: if rtconfig.PLATFORM in ['iccarm']:
src = Glob('*.c') + Glob('*_iar.S') src = Glob('*.c') + Glob('*_iar.S')
if rtconfig.PLATFORM in ['cl', 'mingw']: if rtconfig.PLATFORM in ['cl', 'mingw']:
src = Glob('*.c') src = Glob('*.c')
group = DefineGroup('Platform', src, depend = [''], CPPPATH = CPPPATH) group = DefineGroup('Platform', src, depend = [''], CPPPATH = CPPPATH)

View File

@ -9,7 +9,7 @@ config RTT_DIR
string string
option env="RTT_ROOT" option env="RTT_ROOT"
default "../../.." default "../../.."
# you can change the RTT_ROOT default "../../.." to your rtthread_root, # you can change the RTT_ROOT default "../../.." to your rtthread_root,
# example : default "F:/git_repositories/rt-thread" # example : default "F:/git_repositories/rt-thread"
@ -17,7 +17,7 @@ config PKGS_DIR
string string
option env="PKGS_ROOT" option env="PKGS_ROOT"
default "packages" default "packages"
config ENV_DIR config ENV_DIR
string string
option env="ENV_ROOT" option env="ENV_ROOT"
@ -27,7 +27,7 @@ source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
config SOC_AT91SAM9G45 config SOC_AT91SAM9G45
bool bool
select ARCH_ARM_ARM9 select ARCH_ARM_ARM9
select RT_USING_CACHE select RT_USING_CACHE
select RT_USING_COMPONENTS_INIT select RT_USING_COMPONENTS_INIT

View File

@ -14,11 +14,11 @@ TARGET = 'rtthread-at91sam9g45.' + rtconfig.TARGET_EXT
DefaultEnvironment(tools=[]) DefaultEnvironment(tools=[])
env = Environment(tools = ['mingw'], env = Environment(tools = ['mingw'],
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS,
CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS,
AR = rtconfig.AR, ARFLAGS = '-rc', AR = rtconfig.AR, ARFLAGS = '-rc',
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
Export('RTT_ROOT') Export('RTT_ROOT')

View File

@ -12,18 +12,18 @@ usart.c
# add Ethernet drvers. # add Ethernet drvers.
if GetDepend('RT_USING_LED'): if GetDepend('RT_USING_LED'):
src += ['led.c'] src += ['led.c']
if GetDepend('RT_USING_SDIO'): if GetDepend('RT_USING_SDIO'):
src += ['at91_mci.c'] src += ['at91_mci.c']
if GetDepend('RT_USING_LWIP'): if GetDepend('RT_USING_LWIP'):
src += ['macb.c'] src += ['macb.c']
if GetDepend('RT_USING_I2C') and GetDepend('RT_USING_I2C_BITOPS'): if GetDepend('RT_USING_I2C') and GetDepend('RT_USING_I2C_BITOPS'):
src += ['at91_i2c_gpio.c'] src += ['at91_i2c_gpio.c']
CPPPATH = [cwd] CPPPATH = [cwd]
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH) group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)

View File

@ -7,16 +7,16 @@ CPPPATH = [cwd]
# The set of source files associated with this SConscript file. # The set of source files associated with this SConscript file.
if rtconfig.PLATFORM in ['armcc', 'armclang']: if rtconfig.PLATFORM in ['armcc', 'armclang']:
src = Glob('*.c') + Glob('*_rvds.S') src = Glob('*.c') + Glob('*_rvds.S')
if rtconfig.PLATFORM in ['gcc']: 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']: if rtconfig.PLATFORM in ['iccarm']:
src = Glob('*.c') + Glob('*_iar.S') src = Glob('*.c') + Glob('*_iar.S')
if rtconfig.PLATFORM in ['cl', 'mingw']: if rtconfig.PLATFORM in ['cl', 'mingw']:
src = Glob('*.c') src = Glob('*.c')
group = DefineGroup('Platform', src, depend = [''], CPPPATH = CPPPATH) group = DefineGroup('Platform', src, depend = [''], CPPPATH = CPPPATH)

View File

@ -9,7 +9,7 @@ config RTT_DIR
string string
option env="RTT_ROOT" option env="RTT_ROOT"
default "../.." default "../.."
# you can change the RTT_ROOT default "../.." to your rtthread_root, # you can change the RTT_ROOT default "../.." to your rtthread_root,
# example : default "F:/git_repositories/rt-thread" # example : default "F:/git_repositories/rt-thread"
@ -17,7 +17,7 @@ config PKGS_DIR
string string
option env="PKGS_ROOT" option env="PKGS_ROOT"
default "packages" default "packages"
config ENV_DIR config ENV_DIR
string string
option env="ENV_ROOT" option env="ENV_ROOT"

View File

@ -4,7 +4,7 @@ from building import *
src_bsp = ['application.c', 'startup.c', 'board.c'] src_bsp = ['application.c', 'startup.c', 'board.c']
src = File(src_bsp) src = File(src_bsp)
CPPPATH = [RTT_ROOT + '/bsp/avr32uc3b0'] CPPPATH = [RTT_ROOT + '/bsp/avr32uc3b0']
group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH) group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH)

View File

@ -1,7 +1,7 @@
import os import os
import sys import sys
import rtconfig import rtconfig
if os.getenv('RTT_ROOT'): if os.getenv('RTT_ROOT'):
RTT_ROOT = os.getenv('RTT_ROOT') RTT_ROOT = os.getenv('RTT_ROOT')
else: else:
@ -9,9 +9,9 @@ else:
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')] sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
from building import * from building import *
TARGET = 'rtthread-' + rtconfig.ARCH + '.' + rtconfig.TARGET_EXT TARGET = 'rtthread-' + rtconfig.ARCH + '.' + rtconfig.TARGET_EXT
DefaultEnvironment(tools=[]) DefaultEnvironment(tools=[])
env = Environment(tools = ['mingw'], env = Environment(tools = ['mingw'],
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
@ -19,15 +19,15 @@ env = Environment(tools = ['mingw'],
AR = rtconfig.AR, ARFLAGS = '-rc', AR = rtconfig.AR, ARFLAGS = '-rc',
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
Export('RTT_ROOT') Export('RTT_ROOT')
Export('rtconfig') Export('rtconfig')
# prepare building environment # prepare building environment
objs = PrepareBuilding(env, RTT_ROOT) objs = PrepareBuilding(env, RTT_ROOT)
# AVR32 software framework building script # AVR32 software framework building script
objs = objs + SConscript(RTT_ROOT + '/bsp/avr32uc3b0/SOFTWARE_FRAMEWORK/SConscript', variant_dir='bsp/SOFTWARE_FRAMEWORK', duplicate=0) objs = objs + SConscript(RTT_ROOT + '/bsp/avr32uc3b0/SOFTWARE_FRAMEWORK/SConscript', variant_dir='bsp/SOFTWARE_FRAMEWORK', duplicate=0)
# make a building # make a building
DoBuilding(TARGET, objs) DoBuilding(TARGET, objs)

View File

@ -9,7 +9,7 @@ config RTT_DIR
string string
option env="RTT_ROOT" option env="RTT_ROOT"
default "../.." default "../.."
# you can change the RTT_ROOT default "../.." to your rtthread_root, # you can change the RTT_ROOT default "../.." to your rtthread_root,
# example: default "F:/git_repositories/rt-thread" # example: default "F:/git_repositories/rt-thread"
@ -17,7 +17,7 @@ config PKGS_DIR
string string
option env="PKGS_ROOT" option env="PKGS_ROOT"
default "packages" default "packages"
config ENV_DIR config ENV_DIR
string string
option env="ENV_ROOT" option env="ENV_ROOT"
@ -27,7 +27,7 @@ source "$RTT_DIR/Kconfig"
source "$PKGS_DIR/Kconfig" source "$PKGS_DIR/Kconfig"
config SOC_AM335X config SOC_AM335X
bool bool
select RT_USING_CACHE select RT_USING_CACHE
select RT_USING_COMPONENTS_INIT select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN select RT_USING_USER_MAIN

View File

@ -14,11 +14,11 @@ TARGET = 'rtthread-beaglebone.' + rtconfig.TARGET_EXT
DefaultEnvironment(tools=[]) DefaultEnvironment(tools=[])
env = Environment(tools = ['mingw'], env = Environment(tools = ['mingw'],
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS,
CXX= rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, CXX= rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS,
AR = rtconfig.AR, ARFLAGS = '-rc', AR = rtconfig.AR, ARFLAGS = '-rc',
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
Export('RTT_ROOT') Export('RTT_ROOT')

View File

@ -4,7 +4,7 @@ Import('rtconfig')
from building import * from building import *
cwd = GetCurrentDir() cwd = GetCurrentDir()
src = Glob('*.c') src = Glob('*.c')
# remove no need file. # remove no need file.
if GetDepend('RT_USING_LWIP') == False: if GetDepend('RT_USING_LWIP') == False:

View File

@ -1,6 +1,6 @@
menu "BL808_M0 Hardware Drivers Config" menu "BL808_M0 Hardware Drivers Config"
config SOC_BL808 config SOC_BL808
bool bool
select RT_USING_COMPONENTS_INIT select RT_USING_COMPONENTS_INIT
select RT_USING_USER_MAIN select RT_USING_USER_MAIN
select ARCH_RISCV_FPU_S select ARCH_RISCV_FPU_S

View File

@ -14,7 +14,7 @@ if GetDepend(['RT_USING_SERIAL']):
src += ['drv_uart_v2.c'] src += ['drv_uart_v2.c']
else: else:
src += ['drv_uart.c'] src += ['drv_uart.c']
# if GetDepend('RT_USING_PIN'): # if GetDepend('RT_USING_PIN'):
# src += ['drv_gpio.c'] # src += ['drv_gpio.c']

View File

@ -5,89 +5,89 @@ cwd = GetCurrentDir()
# add general drivers # add general drivers
src = Split(''' src = Split('''
platform/soc/bl808/startup_bl808/evb/src/startup_interrupt.c 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/startup_bl606p.c
platform/soc/bl808/startup_bl808/evb/src/debug.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/start_load.c
platform/soc/bl808/startup_bl808/evb/src/boot/gcc/startup.S platform/soc/bl808/startup_bl808/evb/src/boot/gcc/startup.S
''') ''')
path = [cwd, 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/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/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/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/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/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/misc',
cwd + r'/platform/soc/bl808/bl808_e907_std/common/soft_crc'] cwd + r'/platform/soc/bl808/bl808_e907_std/common/soft_crc']
src += Split(""" src += Split("""
stage/blog/blog.c stage/blog/blog.c
utils/src/utils_log.c utils/src/utils_log.c
stage/blfdt/src/fdt.c stage/blfdt/src/fdt.c
stage/blfdt/src/fdt_ro.c stage/blfdt/src/fdt_ro.c
stage/blfdt/src/fdt_wip.c stage/blfdt/src/fdt_wip.c
stage/blfdt/src/fdt_sw.c stage/blfdt/src/fdt_sw.c
stage/blfdt/src/fdt_rw.c stage/blfdt/src/fdt_rw.c
stage/blfdt/src/fdt_strerror.c stage/blfdt/src/fdt_strerror.c
stage/blfdt/src/fdt_empty_tree.c stage/blfdt/src/fdt_empty_tree.c
stage/blfdt/src/fdt_addresses.c stage/blfdt/src/fdt_addresses.c
stage/blfdt/src/fdt_overlay.c stage/blfdt/src/fdt_overlay.c
""") """)
path += [cwd + r'/stage/blog', path += [cwd + r'/stage/blog',
cwd + r'/stage/blfdt/inc', cwd + r'/stage/blfdt/inc',
cwd + r'/utils/include' cwd + r'/utils/include'
] ]
# platform/hosal/bl808_e907_hal/bl_pm.c # platform/hosal/bl808_e907_hal/bl_pm.c
# platform/hosal/bl808_e907_hal/bl_sec.c # platform/hosal/bl808_e907_hal/bl_sec.c
# platform/hosal/bl808_e907_hal/bl_timer.c # platform/hosal/bl808_e907_hal/bl_timer.c
# platform/hosal/bl808_e907_hal/hal_board.c # platform/hosal/bl808_e907_hal/hal_board.c
# platform/hosal/bl808_e907_hal/hal_sdh.c # platform/hosal/bl808_e907_hal/hal_sdh.c
# platform/hosal/bl808_e907_hal/hosal_adc.c # platform/hosal/bl808_e907_hal/hosal_adc.c
# platform/hosal/bl808_e907_hal/hosal_dma.c # platform/hosal/bl808_e907_hal/hosal_dma.c
# platform/hosal/bl808_e907_hal/hosal_pwm.c # platform/hosal/bl808_e907_hal/hosal_pwm.c
# platform/hosal/bl808_e907_hal/hosal_spi.c # platform/hosal/bl808_e907_hal/hosal_spi.c
# platform/hosal/bl808_e907_hal/hosal_uart.c # platform/hosal/bl808_e907_hal/hosal_uart.c
# platform/hosal/bl808_e907_hal/hal_sdh.c # platform/hosal/bl808_e907_hal/hal_sdh.c
src += Split(""" src += Split("""
platform/hosal/bl808_e907_hal/bl_uart.c platform/hosal/bl808_e907_hal/bl_uart.c
platform/hosal/bl808_e907_hal/bl_irq.c platform/hosal/bl808_e907_hal/bl_irq.c
platform/hosal/bl808_e907_hal/bl_chip.c platform/hosal/bl808_e907_hal/bl_chip.c
platform/hosal/bl808_e907_hal/bl_flash.c platform/hosal/bl808_e907_hal/bl_flash.c
platform/hosal/bl808_e907_hal/bl_wifi.c platform/hosal/bl808_e907_hal/bl_wifi.c
platform/hosal/bl808_e907_hal/bl_efuse.c platform/hosal/bl808_e907_hal/bl_efuse.c
platform/hosal/bl808_e907_hal/bl_sys.c platform/hosal/bl808_e907_hal/bl_sys.c
platform/hosal/bl808_e907_hal/bl_boot2.c platform/hosal/bl808_e907_hal/bl_boot2.c
platform/hosal/bl808_e907_hal/bl_ipc.c platform/hosal/bl808_e907_hal/bl_ipc.c
platform/hosal/bl808_e907_hal/bl_cam.c platform/hosal/bl808_e907_hal/bl_cam.c
platform/hosal/bl808_e907_hal/bl_audio.c platform/hosal/bl808_e907_hal/bl_audio.c
platform/hosal/bl808_e907_hal/bl_sdh.c platform/hosal/bl808_e907_hal/bl_sdh.c
platform/hosal/bl808_e907_hal/hal_boot2.c platform/hosal/bl808_e907_hal/hal_boot2.c
platform/hosal/bl808_e907_hal/hal_sys.c platform/hosal/bl808_e907_hal/hal_sys.c
platform/hosal/bl808_e907_hal/bl_psram.c platform/hosal/bl808_e907_hal/bl_psram.c
platform/hosal/bl808_e907_hal/bl_mm_clock.c platform/hosal/bl808_e907_hal/bl_mm_clock.c
platform/hosal/bl808_e907_hal/hal_board.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/misc/misc.c
platform/soc/bl808/bl808_e907_std/common/soft_crc/softcrc.c platform/soc/bl808/bl808_e907_std/common/soft_crc/softcrc.c
""") """)
src += Split(""" 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_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_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_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.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_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_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_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_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_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_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_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_sf_ctrl.c
""") """)
path += [cwd + r'/platform/hosal/bl808_e907_hal'] path += [cwd + r'/platform/hosal/bl808_e907_hal']

View File

@ -195,7 +195,7 @@ menu "On-chip Peripheral Drivers"
config BSP_USING_TIM4 config BSP_USING_TIM4
bool "Enable TIM4" bool "Enable TIM4"
default n default n
config BSP_USING_TIM5 config BSP_USING_TIM5
bool "Enable TIM5" bool "Enable TIM5"
default n default n

View File

@ -1,7 +1,7 @@
#-*- encoding: utf-8 -*- #-*- encoding: utf-8 -*-
import os import os
from building import * from building import *
Import('RTT_ROOT') Import('RTT_ROOT')
Import('rtconfig') Import('rtconfig')
@ -13,24 +13,24 @@ VERSION = "v1.0.0"
DEPENDS = [""] DEPENDS = [""]
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# Compile the configuration # Compile the configuration
# #
# SOURCES: Need to compile c and c++ source, auto search when SOURCES is empty # SOURCES: Need to compile c and c++ source, auto search when SOURCES is empty
# #
# LOCAL_CPPPATH: Local file path (.h/.c/.cpp) # LOCAL_CPPPATH: Local file path (.h/.c/.cpp)
# LOCAL_CFLAGS: Local c compilation parameter # LOCAL_CFLAGS: Local c compilation parameter
# LOCAL_CCFLAGS: Local c/c++ compilation parameter # LOCAL_CCFLAGS: Local c/c++ compilation parameter
# LOCAL_CXXFLAGS: Local c++ compilation parameter # LOCAL_CXXFLAGS: Local c++ compilation parameter
# LOCAL_ASFLAGS: Local assembly parameters # 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!!! # is empty # no pass!!!
# CFLAGS : Global compilation parameter # CFLAGS : Global compilation parameter
# ASFLAGS: Global assembly parameters # ASFLAGS: Global assembly parameters
# #
# CPPDEFINES: Global macro definition # CPPDEFINES: Global macro definition
# LOCAL_CPPDEFINES: Local macro definition # LOCAL_CPPDEFINES: Local macro definition
# #
# LIBS: Specify the static library that need to be linked # LIBS: Specify the static library that need to be linked
# LIBPATH: Specify the search directory for the library file (.lib/.a) # LIBPATH: Specify the search directory for the library file (.lib/.a)
# #
@ -45,7 +45,7 @@ LOCAL_CCFLAGS = ""
LOCAL_CXXFLAGS = "" LOCAL_CXXFLAGS = ""
LOCAL_ASFLAGS = "" LOCAL_ASFLAGS = ""
CPPPATH = [GetCurrentDir(), os.path.join(GetCurrentDir(), 'include')] CPPPATH = [GetCurrentDir(), os.path.join(GetCurrentDir(), 'include')]
CFLAGS = "" CFLAGS = ""
CCFLAGS = "" CCFLAGS = ""
CXXFLAGS = "" CXXFLAGS = ""
@ -54,10 +54,10 @@ ASFLAGS = ""
CPPDEFINES = [] CPPDEFINES = []
LOCAL_CPPDEFINES = [] LOCAL_CPPDEFINES = []
LIBS = [] LIBS = []
LIBPATH = [] LIBPATH = []
LINKFLAGS = "" LINKFLAGS = ""
SOURCES_IGNORE = [] SOURCES_IGNORE = []
CPPPATH_IGNORE = [] CPPPATH_IGNORE = []
@ -65,24 +65,24 @@ CPPPATH_IGNORE = []
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# Main target # Main target
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
objs = DefineGroup(name = PKGNAME, src = SOURCES, depend = DEPENDS, objs = DefineGroup(name = PKGNAME, src = SOURCES, depend = DEPENDS,
CPPPATH = CPPPATH, CPPPATH = CPPPATH,
CFLAGS = CFLAGS, CFLAGS = CFLAGS,
CCFLAGS = CCFLAGS, CCFLAGS = CCFLAGS,
CXXFLAGS = CXXFLAGS, CXXFLAGS = CXXFLAGS,
ASFLAGS = ASFLAGS, ASFLAGS = ASFLAGS,
LOCAL_CPPPATH = LOCAL_CPPPATH, LOCAL_CPPPATH = LOCAL_CPPPATH,
LOCAL_CFLAGS = LOCAL_CFLAGS, LOCAL_CFLAGS = LOCAL_CFLAGS,
LOCAL_CCFLAGS = LOCAL_CCFLAGS, LOCAL_CCFLAGS = LOCAL_CCFLAGS,
LOCAL_CXXFLAGS = LOCAL_CXXFLAGS, LOCAL_CXXFLAGS = LOCAL_CXXFLAGS,
LOCAL_ASFLAGS = LOCAL_ASFLAGS, LOCAL_ASFLAGS = LOCAL_ASFLAGS,
CPPDEFINES = CPPDEFINES, CPPDEFINES = CPPDEFINES,
LOCAL_CPPDEFINES = LOCAL_CPPDEFINES, LOCAL_CPPDEFINES = LOCAL_CPPDEFINES,
LIBS = LIBS, LIBS = LIBS,
LIBPATH = LIBPATH, LIBPATH = LIBPATH,
LINKFLAGS = LINKFLAGS) LINKFLAGS = LINKFLAGS)
Return("objs") Return("objs")
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# End # End
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
#-*- encoding: utf-8 -*- #-*- encoding: utf-8 -*-
import os import os
from building import * from building import *
Import('RTT_ROOT') Import('RTT_ROOT')
Import('rtconfig') Import('rtconfig')
@ -14,24 +14,24 @@ DEPENDS = [""]
#DEPENDS = ["PKG_USING_RW007"] #DEPENDS = ["PKG_USING_RW007"]
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# Compile the configuration # Compile the configuration
# #
# SOURCES: Need to compile c and c++ source, auto search when SOURCES is empty # SOURCES: Need to compile c and c++ source, auto search when SOURCES is empty
# #
# LOCAL_CPPPATH: Local file path (.h/.c/.cpp) # LOCAL_CPPPATH: Local file path (.h/.c/.cpp)
# LOCAL_CFLAGS: Local c compilation parameter # LOCAL_CFLAGS: Local c compilation parameter
# LOCAL_CCFLAGS: Local c/c++ compilation parameter # LOCAL_CCFLAGS: Local c/c++ compilation parameter
# LOCAL_CXXFLAGS: Local c++ compilation parameter # LOCAL_CXXFLAGS: Local c++ compilation parameter
# LOCAL_ASFLAGS: Local assembly parameters # 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!!! # is empty # no pass!!!
# CFLAGS : Global compilation parameter # CFLAGS : Global compilation parameter
# ASFLAGS: Global assembly parameters # ASFLAGS: Global assembly parameters
# #
# CPPDEFINES: Global macro definition # CPPDEFINES: Global macro definition
# LOCAL_CPPDEFINES: Local macro definition # LOCAL_CPPDEFINES: Local macro definition
# #
# LIBS: Specify the static library that need to be linked # LIBS: Specify the static library that need to be linked
# LIBPATH: Specify the search directory for the library file (.lib/.a) # LIBPATH: Specify the search directory for the library file (.lib/.a)
# #
@ -46,7 +46,7 @@ LOCAL_CCFLAGS = ""
LOCAL_CXXFLAGS = "" LOCAL_CXXFLAGS = ""
LOCAL_ASFLAGS = "" LOCAL_ASFLAGS = ""
CPPPATH = [GetCurrentDir(), os.path.join(GetCurrentDir(), 'include')] CPPPATH = [GetCurrentDir(), os.path.join(GetCurrentDir(), 'include')]
CFLAGS = "" CFLAGS = ""
CCFLAGS = "" CCFLAGS = ""
CXXFLAGS = "" CXXFLAGS = ""
@ -55,10 +55,10 @@ ASFLAGS = ""
CPPDEFINES = [] CPPDEFINES = []
LOCAL_CPPDEFINES = [] LOCAL_CPPDEFINES = []
LIBS = [] LIBS = []
LIBPATH = [] LIBPATH = []
LINKFLAGS = "" LINKFLAGS = ""
SOURCES_IGNORE = [] SOURCES_IGNORE = []
CPPPATH_IGNORE = [] CPPPATH_IGNORE = []
@ -66,24 +66,24 @@ CPPPATH_IGNORE = []
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# Main target # Main target
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
objs = DefineGroup(name = PKGNAME, src = SOURCES, depend = DEPENDS, objs = DefineGroup(name = PKGNAME, src = SOURCES, depend = DEPENDS,
CPPPATH = CPPPATH, CPPPATH = CPPPATH,
CFLAGS = CFLAGS, CFLAGS = CFLAGS,
CCFLAGS = CCFLAGS, CCFLAGS = CCFLAGS,
CXXFLAGS = CXXFLAGS, CXXFLAGS = CXXFLAGS,
ASFLAGS = ASFLAGS, ASFLAGS = ASFLAGS,
LOCAL_CPPPATH = LOCAL_CPPPATH, LOCAL_CPPPATH = LOCAL_CPPPATH,
LOCAL_CFLAGS = LOCAL_CFLAGS, LOCAL_CFLAGS = LOCAL_CFLAGS,
LOCAL_CCFLAGS = LOCAL_CCFLAGS, LOCAL_CCFLAGS = LOCAL_CCFLAGS,
LOCAL_CXXFLAGS = LOCAL_CXXFLAGS, LOCAL_CXXFLAGS = LOCAL_CXXFLAGS,
LOCAL_ASFLAGS = LOCAL_ASFLAGS, LOCAL_ASFLAGS = LOCAL_ASFLAGS,
CPPDEFINES = CPPDEFINES, CPPDEFINES = CPPDEFINES,
LOCAL_CPPDEFINES = LOCAL_CPPDEFINES, LOCAL_CPPDEFINES = LOCAL_CPPDEFINES,
LIBS = LIBS, LIBS = LIBS,
LIBPATH = LIBPATH, LIBPATH = LIBPATH,
LINKFLAGS = LINKFLAGS) LINKFLAGS = LINKFLAGS)
Return("objs") Return("objs")
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# End # End
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------

View File

@ -9,7 +9,7 @@ config RTT_DIR
string string
option env="RTT_ROOT" option env="RTT_ROOT"
default "../.." default "../.."
# you can change the RTT_ROOT default "../.." to your rtthread_root, # you can change the RTT_ROOT default "../.." to your rtthread_root,
# example: default "F:/git_repositories/rt-thread" # example: default "F:/git_repositories/rt-thread"
@ -17,7 +17,7 @@ config PKGS_DIR
string string
option env="PKGS_ROOT" option env="PKGS_ROOT"
default "packages" default "packages"
config ENV_DIR config ENV_DIR
string string
option env="ENV_ROOT" option env="ENV_ROOT"

View File

@ -14,11 +14,11 @@ TARGET = 'rtthread-bm3803.' + rtconfig.TARGET_EXT
DefaultEnvironment(tools=[]) DefaultEnvironment(tools=[])
env = Environment(tools = ['mingw'], env = Environment(tools = ['mingw'],
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS, AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS, CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS,
CXX= rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS, CXX= rtconfig.CXX, CXXFLAGS = rtconfig.CFLAGS,
AR = rtconfig.AR, ARFLAGS = '-rc', AR = rtconfig.AR, ARFLAGS = '-rc',
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS) LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
env.PrependENVPath('PATH', rtconfig.EXEC_PATH) env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
Export('RTT_ROOT') Export('RTT_ROOT')

Some files were not shown because too many files have changed in this diff Show More