mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-23 22:10:39 +08:00
format Kconfig and sconscript
This commit is contained in:
committed by
Man, Jianting (Meco)
parent
f4b285dc9c
commit
9bc68d26a4
@@ -20,7 +20,7 @@ source "$PKGS_DIR/Kconfig"
|
||||
source "drivers/Kconfig"
|
||||
|
||||
config SOC_MM32L373
|
||||
bool
|
||||
bool
|
||||
select RT_USING_COMPONENTS_INIT
|
||||
select RT_USING_USER_MAIN
|
||||
default y
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from building import *
|
||||
import rtconfig
|
||||
cwd = GetCurrentDir()
|
||||
src = ['MM32L3xx/Source/system_MM32L3xx.c']
|
||||
src = ['MM32L3xx/Source/system_MM32L3xx.c']
|
||||
CPPPATH = [cwd + '/CMSIS/KEIL_CORE', cwd + '/MM32L3xx/Include', cwd + '/MM32L3xx/Source', cwd + '/MM32L3xx/HAL_lib/inc']
|
||||
|
||||
src += Glob('MM32L3xx/HAL_lib/src/*.c')
|
||||
|
||||
@@ -19,10 +19,10 @@ TARGET = 'rtthread.' + rtconfig.TARGET_EXT
|
||||
|
||||
DefaultEnvironment(tools=[])
|
||||
env = Environment(tools = ['mingw'],
|
||||
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
|
||||
CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS,
|
||||
AR = rtconfig.AR, ARFLAGS = '-rc',
|
||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||
AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
|
||||
CC = rtconfig.CC, CFLAGS = rtconfig.CFLAGS,
|
||||
AR = rtconfig.AR, ARFLAGS = '-rc',
|
||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||
|
||||
if rtconfig.PLATFORM in ['iccarm']:
|
||||
|
||||
@@ -6,18 +6,18 @@ menu "Hardware Drivers Config"
|
||||
bool "Enable GPIO"
|
||||
select RT_USING_PIN
|
||||
default n
|
||||
endmenu
|
||||
endmenu
|
||||
menu "UART Drivers"
|
||||
config BSP_USING_UART1
|
||||
bool "Enable UART1 PA9/10(T/R)"
|
||||
select RT_USING_SERIAL
|
||||
default n
|
||||
|
||||
|
||||
config BSP_USING_UART2
|
||||
bool "Enable UART2 PA2/3(T/R)"
|
||||
select RT_USING_SERIAL
|
||||
default y
|
||||
endmenu
|
||||
endmenu
|
||||
endmenu
|
||||
|
||||
|
||||
endmenu
|
||||
|
||||
Reference in New Issue
Block a user