mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-10-29 14:40:24 +08:00
define RT_USING_RTT_CMSIS in rtconfig.h while using IAR 6.30+
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2170 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
1 parent
0fde4d778a
commit
efeb6231be
8 files changed
+2318
-2182
No files matched your search
@@ -7,7 +7,6 @@ cwd = GetCurrentDir()
|
||||
|
||||
# The set of source files associated with this SConscript file.
|
||||
src = Split("""
|
||||
CMSIS/CM3/CoreSupport/core_cm3.c
|
||||
CMSIS/CM3/DeviceSupport/ST/STM32F10x/system_stm32f10x.c
|
||||
STM32F10x_StdPeriph_Driver/src/stm32f10x_crc.c
|
||||
STM32F10x_StdPeriph_Driver/src/stm32f10x_rcc.c
|
||||
@@ -54,9 +53,14 @@ elif rtconfig.CROSS_TOOL == 'iar':
|
||||
src = src + ['CMSIS/CM3/DeviceSupport/ST/STM32F10x/startup/iar/' + startup_scripts[rtconfig.STM32_TYPE]]
|
||||
|
||||
path = [cwd + '/STM32F10x_StdPeriph_Driver/inc',
|
||||
cwd + '/CMSIS/CM3/CoreSupport',
|
||||
cwd + '/CMSIS/CM3/DeviceSupport/ST/STM32F10x']
|
||||
|
||||
if GetDepend(['RT_USING_BSP_CMSIS']):
|
||||
path += [cwd + '/CMSIS/CM3/CoreSupport']
|
||||
src += [cwd + '/CMSIS/CM3/CoreSupport/core_cm3.c']
|
||||
elif GetDepend(['RT_USING_RTT_CMSIS']):
|
||||
path += [RTT_ROOT + '/components/CMSIS/Include']
|
||||
|
||||
CPPDEFINES = ['USE_STDPERIPH_DRIVER', rtconfig.STM32_TYPE]
|
||||
group = DefineGroup('STM32_StdPeriph', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||
|
||||
|
||||
+138
-70
File diff suppressed because it is too large.
Load diff
@@ -147,4 +147,11 @@
|
||||
#define CHECKSUM_GEN_IP 0
|
||||
#define CHECKSUM_GEN_UDP 0
|
||||
|
||||
// <bool name="RT_USING_CMSIS_OS" description="Using CMSIS OS API" default="true" />
|
||||
// #define RT_USING_CMSIS_OS
|
||||
// <bool name="RT_USING_RTT_CMSIS" description="Using CMSIS in RTT" default="true" />
|
||||
#define RT_USING_RTT_CMSIS
|
||||
// <bool name="RT_USING_BSP_CMSIS" description="Using CMSIS in BSP" default="true" />
|
||||
// #define RT_USING_BSP_CMSIS
|
||||
|
||||
#endif
|
||||
@@ -7,7 +7,6 @@ cwd = GetCurrentDir()
|
||||
|
||||
# The set of source files associated with this SConscript file.
|
||||
src = Split("""
|
||||
CMSIS/CM3/CoreSupport/core_cm3.c
|
||||
CMSIS/CM3/DeviceSupport/ST/STM32F10x/system_stm32f10x.c
|
||||
STM32F10x_StdPeriph_Driver/src/stm32f10x_crc.c
|
||||
STM32F10x_StdPeriph_Driver/src/stm32f10x_rcc.c
|
||||
@@ -54,9 +53,14 @@ elif rtconfig.CROSS_TOOL == 'iar':
|
||||
src = src + ['CMSIS/CM3/DeviceSupport/ST/STM32F10x/startup/iar/' + startup_scripts[rtconfig.STM32_TYPE]]
|
||||
|
||||
path = [cwd + '/STM32F10x_StdPeriph_Driver/inc',
|
||||
cwd + '/CMSIS/CM3/CoreSupport',
|
||||
cwd + '/CMSIS/CM3/DeviceSupport/ST/STM32F10x']
|
||||
|
||||
if GetDepend(['RT_USING_BSP_CMSIS']):
|
||||
path += [cwd + '/CMSIS/CM3/CoreSupport']
|
||||
src += [cwd + '/CMSIS/CM3/CoreSupport/core_cm3.c']
|
||||
elif GetDepend(['RT_USING_RTT_CMSIS']):
|
||||
path += [RTT_ROOT + '/components/CMSIS/Include']
|
||||
|
||||
CPPDEFINES = ['USE_STDPERIPH_DRIVER', rtconfig.STM32_TYPE]
|
||||
group = DefineGroup('STM32_StdPeriph', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
+335
-449
File diff suppressed because it is too large.
Load diff
@@ -169,4 +169,11 @@
|
||||
/* #define RTGUI_IMAGE_XPM */
|
||||
/* #define RTGUI_IMAGE_BMP */
|
||||
|
||||
// <bool name="RT_USING_CMSIS_OS" description="Using CMSIS OS API" default="true" />
|
||||
// #define RT_USING_CMSIS_OS
|
||||
// <bool name="RT_USING_RTT_CMSIS" description="Using CMSIS in RTT" default="true" />
|
||||
#define RT_USING_RTT_CMSIS
|
||||
// <bool name="RT_USING_BSP_CMSIS" description="Using CMSIS in BSP" default="true" />
|
||||
// #define RT_USING_BSP_CMSIS
|
||||
|
||||
#endif
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user