format Kconfig and sconscript
This commit is contained in:
parent
f4b285dc9c
commit
9bc68d26a4
@ -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')
|
||||||
|
@ -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:
|
||||||
|
@ -59,7 +59,7 @@ menu "On-chip Peripheral Drivers"
|
|||||||
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
|
||||||
|
@ -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]
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ import os
|
|||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
|
|
||||||
CPPPATH = []
|
CPPPATH = []
|
||||||
|
|
||||||
|
@ -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')
|
||||||
|
@ -35,7 +35,7 @@ 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
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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.
|
||||||
|
@ -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.
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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"
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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')
|
||||||
|
@ -38,7 +38,7 @@ config 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
|
||||||
|
@ -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')
|
||||||
|
@ -46,8 +46,8 @@ config 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
|
||||||
|
|
||||||
|
@ -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')
|
||||||
|
@ -12,16 +12,16 @@ 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']
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
@ -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')
|
||||||
|
@ -12,16 +12,16 @@ 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]
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
@ -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')
|
||||||
|
@ -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:
|
||||||
|
@ -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']
|
||||||
|
@ -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')
|
||||||
|
@ -4,7 +4,7 @@ Import('rtconfig')
|
|||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ if GetDepend('SOC_RISCV_FAMILY_Core_V'):
|
|||||||
src += ['source/drv_usart.c']
|
src += ['source/drv_usart.c']
|
||||||
|
|
||||||
path = [
|
path = [
|
||||||
cwd + '/include']
|
cwd + '/include']
|
||||||
|
|
||||||
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ core_v_udma_driver/source/udma_sdio_driver.c
|
|||||||
""")
|
""")
|
||||||
|
|
||||||
path = [
|
path = [
|
||||||
cwd + '/bmsis/core-v-mcu/include',
|
cwd + '/bmsis/core-v-mcu/include',
|
||||||
cwd + '/core_v_hal/include',
|
cwd + '/core_v_hal/include',
|
||||||
cwd + '/core_v_udma_driver/include']
|
cwd + '/core_v_udma_driver/include']
|
||||||
|
|
||||||
|
@ -14,10 +14,10 @@ TARGET = 'rtthread-dm365.' + 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')
|
||||||
|
@ -12,19 +12,19 @@ davinci_serial.c
|
|||||||
""")
|
""")
|
||||||
|
|
||||||
if GetDepend('RT_USING_GPIO_DEVICE'):
|
if GetDepend('RT_USING_GPIO_DEVICE'):
|
||||||
src += ['gpio.c']
|
src += ['gpio.c']
|
||||||
|
|
||||||
if GetDepend('RT_USING_I2C_CONTROL'):
|
if GetDepend('RT_USING_I2C_CONTROL'):
|
||||||
src += ['i2c-davinci.c']
|
src += ['i2c-davinci.c']
|
||||||
|
|
||||||
if GetDepend('RT_USING_SDIO_CONTROL'):
|
if GetDepend('RT_USING_SDIO_CONTROL'):
|
||||||
src += ['mmcsd.c']
|
src += ['mmcsd.c']
|
||||||
|
|
||||||
if GetDepend('RT_USING_SPI_CONTROL'):
|
if GetDepend('RT_USING_SPI_CONTROL'):
|
||||||
src += ['spi-davinci.c']
|
src += ['spi-davinci.c']
|
||||||
|
|
||||||
if GetDepend('RT_USING_EMAC'):
|
if GetDepend('RT_USING_EMAC'):
|
||||||
src += ['davinci_emac.c']
|
src += ['davinci_emac.c']
|
||||||
|
|
||||||
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
|
||||||
|
|
||||||
|
@ -14,10 +14,10 @@ TARGET = 'rtthread-efm32.' + 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')
|
||||||
|
@ -14,16 +14,16 @@ TARGET = 'rtthread-k64f.' + 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')
|
||||||
|
@ -14,11 +14,11 @@ TARGET = 'ft2004.' + 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)
|
||||||
env['ASCOM'] = env['ASPPCOM']
|
env['ASCOM'] = env['ASPPCOM']
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ Import('rtconfig')
|
|||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
@ -3,7 +3,7 @@ from building import *
|
|||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('*.S')
|
src = Glob('*.S')
|
||||||
src += Glob('*.c')
|
src += Glob('*.c')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
'''
|
'''
|
||||||
: Copyright (c) 2020 Phytium Information Technology, Inc.
|
: Copyright (c) 2020 Phytium Information Technology, Inc.
|
||||||
|
|
||||||
SPDX-License-Identifier: Apache-2.0.
|
SPDX-License-Identifier: Apache-2.0.
|
||||||
|
|
||||||
Date: 2021-05-24 14:30:13
|
Date: 2021-05-24 14:30:13
|
||||||
LastEditTime: 2021-05-26 14:58:34
|
LastEditTime: 2021-05-26 14:58:34
|
||||||
Description: This files is for
|
Description: This files is for
|
||||||
|
|
||||||
Modify History:
|
Modify History:
|
||||||
Ver Who Date Changes
|
Ver Who Date Changes
|
||||||
|
@ -6,7 +6,7 @@ src_bsp = ['application.c', 'startup.c', 'board.c', 'led.c', 'cpuusage.c']
|
|||||||
src_drv = ['adc.c', 'lcd.c', 'key.c']
|
src_drv = ['adc.c', 'lcd.c', 'key.c']
|
||||||
|
|
||||||
if GetDepend('RT_USING_RTGUI'):
|
if GetDepend('RT_USING_RTGUI'):
|
||||||
src_drv += ['info.c']
|
src_drv += ['info.c']
|
||||||
|
|
||||||
src = src_bsp + src_drv
|
src = src_bsp + src_drv
|
||||||
CPPPATH = [GetCurrentDir()]
|
CPPPATH = [GetCurrentDir()]
|
||||||
|
@ -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)
|
||||||
|
|
||||||
if rtconfig.PLATFORM in ['iccarm']:
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
|
@ -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)
|
||||||
|
|
||||||
if rtconfig.PLATFORM in ['iccarm']:
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
|
@ -14,17 +14,17 @@ TARGET = 'rtthread-fm4.' + 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.CXXFLAGS,
|
CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS,
|
||||||
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')
|
||||||
|
@ -3,7 +3,7 @@ Import('rtconfig')
|
|||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
cwd = os.path.join(str(Dir('#')), 'drivers')
|
cwd = os.path.join(str(Dir('#')), 'drivers')
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
@ -9,11 +9,11 @@ CPPPATH = [cwd + '/Include', cwd + '/DeviceSupport/fujitsu/mb9bf61x/']
|
|||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM in ['gcc']:
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['DeviceSupport/fujitsu/mb9bf61x/startup/gcc/startup_mb9bf61x.c']
|
src += ['DeviceSupport/fujitsu/mb9bf61x/startup/gcc/startup_mb9bf61x.c']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['DeviceSupport/fujitsu/mb9bf61x/startup/arm/startup_mb9bf61x.S']
|
src += ['DeviceSupport/fujitsu/mb9bf61x/startup/arm/startup_mb9bf61x.S']
|
||||||
elif rtconfig.PLATFORM in ['iccarm']:
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += ['DeviceSupport/fujitsu/mb9bf61x/startup/iar/startup_mb9bf61x.S']
|
src += ['DeviceSupport/fujitsu/mb9bf61x/startup/iar/startup_mb9bf61x.S']
|
||||||
|
|
||||||
CPPDEFINES = [rtconfig.FM3_TYPE]
|
CPPDEFINES = [rtconfig.FM3_TYPE]
|
||||||
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
||||||
|
@ -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)
|
||||||
|
|
||||||
if rtconfig.PLATFORM in ['iccarm']:
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
|
@ -3,7 +3,7 @@ Import('rtconfig')
|
|||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
cwd = os.path.join(str(Dir('#')), 'drivers')
|
cwd = os.path.join(str(Dir('#')), 'drivers')
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
@ -78,7 +78,7 @@ menu "On-chip Peripheral Drivers"
|
|||||||
default n
|
default n
|
||||||
endif
|
endif
|
||||||
|
|
||||||
menuconfig BSP_USING_ADC
|
menuconfig BSP_USING_ADC
|
||||||
bool "Enable ADC"
|
bool "Enable ADC"
|
||||||
default n
|
default n
|
||||||
select RT_USING_ADC
|
select RT_USING_ADC
|
||||||
@ -99,10 +99,10 @@ menu "On-chip Peripheral Drivers"
|
|||||||
config BSP_USING_SPI0
|
config BSP_USING_SPI0
|
||||||
bool "Enable SPI0 BUS"
|
bool "Enable SPI0 BUS"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_SPI1
|
config BSP_USING_SPI1
|
||||||
bool "Enable SPI1 BUS"
|
bool "Enable SPI1 BUS"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_SPI2
|
config BSP_USING_SPI2
|
||||||
bool "Enable SPI2 BUS"
|
bool "Enable SPI2 BUS"
|
||||||
default n
|
default n
|
||||||
endif
|
endif
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
@ -22,16 +22,16 @@ TARGET = 'hc32L136.' + 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 = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
||||||
Export('RTT_ROOT')
|
Export('RTT_ROOT')
|
||||||
Export('rtconfig')
|
Export('rtconfig')
|
||||||
|
@ -21,17 +21,17 @@ TARGET = 'rt-thread.' + 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',
|
||||||
CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS,
|
CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS,
|
||||||
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 = env["LINKCOM"] + ' --map rt-thread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rt-thread.map')
|
||||||
|
|
||||||
Export('RTT_ROOT')
|
Export('RTT_ROOT')
|
||||||
Export('rtconfig')
|
Export('rtconfig')
|
||||||
|
@ -22,7 +22,7 @@ menu "On-chip Peripheral Drivers"
|
|||||||
default y
|
default y
|
||||||
select RT_USING_SERIAL
|
select RT_USING_SERIAL
|
||||||
if BSP_USING_UART
|
if BSP_USING_UART
|
||||||
config BSP_USING_UART0
|
config BSP_USING_UART0
|
||||||
bool "Enable UART0"
|
bool "Enable UART0"
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
@ -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)
|
||||||
env['ASCOM'] = env['ASPPCOM']
|
env['ASCOM'] = env['ASPPCOM']
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ from building import *
|
|||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = [ 'bsp/drivers/plic/plic_driver.c',
|
src = [ 'bsp/drivers/plic/plic_driver.c',
|
||||||
'bsp/env/start.S',
|
'bsp/env/start.S',
|
||||||
'bsp/env/freedom-e300-hifive1/init.c']
|
'bsp/env/freedom-e300-hifive1/init.c']
|
||||||
|
|
||||||
CPPPATH = [ cwd + '/bsp/drivers', cwd + '/bsp/drivers/fe300prci', cwd + '/bsp/drivers/plic',
|
CPPPATH = [ cwd + '/bsp/drivers', cwd + '/bsp/drivers/fe300prci', cwd + '/bsp/drivers/plic',
|
||||||
cwd + '/bsp/env', cwd + '/bsp/env/freedom-e300-hifive1',
|
cwd + '/bsp/env', cwd + '/bsp/env/freedom-e300-hifive1',
|
||||||
|
@ -201,14 +201,14 @@ menu "On-chip Peripheral Drivers"
|
|||||||
|
|
||||||
select RT_USING_ETH
|
select RT_USING_ETH
|
||||||
if BSP_USING_ETH
|
if BSP_USING_ETH
|
||||||
choice
|
choice
|
||||||
prompt "ETH"
|
prompt "ETH"
|
||||||
config BSP_USING_ETH0
|
config BSP_USING_ETH0
|
||||||
bool "Enable ETH0"
|
bool "Enable ETH0"
|
||||||
|
|
||||||
config BSP_USING_ETH1
|
config BSP_USING_ETH1
|
||||||
bool "Enable ETH1"
|
bool "Enable ETH1"
|
||||||
endchoice
|
endchoice
|
||||||
endif
|
endif
|
||||||
|
|
||||||
menuconfig BSP_USING_SDXC
|
menuconfig BSP_USING_SDXC
|
||||||
@ -239,8 +239,8 @@ menu "On-chip Peripheral Drivers"
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
menuconfig BSP_USING_LCD
|
menuconfig BSP_USING_LCD
|
||||||
bool "Enable LCD"
|
bool "Enable LCD"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
menuconfig BSP_USING_LVGL
|
menuconfig BSP_USING_LVGL
|
||||||
bool "Enable LVGL"
|
bool "Enable LVGL"
|
||||||
@ -248,31 +248,31 @@ menu "On-chip Peripheral Drivers"
|
|||||||
select PKG_USING_LVGL if BSP_USING_LVGL
|
select PKG_USING_LVGL if BSP_USING_LVGL
|
||||||
|
|
||||||
menuconfig BSP_USING_GPTMR
|
menuconfig BSP_USING_GPTMR
|
||||||
bool "Enable GPTMR"
|
bool "Enable GPTMR"
|
||||||
default n
|
default n
|
||||||
select RT_USING_HWTIMER if BSP_USING_GPTMR
|
select RT_USING_HWTIMER if BSP_USING_GPTMR
|
||||||
if BSP_USING_GPTMR
|
if BSP_USING_GPTMR
|
||||||
config BSP_USING_GPTMR1
|
config BSP_USING_GPTMR1
|
||||||
bool "Enable GPTMR1"
|
bool "Enable GPTMR1"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_GPTMR2
|
config BSP_USING_GPTMR2
|
||||||
bool "Enable GPTMR2"
|
bool "Enable GPTMR2"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_GPTMR3
|
config BSP_USING_GPTMR3
|
||||||
bool "Enable GPTMR3"
|
bool "Enable GPTMR3"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_GPTMR4
|
config BSP_USING_GPTMR4
|
||||||
bool "Enable GPTMR4"
|
bool "Enable GPTMR4"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_GPTMR5
|
config BSP_USING_GPTMR5
|
||||||
bool "Enable GPTMR5"
|
bool "Enable GPTMR5"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_GPTMR6
|
config BSP_USING_GPTMR6
|
||||||
bool "Enable GPTMR6"
|
bool "Enable GPTMR6"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_GPTMR7
|
config BSP_USING_GPTMR7
|
||||||
bool "Enable GPTMR7"
|
bool "Enable GPTMR7"
|
||||||
default n
|
default n
|
||||||
endif
|
endif
|
||||||
|
|
||||||
menuconfig BSP_USING_I2C
|
menuconfig BSP_USING_I2C
|
||||||
@ -294,13 +294,13 @@ menu "On-chip Peripheral Drivers"
|
|||||||
|
|
||||||
|
|
||||||
menuconfig BSP_USING_XPI_FLASH
|
menuconfig BSP_USING_XPI_FLASH
|
||||||
bool "Enable XPI FLASH"
|
bool "Enable XPI FLASH"
|
||||||
default n
|
default n
|
||||||
select PKG_USING_FAL if BSP_USING_XPI_FLASH
|
select PKG_USING_FAL if BSP_USING_XPI_FLASH
|
||||||
|
|
||||||
menuconfig BSP_USING_PWM
|
menuconfig BSP_USING_PWM
|
||||||
bool "Enable PWM"
|
bool "Enable PWM"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
menuconfig BSP_USING_DAO
|
menuconfig BSP_USING_DAO
|
||||||
bool "Enable Audio DAO play"
|
bool "Enable Audio DAO play"
|
||||||
@ -326,7 +326,7 @@ menu "On-chip Peripheral Drivers"
|
|||||||
bool "Enable USB"
|
bool "Enable USB"
|
||||||
default n
|
default n
|
||||||
if BSP_USING_USB
|
if BSP_USING_USB
|
||||||
config BSP_USING_USB_DEVICE
|
config BSP_USING_USB_DEVICE
|
||||||
bool "Enable USB Device"
|
bool "Enable USB Device"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_USB_HOST
|
config BSP_USING_USB_HOST
|
||||||
@ -336,41 +336,41 @@ menu "On-chip Peripheral Drivers"
|
|||||||
|
|
||||||
|
|
||||||
menuconfig BSP_USING_WDG
|
menuconfig BSP_USING_WDG
|
||||||
bool "Enable Watchdog"
|
bool "Enable Watchdog"
|
||||||
default n
|
default n
|
||||||
select RT_USING_WDT if BSP_USING_WDG
|
select RT_USING_WDT if BSP_USING_WDG
|
||||||
if BSP_USING_WDG
|
if BSP_USING_WDG
|
||||||
config BSP_USING_WDG0
|
config BSP_USING_WDG0
|
||||||
bool "Enable WDG0"
|
bool "Enable WDG0"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_WDG1
|
config BSP_USING_WDG1
|
||||||
bool "Enable WDG1"
|
bool "Enable WDG1"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_WDG2
|
config BSP_USING_WDG2
|
||||||
bool "Enable WDG2"
|
bool "Enable WDG2"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_WDG3
|
config BSP_USING_WDG3
|
||||||
bool "Enable WDG3"
|
bool "Enable WDG3"
|
||||||
default n
|
default n
|
||||||
endif
|
endif
|
||||||
|
|
||||||
menuconfig BSP_USING_CAN
|
menuconfig BSP_USING_CAN
|
||||||
bool "Enable CAN"
|
bool "Enable CAN"
|
||||||
default n
|
default n
|
||||||
select RT_USING_CAN if BSP_USING_CAN
|
select RT_USING_CAN if BSP_USING_CAN
|
||||||
if BSP_USING_CAN
|
if BSP_USING_CAN
|
||||||
config BSP_USING_CAN0
|
config BSP_USING_CAN0
|
||||||
bool "Enable CAN0"
|
bool "Enable CAN0"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_CAN1
|
config BSP_USING_CAN1
|
||||||
bool "Enable CAN1"
|
bool "Enable CAN1"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_CAN2
|
config BSP_USING_CAN2
|
||||||
bool "Enable CAN2"
|
bool "Enable CAN2"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_CAN3
|
config BSP_USING_CAN3
|
||||||
bool "Enable CAN3"
|
bool "Enable CAN3"
|
||||||
default n
|
default n
|
||||||
endif
|
endif
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
@ -14,15 +14,15 @@ menu "On-chip Peripheral Drivers"
|
|||||||
default n
|
default n
|
||||||
|
|
||||||
config RW007_USING_BLE
|
config RW007_USING_BLE
|
||||||
bool "Enable RW007 BLE"
|
bool "Enable RW007 BLE"
|
||||||
default n
|
default n
|
||||||
select RT_USING_SPI if RW007_USING_BLE
|
select RT_USING_SPI if RW007_USING_BLE
|
||||||
select BSP_USING_SPI1 if RW007_USING_BLE
|
select BSP_USING_SPI1 if RW007_USING_BLE
|
||||||
|
|
||||||
config RW007_USING_WIFI
|
config RW007_USING_WIFI
|
||||||
bool "Enable RW007 WIFI"
|
bool "Enable RW007 WIFI"
|
||||||
select RT_USING_SPI if RW007_USING_BLE
|
select RT_USING_SPI if RW007_USING_BLE
|
||||||
select BSP_USING_SPI1 if RW007_USING_BLE
|
select BSP_USING_SPI1 if RW007_USING_BLE
|
||||||
|
|
||||||
menuconfig BSP_USING_UART
|
menuconfig BSP_USING_UART
|
||||||
bool "Enable UART"
|
bool "Enable UART"
|
||||||
@ -244,8 +244,8 @@ menu "On-chip Peripheral Drivers"
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
menuconfig BSP_USING_LCD
|
menuconfig BSP_USING_LCD
|
||||||
bool "Enable LCD"
|
bool "Enable LCD"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
menuconfig BSP_USING_LVGL
|
menuconfig BSP_USING_LVGL
|
||||||
bool "Enable LVGL"
|
bool "Enable LVGL"
|
||||||
@ -253,31 +253,31 @@ menu "On-chip Peripheral Drivers"
|
|||||||
select PKG_USING_LVGL if BSP_USING_LVGL
|
select PKG_USING_LVGL if BSP_USING_LVGL
|
||||||
|
|
||||||
menuconfig BSP_USING_GPTMR
|
menuconfig BSP_USING_GPTMR
|
||||||
bool "Enable GPTMR"
|
bool "Enable GPTMR"
|
||||||
default n
|
default n
|
||||||
select RT_USING_HWTIMER if BSP_USING_GPTMR
|
select RT_USING_HWTIMER if BSP_USING_GPTMR
|
||||||
if BSP_USING_GPTMR
|
if BSP_USING_GPTMR
|
||||||
config BSP_USING_GPTMR1
|
config BSP_USING_GPTMR1
|
||||||
bool "Enable GPTMR1"
|
bool "Enable GPTMR1"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_GPTMR2
|
config BSP_USING_GPTMR2
|
||||||
bool "Enable GPTMR2"
|
bool "Enable GPTMR2"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_GPTMR3
|
config BSP_USING_GPTMR3
|
||||||
bool "Enable GPTMR3"
|
bool "Enable GPTMR3"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_GPTMR4
|
config BSP_USING_GPTMR4
|
||||||
bool "Enable GPTMR4"
|
bool "Enable GPTMR4"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_GPTMR5
|
config BSP_USING_GPTMR5
|
||||||
bool "Enable GPTMR5"
|
bool "Enable GPTMR5"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_GPTMR6
|
config BSP_USING_GPTMR6
|
||||||
bool "Enable GPTMR6"
|
bool "Enable GPTMR6"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_GPTMR7
|
config BSP_USING_GPTMR7
|
||||||
bool "Enable GPTMR7"
|
bool "Enable GPTMR7"
|
||||||
default n
|
default n
|
||||||
endif
|
endif
|
||||||
menuconfig BSP_USING_I2C
|
menuconfig BSP_USING_I2C
|
||||||
bool "Enable I2C"
|
bool "Enable I2C"
|
||||||
@ -301,13 +301,13 @@ menu "On-chip Peripheral Drivers"
|
|||||||
|
|
||||||
|
|
||||||
menuconfig BSP_USING_XPI_FLASH
|
menuconfig BSP_USING_XPI_FLASH
|
||||||
bool "Enable XPI FLASH"
|
bool "Enable XPI FLASH"
|
||||||
default n
|
default n
|
||||||
select PKG_USING_FAL if BSP_USING_XPI_FLASH
|
select PKG_USING_FAL if BSP_USING_XPI_FLASH
|
||||||
|
|
||||||
menuconfig BSP_USING_PWM
|
menuconfig BSP_USING_PWM
|
||||||
bool "Enable PWM"
|
bool "Enable PWM"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
menuconfig BSP_USING_DAO
|
menuconfig BSP_USING_DAO
|
||||||
bool "Enable Audio DAO play"
|
bool "Enable Audio DAO play"
|
||||||
@ -333,7 +333,7 @@ menu "On-chip Peripheral Drivers"
|
|||||||
bool "Enable USB"
|
bool "Enable USB"
|
||||||
default n
|
default n
|
||||||
if BSP_USING_USB
|
if BSP_USING_USB
|
||||||
config BSP_USING_USB_DEVICE
|
config BSP_USING_USB_DEVICE
|
||||||
bool "Enable USB Device"
|
bool "Enable USB Device"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_USB_HOST
|
config BSP_USING_USB_HOST
|
||||||
@ -343,72 +343,72 @@ menu "On-chip Peripheral Drivers"
|
|||||||
|
|
||||||
|
|
||||||
menuconfig BSP_USING_WDG
|
menuconfig BSP_USING_WDG
|
||||||
bool "Enable Watchdog"
|
bool "Enable Watchdog"
|
||||||
default n
|
default n
|
||||||
select RT_USING_WDT if BSP_USING_WDG
|
select RT_USING_WDT if BSP_USING_WDG
|
||||||
if BSP_USING_WDG
|
if BSP_USING_WDG
|
||||||
config BSP_USING_WDG0
|
config BSP_USING_WDG0
|
||||||
bool "Enable WDG0"
|
bool "Enable WDG0"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_WDG1
|
config BSP_USING_WDG1
|
||||||
bool "Enable WDG1"
|
bool "Enable WDG1"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_WDG2
|
config BSP_USING_WDG2
|
||||||
bool "Enable WDG2"
|
bool "Enable WDG2"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_WDG3
|
config BSP_USING_WDG3
|
||||||
bool "Enable WDG3"
|
bool "Enable WDG3"
|
||||||
default n
|
default n
|
||||||
endif
|
endif
|
||||||
|
|
||||||
menuconfig BSP_USING_CAN
|
menuconfig BSP_USING_CAN
|
||||||
bool "Enable CAN"
|
bool "Enable CAN"
|
||||||
default n
|
default n
|
||||||
select RT_USING_CAN if BSP_USING_CAN
|
select RT_USING_CAN if BSP_USING_CAN
|
||||||
if BSP_USING_CAN
|
if BSP_USING_CAN
|
||||||
config BSP_USING_CAN0
|
config BSP_USING_CAN0
|
||||||
bool "Enable CAN0"
|
bool "Enable CAN0"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_CAN1
|
config BSP_USING_CAN1
|
||||||
bool "Enable CAN1"
|
bool "Enable CAN1"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_CAN2
|
config BSP_USING_CAN2
|
||||||
bool "Enable CAN2"
|
bool "Enable CAN2"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_CAN3
|
config BSP_USING_CAN3
|
||||||
bool "Enable CAN3"
|
bool "Enable CAN3"
|
||||||
default n
|
default n
|
||||||
endif
|
endif
|
||||||
|
|
||||||
menuconfig BSP_USING_ADC
|
menuconfig BSP_USING_ADC
|
||||||
bool "Enable ADC"
|
bool "Enable ADC"
|
||||||
default n
|
default n
|
||||||
select RT_USING_ADC if BSP_USING_ADC
|
select RT_USING_ADC if BSP_USING_ADC
|
||||||
if BSP_USING_ADC
|
if BSP_USING_ADC
|
||||||
menuconfig BSP_USING_ADC12
|
menuconfig BSP_USING_ADC12
|
||||||
bool "Enable ADC12"
|
bool "Enable ADC12"
|
||||||
default n
|
default n
|
||||||
if BSP_USING_ADC12
|
if BSP_USING_ADC12
|
||||||
config BSP_USING_ADC0
|
config BSP_USING_ADC0
|
||||||
bool "Enable ADC0"
|
bool "Enable ADC0"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_ADC1
|
config BSP_USING_ADC1
|
||||||
bool "Enable ADC1"
|
bool "Enable ADC1"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_ADC2
|
config BSP_USING_ADC2
|
||||||
bool "Enable ADC2"
|
bool "Enable ADC2"
|
||||||
default n
|
default n
|
||||||
endif
|
endif
|
||||||
if !BSP_USING_ADC12
|
if !BSP_USING_ADC12
|
||||||
menuconfig BSP_USING_ADC16
|
menuconfig BSP_USING_ADC16
|
||||||
bool "Enable ADC16"
|
bool "Enable ADC16"
|
||||||
default n
|
default n
|
||||||
if BSP_USING_ADC16
|
if BSP_USING_ADC16
|
||||||
config BSP_USING_ADC3
|
config BSP_USING_ADC3
|
||||||
bool "Enable ADC3"
|
bool "Enable ADC3"
|
||||||
default n
|
default n
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
@ -35,10 +35,10 @@ if GetDepend(['BSP_USING_WDG']):
|
|||||||
src += ['drivers/src/hpm_wdg_drv.c']
|
src += ['drivers/src/hpm_wdg_drv.c']
|
||||||
|
|
||||||
if GetDepend(['BSP_USING_ADC']):
|
if GetDepend(['BSP_USING_ADC']):
|
||||||
if GetDepend(['BSP_USING_ADC12']):
|
if GetDepend(['BSP_USING_ADC12']):
|
||||||
src += ['drivers/src/hpm_adc12_drv.c']
|
src += ['drivers/src/hpm_adc12_drv.c']
|
||||||
if GetDepend(['BSP_USING_ADC16']):
|
if GetDepend(['BSP_USING_ADC16']):
|
||||||
src += ['drivers/src/hpm_adc16_drv.c']
|
src += ['drivers/src/hpm_adc16_drv.c']
|
||||||
|
|
||||||
if GetDepend(['BSP_USING_CAN']):
|
if GetDepend(['BSP_USING_CAN']):
|
||||||
src += ['drivers/src/hpm_can_drv.c']
|
src += ['drivers/src/hpm_can_drv.c']
|
||||||
|
@ -16,21 +16,21 @@ src = []
|
|||||||
src += [ os.path.join(cwd, 'debug_console', 'hpm_debug_console.c') ]
|
src += [ os.path.join(cwd, 'debug_console', 'hpm_debug_console.c') ]
|
||||||
src += [ os.path.join(cwd, 'dma_manager', 'hpm_dma_manager.c') ]
|
src += [ os.path.join(cwd, 'dma_manager', 'hpm_dma_manager.c') ]
|
||||||
if GetDepend(['BSP_USING_TOUCH_GT911']):
|
if GetDepend(['BSP_USING_TOUCH_GT911']):
|
||||||
src += [os.path.join(cwd, 'touch', 'gt911', 'hpm_touch_gt911.c') ]
|
src += [os.path.join(cwd, 'touch', 'gt911', 'hpm_touch_gt911.c') ]
|
||||||
src += [os.path.join(cwd, 'touch', 'gt911', 'hpm_gt911.c') ]
|
src += [os.path.join(cwd, 'touch', 'gt911', 'hpm_gt911.c') ]
|
||||||
path += [ os.path.join(cwd, 'touch', 'gt911') ]
|
path += [ os.path.join(cwd, 'touch', 'gt911') ]
|
||||||
CPPDEFINES = ['CONFIG_TOUCH_GT911=1']
|
CPPDEFINES = ['CONFIG_TOUCH_GT911=1']
|
||||||
if GetDepend(['BSP_USING_TOUCH_FT5406']):
|
if GetDepend(['BSP_USING_TOUCH_FT5406']):
|
||||||
src += [ os.path.join(cwd, 'touch', 'ft5406', 'hpm_touch_ft5406.c') ]
|
src += [ os.path.join(cwd, 'touch', 'ft5406', 'hpm_touch_ft5406.c') ]
|
||||||
src += [ os.path.join(cwd, 'touch', 'ft5406', 'hpm_ft5406.c') ]
|
src += [ os.path.join(cwd, 'touch', 'ft5406', 'hpm_ft5406.c') ]
|
||||||
path += [ os.path.join(cwd, 'touch', 'ft5406') ]
|
path += [ os.path.join(cwd, 'touch', 'ft5406') ]
|
||||||
CPPDEFINES = ['CONFIG_TOUCH_FT5406=1']
|
CPPDEFINES = ['CONFIG_TOUCH_FT5406=1']
|
||||||
if GetDepend(['BSP_USING_USB_DEVICE']):
|
if GetDepend(['BSP_USING_USB_DEVICE']):
|
||||||
src += [ os.path.join(cwd, 'usb', 'device', 'hpm_usb_device.c') ]
|
src += [ os.path.join(cwd, 'usb', 'device', 'hpm_usb_device.c') ]
|
||||||
path += [ os.path.join(cwd, 'usb', 'device') ]
|
path += [ os.path.join(cwd, 'usb', 'device') ]
|
||||||
if GetDepend(['BSP_USING_USB_HOST']):
|
if GetDepend(['BSP_USING_USB_HOST']):
|
||||||
src += [ os.path.join(cwd, 'usb', 'host', 'hpm_usb_host.c') ]
|
src += [ os.path.join(cwd, 'usb', 'host', 'hpm_usb_host.c') ]
|
||||||
path += [ os.path.join(cwd, 'usb', 'host') ]
|
path += [ os.path.join(cwd, 'usb', 'host') ]
|
||||||
|
|
||||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES=CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, CPPDEFINES=CPPDEFINES)
|
||||||
|
|
||||||
|
@ -14,11 +14,11 @@ TARGET = 'rtthread-imx6.' + 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')
|
||||||
|
@ -4,7 +4,7 @@ Import('rtconfig')
|
|||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
|
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ Import('rtconfig')
|
|||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM in ['iccarm']:
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
|
@ -4,7 +4,7 @@ Import('rtconfig')
|
|||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
|
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
|
@ -14,11 +14,11 @@ 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,
|
||||||
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)
|
||||||
env['ASCOM'] = env['ASPPCOM']
|
env['ASCOM'] = env['ASPPCOM']
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('*.c') + Glob('iomux/*.c')
|
src = Glob('*.c') + Glob('iomux/*.c')
|
||||||
|
|
||||||
CPPPATH = [cwd, cwd + '/iomux']
|
CPPPATH = [cwd, cwd + '/iomux']
|
||||||
|
|
||||||
|
@ -34,13 +34,13 @@ menu "On-chip Peripheral Drivers"
|
|||||||
default n
|
default n
|
||||||
|
|
||||||
if BSP_USING_USB
|
if BSP_USING_USB
|
||||||
config BSP_USB0_HOST
|
config BSP_USB0_HOST
|
||||||
bool "Enable USB0"
|
bool "Enable USB0"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config BSP_USB1_HOST
|
config BSP_USB1_HOST
|
||||||
bool "Enable USB1"
|
bool "Enable USB1"
|
||||||
default n
|
default n
|
||||||
endif
|
endif
|
||||||
|
|
||||||
config BSP_USING_SDIO
|
config BSP_USING_SDIO
|
||||||
@ -67,17 +67,17 @@ menu "On-chip Peripheral Drivers"
|
|||||||
bool "Enable LPUART1"
|
bool "Enable LPUART1"
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config BSP_LPUART1_RX_USING_DMA
|
config BSP_LPUART1_RX_USING_DMA
|
||||||
bool "Enable LPUART1 RX DMA"
|
bool "Enable LPUART1 RX DMA"
|
||||||
depends on BSP_USING_LPUART1
|
depends on BSP_USING_LPUART1
|
||||||
select BSP_USING_DMA
|
select BSP_USING_DMA
|
||||||
select RT_SERIAL_USING_DMA
|
select RT_SERIAL_USING_DMA
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config BSP_LPUART1_RX_DMA_CHANNEL
|
config BSP_LPUART1_RX_DMA_CHANNEL
|
||||||
depends on BSP_LPUART1_RX_USING_DMA
|
depends on BSP_LPUART1_RX_USING_DMA
|
||||||
int "Set LPUART1 RX DMA channel (0-32)"
|
int "Set LPUART1 RX DMA channel (0-32)"
|
||||||
default 0
|
default 0
|
||||||
|
|
||||||
config BSP_LPUART1_TX_USING_DMA
|
config BSP_LPUART1_TX_USING_DMA
|
||||||
bool "Enable LPUART1 TX DMA"
|
bool "Enable LPUART1 TX DMA"
|
||||||
@ -120,27 +120,27 @@ menu "On-chip Peripheral Drivers"
|
|||||||
default 1
|
default 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
menuconfig BSP_USING_CAN
|
menuconfig BSP_USING_CAN
|
||||||
bool "Enable CAN"
|
bool "Enable CAN"
|
||||||
select RT_USING_CAN
|
select RT_USING_CAN
|
||||||
default n
|
default n
|
||||||
if BSP_USING_CAN
|
if BSP_USING_CAN
|
||||||
config BSP_USING_CAN3
|
config BSP_USING_CAN3
|
||||||
bool "Enable FLEXCAN3"
|
bool "Enable FLEXCAN3"
|
||||||
default n
|
default n
|
||||||
endif
|
endif
|
||||||
|
|
||||||
menuconfig BSP_USING_FLEXSPI
|
menuconfig BSP_USING_FLEXSPI
|
||||||
bool "Enable FLEXSPI"
|
bool "Enable FLEXSPI"
|
||||||
default n
|
default n
|
||||||
if BSP_USING_FLEXSPI
|
if BSP_USING_FLEXSPI
|
||||||
config BSP_USING_FLEXSPI1
|
config BSP_USING_FLEXSPI1
|
||||||
bool "Enable FLEXSPI1"
|
bool "Enable FLEXSPI1"
|
||||||
default n
|
default n
|
||||||
config BSP_USING_FLEXSPI2
|
config BSP_USING_FLEXSPI2
|
||||||
bool "Enable FLEXSPI2"
|
bool "Enable FLEXSPI2"
|
||||||
default n
|
default n
|
||||||
endif
|
endif
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "Onboard Peripheral Drivers"
|
menu "Onboard Peripheral Drivers"
|
||||||
|
@ -8,15 +8,15 @@ src = Glob('driverlib/*.c')
|
|||||||
|
|
||||||
# cortex-m3 no FPU.
|
# cortex-m3 no FPU.
|
||||||
if rtconfig.PART_TYPE.startswith('PART_LM4F') != True:
|
if rtconfig.PART_TYPE.startswith('PART_LM4F') != True:
|
||||||
SrcRemove(src, 'fpu.c')
|
SrcRemove(src, 'fpu.c')
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM in ['gcc']:
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['startup/gcc/start_gcc.S']
|
src += ['startup/gcc/start_gcc.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['startup/arm/start_rvds.S']
|
src += ['startup/arm/start_rvds.S']
|
||||||
elif rtconfig.PLATFORM in ['iccarm']:
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += ['startup/iar/start_iar.S']
|
src += ['startup/iar/start_iar.S']
|
||||||
|
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
CPPDEFINES = [rtconfig.PART_TYPE]
|
CPPDEFINES = [rtconfig.PART_TYPE]
|
||||||
|
@ -14,10 +14,10 @@ TARGET = 'rtthread-lm3s.' + 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')
|
||||||
|
@ -4,7 +4,7 @@ from building import *
|
|||||||
import copy
|
import copy
|
||||||
|
|
||||||
cwd = os.path.join(str(Dir('#')), 'drivers')
|
cwd = os.path.join(str(Dir('#')), 'drivers')
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
# remove no need file.
|
# remove no need file.
|
||||||
|
@ -8,15 +8,15 @@ src = Glob('driverlib/*.c')
|
|||||||
|
|
||||||
# cortex-m3 no FPU.
|
# cortex-m3 no FPU.
|
||||||
if rtconfig.PART_TYPE.startswith('PART_LM4F') != True:
|
if rtconfig.PART_TYPE.startswith('PART_LM4F') != True:
|
||||||
SrcRemove(src, 'fpu.c')
|
SrcRemove(src, 'fpu.c')
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM in ['gcc']:
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['startup/gcc/start_gcc.S']
|
src += ['startup/gcc/start_gcc.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['startup/arm/start_rvds.S']
|
src += ['startup/arm/start_rvds.S']
|
||||||
elif rtconfig.PLATFORM in ['iccarm']:
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += ['startup/iar/start_iar.S']
|
src += ['startup/iar/start_iar.S']
|
||||||
|
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
|
@ -14,10 +14,10 @@ TARGET = 'rtthread-lm3s.' + 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')
|
||||||
|
@ -4,7 +4,7 @@ from building import *
|
|||||||
import copy
|
import copy
|
||||||
|
|
||||||
cwd = os.path.join(str(Dir('#')), 'drivers')
|
cwd = os.path.join(str(Dir('#')), 'drivers')
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
# remove no need file.
|
# remove no need file.
|
||||||
|
@ -8,21 +8,21 @@ src = Glob('driverlib/*.c')
|
|||||||
|
|
||||||
# cortex-m3 no FPU.
|
# cortex-m3 no FPU.
|
||||||
if rtconfig.PART_TYPE.startswith('PART_LM4F') != True:
|
if rtconfig.PART_TYPE.startswith('PART_LM4F') != True:
|
||||||
SrcRemove(src, 'fpu.c')
|
SrcRemove(src, 'fpu.c')
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM in ['gcc']:
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['startup/gcc/start_gcc.c']
|
src += ['startup/gcc/start_gcc.c']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['startup/arm/start_rvds.S']
|
src += ['startup/arm/start_rvds.S']
|
||||||
elif rtconfig.PLATFORM in ['iccarm']:
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += ['startup/iar/start_iar.S']
|
src += ['startup/iar/start_iar.S']
|
||||||
|
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
CPPDEFINES = [rtconfig.PART_TYPE]
|
CPPDEFINES = [rtconfig.PART_TYPE]
|
||||||
if rtconfig.PLATFORM in ['gcc']:
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
CPPDEFINES += ['gcc'];
|
CPPDEFINES += ['gcc'];
|
||||||
|
|
||||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
||||||
|
@ -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')
|
||||||
|
@ -4,7 +4,7 @@ from building import *
|
|||||||
import copy
|
import copy
|
||||||
|
|
||||||
cwd = os.path.join(str(Dir('#')), 'drivers')
|
cwd = os.path.join(str(Dir('#')), 'drivers')
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
# remove no need file.
|
# remove no need file.
|
||||||
|
@ -66,12 +66,12 @@ config RT_USING_GMAC_INT_MODE
|
|||||||
|
|
||||||
config RT_USING_SPI0
|
config RT_USING_SPI0
|
||||||
bool "Enable SPI0"
|
bool "Enable SPI0"
|
||||||
select RT_USING_SPI
|
select RT_USING_SPI
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config RT_USING_SPI1
|
config RT_USING_SPI1
|
||||||
bool "Enable SPI1"
|
bool "Enable SPI1"
|
||||||
select RT_USING_SPI
|
select RT_USING_SPI
|
||||||
default y
|
default y
|
||||||
|
|
||||||
if RT_USING_I2C
|
if RT_USING_I2C
|
||||||
@ -87,18 +87,18 @@ endif
|
|||||||
|
|
||||||
config USING_BXCAN0
|
config USING_BXCAN0
|
||||||
bool "Enable CAN0"
|
bool "Enable CAN0"
|
||||||
select RT_USING_CAN
|
select RT_USING_CAN
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config USING_BXCAN1
|
config USING_BXCAN1
|
||||||
bool "Enable CAN1"
|
bool "Enable CAN1"
|
||||||
select RT_USING_CAN
|
select RT_USING_CAN
|
||||||
default y
|
default y
|
||||||
|
|
||||||
if RT_USING_CAN
|
if RT_USING_CAN
|
||||||
config RT_CAN_USING_HDR
|
config RT_CAN_USING_HDR
|
||||||
bool "Using RT_CAN_USING_HDR"
|
bool "Using RT_CAN_USING_HDR"
|
||||||
select RT_USING_CAN
|
select RT_USING_CAN
|
||||||
default y
|
default y
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -6,10 +6,10 @@ src = Glob('*.c')
|
|||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if GetDepend('RT_USING_LWIP') == False:
|
if GetDepend('RT_USING_LWIP') == False:
|
||||||
SrcRemove(src, 'mii.c')
|
SrcRemove(src, 'mii.c')
|
||||||
SrcRemove(src, 'synopGMAC.c')
|
SrcRemove(src, 'synopGMAC.c')
|
||||||
SrcRemove(src, 'synopGMAC_Dev.c')
|
SrcRemove(src, 'synopGMAC_Dev.c')
|
||||||
SrcRemove(src, 'synopGMAC_plat.c')
|
SrcRemove(src, 'synopGMAC_plat.c')
|
||||||
|
|
||||||
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
|
@ -11,11 +11,11 @@ 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,
|
||||||
CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS,
|
CXX = rtconfig.CXX, CXXFLAGS = rtconfig.CXXFLAGS,
|
||||||
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)
|
||||||
env['ASCOM'] = env['ASPPCOM']
|
env['ASCOM'] = env['ASPPCOM']
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
|
|
||||||
group = DefineGroup('Applications', src, depend = [''])
|
group = DefineGroup('Applications', src, depend = [''])
|
||||||
|
|
||||||
|
@ -13,15 +13,15 @@ TARGET = 'rtthread-lpc17xx.' + 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)
|
||||||
|
|
||||||
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')
|
||||||
|
@ -3,17 +3,17 @@ Import('rtconfig')
|
|||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
src = ['CM3/CoreSupport/core_cm3.c', 'CM3/DeviceSupport/NXP/LPC177x_8x/system_LPC177x_8x.c']
|
src = ['CM3/CoreSupport/core_cm3.c', 'CM3/DeviceSupport/NXP/LPC177x_8x/system_LPC177x_8x.c']
|
||||||
CPPPATH = [cwd + '/CM3/CoreSupport', cwd + '/CM3/DeviceSupport/NXP/LPC177x_8x/']
|
CPPPATH = [cwd + '/CM3/CoreSupport', cwd + '/CM3/DeviceSupport/NXP/LPC177x_8x/']
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM in ['gcc']:
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/gcc/startup_LPC177x_8x.s']
|
src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/gcc/startup_LPC177x_8x.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/arm/startup_LPC177x_8x.s']
|
src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/arm/startup_LPC177x_8x.s']
|
||||||
elif rtconfig.PLATFORM in ['iccarm']:
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/iar/startup_LPC177x_8x.s']
|
src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/iar/startup_LPC177x_8x.s']
|
||||||
|
|
||||||
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user