diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_rtc.c b/bsp/stm32/libraries/HAL_Drivers/drv_rtc.c
index 50bbc7cc331d700ff64a4783b9d750d51b571a1a..0f6ac24dfe0c60abc28feed9ec571db7deed7860 100644
--- a/bsp/stm32/libraries/HAL_Drivers/drv_rtc.c
+++ b/bsp/stm32/libraries/HAL_Drivers/drv_rtc.c
@@ -134,7 +134,7 @@ static rt_err_t rt_rtc_control(rt_device_t dev, int cmd, void *args)
{
case RT_DEVICE_CTRL_RTC_GET_TIME:
*(rt_uint32_t *)args = get_rtc_timestamp();
- LOG_D("RTC: get rtc_time %x\n", *(rt_uint32_t *)args());
+ LOG_D("RTC: get rtc_time %x\n", *(rt_uint32_t *)args);
break;
case RT_DEVICE_CTRL_RTC_SET_TIME:
diff --git a/bsp/stm32/libraries/templates/stm32f10x/SConstruct b/bsp/stm32/libraries/templates/stm32f10x/SConstruct
index b541737671d0198a3578bade3d575af6289465a2..c28354a99db6725b666ec6eee89d3d4100034b9d 100644
--- a/bsp/stm32/libraries/templates/stm32f10x/SConstruct
+++ b/bsp/stm32/libraries/templates/stm32f10x/SConstruct
@@ -32,17 +32,27 @@ if rtconfig.PLATFORM == 'iar':
Export('RTT_ROOT')
Export('rtconfig')
+SDK_ROOT = os.path.abspath('./')
+
+if os.path.exists(SDK_ROOT + '/libraries'):
+ libraries_path_prefix = SDK_ROOT + '/libraries'
+else:
+ libraries_path_prefix = os.path.dirname(SDK_ROOT) + '/libraries'
+
+SDK_LIB = libraries_path_prefix
+Export('SDK_LIB')
+
# prepare building environment
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
-SDK_ROOT = os.path.abspath('./')
-bsp_vdir = 'build'
-
-# include drivers
-objs.extend(SConscript(os.path.dirname(SDK_ROOT) + '/libraries/STM32F1xx_HAL/SConscript'))
+stm32_library = 'STM32F1xx_HAL'
+rtconfig.BSP_LIBRARY_TYPE = stm32_library
# include libraries
-objs.extend(SConscript(os.path.dirname(SDK_ROOT) + '/libraries/HAL_Drivers/SConscript'))
+objs.extend(SConscript(os.path.join(libraries_path_prefix, stm32_library, 'SConscript')))
+
+# include drivers
+objs.extend(SConscript(os.path.join(libraries_path_prefix, 'HAL_Drivers', 'SConscript')))
# make a building
DoBuilding(TARGET, objs)
diff --git a/bsp/stm32/libraries/templates/stm32f10x/board/SConscript b/bsp/stm32/libraries/templates/stm32f10x/board/SConscript
index a0011e100f7c16564348ea4f0a59411db17cd0bb..a88ecd435d16f834e0f05b7a129cd8bbfcfa60e3 100644
--- a/bsp/stm32/libraries/templates/stm32f10x/board/SConscript
+++ b/bsp/stm32/libraries/templates/stm32f10x/board/SConscript
@@ -1,23 +1,29 @@
+import os
import rtconfig
from building import *
+Import('SDK_LIB')
+
cwd = GetCurrentDir()
-# add the general drivers.
-src = Glob('board.c')
-src += Glob('CubeMX_Config/Src/stm32f1xx_hal_msp.c')
+# add general drivers
+src = Split('''
+board.c
+CubeMX_Config/Src/stm32f1xx_hal_msp.c
+''')
-path = [cwd]
+path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']
+startup_path_prefix = SDK_LIB
+
if rtconfig.CROSS_TOOL == 'gcc':
- src += [cwd + '/../../libraries/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xb.s']
+ src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xb.s']
elif rtconfig.CROSS_TOOL == 'keil':
- src += [cwd + '/../../libraries/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xb.s']
+ src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xb.s']
elif rtconfig.CROSS_TOOL == 'iar':
- src += [cwd + '/../../libraries/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f103xb.s']
-
+ src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f103xb.s']
+
CPPDEFINES = ['STM32F103xB']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
-
-Return('group')
\ No newline at end of file
+Return('group')
diff --git a/bsp/stm32/libraries/templates/stm32f10x/rtconfig.py b/bsp/stm32/libraries/templates/stm32f10x/rtconfig.py
index 7906918058514df117adb2ce11269cef6aba4a6d..79904118e5fc9d15a5e34a064d5df90335565d95 100644
--- a/bsp/stm32/libraries/templates/stm32f10x/rtconfig.py
+++ b/bsp/stm32/libraries/templates/stm32f10x/rtconfig.py
@@ -5,6 +5,9 @@ ARCH='arm'
CPU='cortex-m3'
CROSS_TOOL='gcc'
+# bsp lib config
+BSP_LIBRARY_TYPE = None
+
if os.getenv('RTT_CC'):
CROSS_TOOL = os.getenv('RTT_CC')
if os.getenv('RTT_ROOT'):
diff --git a/bsp/stm32/libraries/templates/stm32f4xx/SConstruct b/bsp/stm32/libraries/templates/stm32f4xx/SConstruct
index f9b3d33a620973a8ddc5ed85655d1ed1a14762da..c1609bf526ab010946758d14981ddea9895a234b 100644
--- a/bsp/stm32/libraries/templates/stm32f4xx/SConstruct
+++ b/bsp/stm32/libraries/templates/stm32f4xx/SConstruct
@@ -32,16 +32,27 @@ if rtconfig.PLATFORM == 'iar':
Export('RTT_ROOT')
Export('rtconfig')
+SDK_ROOT = os.path.abspath('./')
+
+if os.path.exists(SDK_ROOT + '/libraries'):
+ libraries_path_prefix = SDK_ROOT + '/libraries'
+else:
+ libraries_path_prefix = os.path.dirname(SDK_ROOT) + '/libraries'
+
+SDK_LIB = libraries_path_prefix
+Export('SDK_LIB')
+
# prepare building environment
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
-SDK_ROOT = os.path.abspath('./')
-
-# include drivers
-objs.extend(SConscript(os.path.dirname(SDK_ROOT) + '/libraries/STM32F4xx_HAL/SConscript'))
+stm32_library = 'STM32F4xx_HAL'
+rtconfig.BSP_LIBRARY_TYPE = stm32_library
# include libraries
-objs.extend(SConscript(os.path.dirname(SDK_ROOT) + '/libraries/HAL_Drivers/SConscript'))
+objs.extend(SConscript(os.path.join(libraries_path_prefix, stm32_library, 'SConscript')))
+
+# include drivers
+objs.extend(SConscript(os.path.join(libraries_path_prefix, 'HAL_Drivers', 'SConscript')))
# make a building
DoBuilding(TARGET, objs)
diff --git a/bsp/stm32/libraries/templates/stm32f4xx/board/SConscript b/bsp/stm32/libraries/templates/stm32f4xx/board/SConscript
index 5709200ba1bfb040f0205db82ca7088531a38996..c62947164b7b4c6816e944d1d54520b02118f504 100644
--- a/bsp/stm32/libraries/templates/stm32f4xx/board/SConscript
+++ b/bsp/stm32/libraries/templates/stm32f4xx/board/SConscript
@@ -1,21 +1,28 @@
+import os
import rtconfig
from building import *
+Import('SDK_LIB')
+
cwd = GetCurrentDir()
-# add the general drivers.
-src = Glob('board.c')
-src += Glob('CubeMX_Config/Src/stm32f4xx_hal_msp.c')
+# add general drivers
+src = Split('''
+board.c
+CubeMX_Config/Src/stm32f4xx_hal_msp.c
+''')
-path = [cwd]
+path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']
+startup_path_prefix = SDK_LIB
+
if rtconfig.CROSS_TOOL == 'gcc':
- src += [cwd + '/../../libraries/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f407xx.s']
+ src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f407xx.s']
elif rtconfig.CROSS_TOOL == 'keil':
- src += [cwd + '/../../libraries/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f407xx.s']
+ src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f407xx.s']
elif rtconfig.CROSS_TOOL == 'iar':
- src += [cwd + '/../../libraries/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/iar/startup_stm32f407xx.s']
+ src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/iar/startup_stm32f407xx.s']
CPPDEFINES = ['STM32F407xx']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
diff --git a/bsp/stm32/libraries/templates/stm32f4xx/rtconfig.py b/bsp/stm32/libraries/templates/stm32f4xx/rtconfig.py
index ce04832ca523f6d7fb1576c221cfa2770aa2db15..2e3b7cf4929d22771893e59487c441aed871e6f6 100644
--- a/bsp/stm32/libraries/templates/stm32f4xx/rtconfig.py
+++ b/bsp/stm32/libraries/templates/stm32f4xx/rtconfig.py
@@ -5,6 +5,9 @@ ARCH='arm'
CPU='cortex-m4'
CROSS_TOOL='gcc'
+# bsp lib config
+BSP_LIBRARY_TYPE = None
+
if os.getenv('RTT_CC'):
CROSS_TOOL = os.getenv('RTT_CC')
if os.getenv('RTT_ROOT'):
diff --git a/bsp/stm32/libraries/templates/stm32l4xx/SConstruct b/bsp/stm32/libraries/templates/stm32l4xx/SConstruct
index 23a8f6755cda3a821d96718617d58f69d220c6ef..f28e552248cc6440b75fab3602942439f10563c9 100644
--- a/bsp/stm32/libraries/templates/stm32l4xx/SConstruct
+++ b/bsp/stm32/libraries/templates/stm32l4xx/SConstruct
@@ -32,16 +32,27 @@ if rtconfig.PLATFORM == 'iar':
Export('RTT_ROOT')
Export('rtconfig')
+SDK_ROOT = os.path.abspath('./')
+
+if os.path.exists(SDK_ROOT + '/libraries'):
+ libraries_path_prefix = SDK_ROOT + '/libraries'
+else:
+ libraries_path_prefix = os.path.dirname(SDK_ROOT) + '/libraries'
+
+SDK_LIB = libraries_path_prefix
+Export('SDK_LIB')
+
# prepare building environment
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
-SDK_ROOT = os.path.abspath('./')
-
-# include drivers
-objs.extend(SConscript(os.path.dirname(SDK_ROOT) + '/libraries/STM32L4xx_HAL/SConscript'))
+stm32_library = 'STM32L4xx_HAL'
+rtconfig.BSP_LIBRARY_TYPE = stm32_library
# include libraries
-objs.extend(SConscript(os.path.dirname(SDK_ROOT) + '/libraries/HAL_Drivers/SConscript'))
+objs.extend(SConscript(os.path.join(libraries_path_prefix, stm32_library, 'SConscript')))
+
+# include drivers
+objs.extend(SConscript(os.path.join(libraries_path_prefix, 'HAL_Drivers', 'SConscript')))
# make a building
DoBuilding(TARGET, objs)
diff --git a/bsp/stm32/libraries/templates/stm32l4xx/board/SConscript b/bsp/stm32/libraries/templates/stm32l4xx/board/SConscript
index a0bf2775565354b9170b43dfb6b9b2f4480a849d..e826c7212d2fb2a39c91e3dae46685c35a0938b1 100644
--- a/bsp/stm32/libraries/templates/stm32l4xx/board/SConscript
+++ b/bsp/stm32/libraries/templates/stm32l4xx/board/SConscript
@@ -1,21 +1,28 @@
+import os
import rtconfig
from building import *
+Import('SDK_LIB')
+
cwd = GetCurrentDir()
-# add the general drivers.
-src = Glob('board.c')
-src += Glob('CubeMX_Config/Src/stm32l4xx_hal_msp.c')
+# add general drivers
+src = Split('''
+board.c
+CubeMX_Config/Src/stm32l4xx_hal_msp.c
+''')
-path = [cwd]
+path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']
+startup_path_prefix = SDK_LIB
+
if rtconfig.CROSS_TOOL == 'gcc':
- src += [cwd + '/../../libraries/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l475xx.s']
+ src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l475xx.s']
elif rtconfig.CROSS_TOOL == 'keil':
- src += [cwd + '/../../libraries/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/arm/startup_stm32l475xx.s']
+ src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/arm/startup_stm32l475xx.s']
elif rtconfig.CROSS_TOOL == 'iar':
- src += [cwd + '/../../libraries/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/iar/startup_stm32l475xx.s']
+ src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/iar/startup_stm32l475xx.s']
CPPDEFINES = ['STM32L475xx']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
diff --git a/bsp/stm32/libraries/templates/stm32l4xx/rtconfig.py b/bsp/stm32/libraries/templates/stm32l4xx/rtconfig.py
index 53f5cd79bc81609be55ed6c306e78d3c8dd3dd85..50c1d8a0f7627358dc1ec268296464fed272c753 100644
--- a/bsp/stm32/libraries/templates/stm32l4xx/rtconfig.py
+++ b/bsp/stm32/libraries/templates/stm32l4xx/rtconfig.py
@@ -5,6 +5,9 @@ ARCH='arm'
CPU='cortex-m4'
CROSS_TOOL='gcc'
+# bsp lib config
+BSP_LIBRARY_TYPE = None
+
if os.getenv('RTT_CC'):
CROSS_TOOL = os.getenv('RTT_CC')
if os.getenv('RTT_ROOT'):
diff --git a/bsp/stm32/stm32f103-atk-nano/SConstruct b/bsp/stm32/stm32f103-atk-nano/SConstruct
index b541737671d0198a3578bade3d575af6289465a2..c28354a99db6725b666ec6eee89d3d4100034b9d 100644
--- a/bsp/stm32/stm32f103-atk-nano/SConstruct
+++ b/bsp/stm32/stm32f103-atk-nano/SConstruct
@@ -32,17 +32,27 @@ if rtconfig.PLATFORM == 'iar':
Export('RTT_ROOT')
Export('rtconfig')
+SDK_ROOT = os.path.abspath('./')
+
+if os.path.exists(SDK_ROOT + '/libraries'):
+ libraries_path_prefix = SDK_ROOT + '/libraries'
+else:
+ libraries_path_prefix = os.path.dirname(SDK_ROOT) + '/libraries'
+
+SDK_LIB = libraries_path_prefix
+Export('SDK_LIB')
+
# prepare building environment
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
-SDK_ROOT = os.path.abspath('./')
-bsp_vdir = 'build'
-
-# include drivers
-objs.extend(SConscript(os.path.dirname(SDK_ROOT) + '/libraries/STM32F1xx_HAL/SConscript'))
+stm32_library = 'STM32F1xx_HAL'
+rtconfig.BSP_LIBRARY_TYPE = stm32_library
# include libraries
-objs.extend(SConscript(os.path.dirname(SDK_ROOT) + '/libraries/HAL_Drivers/SConscript'))
+objs.extend(SConscript(os.path.join(libraries_path_prefix, stm32_library, 'SConscript')))
+
+# include drivers
+objs.extend(SConscript(os.path.join(libraries_path_prefix, 'HAL_Drivers', 'SConscript')))
# make a building
DoBuilding(TARGET, objs)
diff --git a/bsp/stm32/stm32f103-atk-nano/board/SConscript b/bsp/stm32/stm32f103-atk-nano/board/SConscript
index 16ac2f078b7e17a4f6aff70a19150144ab23446a..9659e84a2b501adbb81b24c488f4185fdc7f8c76 100644
--- a/bsp/stm32/stm32f103-atk-nano/board/SConscript
+++ b/bsp/stm32/stm32f103-atk-nano/board/SConscript
@@ -1,24 +1,32 @@
+import os
import rtconfig
from building import *
+Import('SDK_LIB')
+
cwd = GetCurrentDir()
-src = Glob('board.c')
-src += Glob('CubeMX_Config/Src/stm32f1xx_hal_msp.c')
+# add general drivers
+src = Split('''
+board.c
+CubeMX_Config/Src/stm32f1xx_hal_msp.c
+''')
if GetDepend(['BSP_USING_SPI_FLASH']):
src += Glob('ports/spi_flash_init.c')
-path = [cwd]
+path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']
path += [cwd + '/ports']
+startup_path_prefix = SDK_LIB
+
if rtconfig.CROSS_TOOL == 'gcc':
- src += [cwd + '/../../libraries/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xb.s']
+ src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xb.s']
elif rtconfig.CROSS_TOOL == 'keil':
- src += [cwd + '/../../libraries/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xb.s']
+ src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xb.s']
elif rtconfig.CROSS_TOOL == 'iar':
- src += [cwd + '/../../libraries/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f103xb.s']
+ src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f103xb.s']
CPPDEFINES = ['STM32F103xB']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
diff --git a/bsp/stm32/stm32f103-atk-nano/rtconfig.py b/bsp/stm32/stm32f103-atk-nano/rtconfig.py
index 7906918058514df117adb2ce11269cef6aba4a6d..79904118e5fc9d15a5e34a064d5df90335565d95 100644
--- a/bsp/stm32/stm32f103-atk-nano/rtconfig.py
+++ b/bsp/stm32/stm32f103-atk-nano/rtconfig.py
@@ -5,6 +5,9 @@ ARCH='arm'
CPU='cortex-m3'
CROSS_TOOL='gcc'
+# bsp lib config
+BSP_LIBRARY_TYPE = None
+
if os.getenv('RTT_CC'):
CROSS_TOOL = os.getenv('RTT_CC')
if os.getenv('RTT_ROOT'):
diff --git a/bsp/stm32/stm32f103-fire-arbitrary/SConstruct b/bsp/stm32/stm32f103-fire-arbitrary/SConstruct
index b541737671d0198a3578bade3d575af6289465a2..c28354a99db6725b666ec6eee89d3d4100034b9d 100644
--- a/bsp/stm32/stm32f103-fire-arbitrary/SConstruct
+++ b/bsp/stm32/stm32f103-fire-arbitrary/SConstruct
@@ -32,17 +32,27 @@ if rtconfig.PLATFORM == 'iar':
Export('RTT_ROOT')
Export('rtconfig')
+SDK_ROOT = os.path.abspath('./')
+
+if os.path.exists(SDK_ROOT + '/libraries'):
+ libraries_path_prefix = SDK_ROOT + '/libraries'
+else:
+ libraries_path_prefix = os.path.dirname(SDK_ROOT) + '/libraries'
+
+SDK_LIB = libraries_path_prefix
+Export('SDK_LIB')
+
# prepare building environment
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
-SDK_ROOT = os.path.abspath('./')
-bsp_vdir = 'build'
-
-# include drivers
-objs.extend(SConscript(os.path.dirname(SDK_ROOT) + '/libraries/STM32F1xx_HAL/SConscript'))
+stm32_library = 'STM32F1xx_HAL'
+rtconfig.BSP_LIBRARY_TYPE = stm32_library
# include libraries
-objs.extend(SConscript(os.path.dirname(SDK_ROOT) + '/libraries/HAL_Drivers/SConscript'))
+objs.extend(SConscript(os.path.join(libraries_path_prefix, stm32_library, 'SConscript')))
+
+# include drivers
+objs.extend(SConscript(os.path.join(libraries_path_prefix, 'HAL_Drivers', 'SConscript')))
# make a building
DoBuilding(TARGET, objs)
diff --git a/bsp/stm32/stm32f103-fire-arbitrary/board/SConscript b/bsp/stm32/stm32f103-fire-arbitrary/board/SConscript
index 892d5d6fec0c68751f937f824183290820da80b1..24b0a3b97a2d07c4c04f53da85de946ab9da2ef1 100644
--- a/bsp/stm32/stm32f103-fire-arbitrary/board/SConscript
+++ b/bsp/stm32/stm32f103-fire-arbitrary/board/SConscript
@@ -1,10 +1,16 @@
+import os
import rtconfig
from building import *
+Import('SDK_LIB')
+
cwd = GetCurrentDir()
-src = Glob('board.c')
-src += Glob('CubeMX_Config/Src/stm32f1xx_hal_msp.c')
+# add general drivers
+src = Split('''
+board.c
+CubeMX_Config/Src/stm32f1xx_hal_msp.c
+''')
if GetDepend(['BSP_USING_ETH']):
src += Glob('ports/w5500_device.c')
@@ -16,12 +22,14 @@ path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']
path += [cwd + '/ports']
+startup_path_prefix = SDK_LIB
+
if rtconfig.CROSS_TOOL == 'gcc':
- src += [cwd + '/../../libraries/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xe.s']
+ src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xe.s']
elif rtconfig.CROSS_TOOL == 'keil':
- src += [cwd + '/../../libraries/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xe.s']
+ src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xe.s']
elif rtconfig.CROSS_TOOL == 'iar':
- src += [cwd + '/../../libraries/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f103xe.s']
+ src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/iar/startup_stm32f103xe.s']
CPPDEFINES = ['STM32F103xE']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
diff --git a/bsp/stm32/stm32f103-fire-arbitrary/rtconfig.py b/bsp/stm32/stm32f103-fire-arbitrary/rtconfig.py
index 7906918058514df117adb2ce11269cef6aba4a6d..79904118e5fc9d15a5e34a064d5df90335565d95 100644
--- a/bsp/stm32/stm32f103-fire-arbitrary/rtconfig.py
+++ b/bsp/stm32/stm32f103-fire-arbitrary/rtconfig.py
@@ -5,6 +5,9 @@ ARCH='arm'
CPU='cortex-m3'
CROSS_TOOL='gcc'
+# bsp lib config
+BSP_LIBRARY_TYPE = None
+
if os.getenv('RTT_CC'):
CROSS_TOOL = os.getenv('RTT_CC')
if os.getenv('RTT_ROOT'):
diff --git a/bsp/stm32/stm32f407-atk-explorer/SConstruct b/bsp/stm32/stm32f407-atk-explorer/SConstruct
index f9b3d33a620973a8ddc5ed85655d1ed1a14762da..c1609bf526ab010946758d14981ddea9895a234b 100644
--- a/bsp/stm32/stm32f407-atk-explorer/SConstruct
+++ b/bsp/stm32/stm32f407-atk-explorer/SConstruct
@@ -32,16 +32,27 @@ if rtconfig.PLATFORM == 'iar':
Export('RTT_ROOT')
Export('rtconfig')
+SDK_ROOT = os.path.abspath('./')
+
+if os.path.exists(SDK_ROOT + '/libraries'):
+ libraries_path_prefix = SDK_ROOT + '/libraries'
+else:
+ libraries_path_prefix = os.path.dirname(SDK_ROOT) + '/libraries'
+
+SDK_LIB = libraries_path_prefix
+Export('SDK_LIB')
+
# prepare building environment
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
-SDK_ROOT = os.path.abspath('./')
-
-# include drivers
-objs.extend(SConscript(os.path.dirname(SDK_ROOT) + '/libraries/STM32F4xx_HAL/SConscript'))
+stm32_library = 'STM32F4xx_HAL'
+rtconfig.BSP_LIBRARY_TYPE = stm32_library
# include libraries
-objs.extend(SConscript(os.path.dirname(SDK_ROOT) + '/libraries/HAL_Drivers/SConscript'))
+objs.extend(SConscript(os.path.join(libraries_path_prefix, stm32_library, 'SConscript')))
+
+# include drivers
+objs.extend(SConscript(os.path.join(libraries_path_prefix, 'HAL_Drivers', 'SConscript')))
# make a building
DoBuilding(TARGET, objs)
diff --git a/bsp/stm32/stm32f407-atk-explorer/board/SConscript b/bsp/stm32/stm32f407-atk-explorer/board/SConscript
index bcaf10e784fc1e589dcca0310e540b35d067e46f..ee12fe4ce66de904b40f995e540a76cccddba24b 100644
--- a/bsp/stm32/stm32f407-atk-explorer/board/SConscript
+++ b/bsp/stm32/stm32f407-atk-explorer/board/SConscript
@@ -1,11 +1,16 @@
+import os
import rtconfig
from building import *
+Import('SDK_LIB')
+
cwd = GetCurrentDir()
-# add the general drivers.
-src = Glob('board.c')
-src += Glob('CubeMX_Config/Src/stm32f4xx_hal_msp.c')
+# add general drivers
+src = Split('''
+board.c
+CubeMX_Config/Src/stm32f4xx_hal_msp.c
+''')
if GetDepend(['BSP_USING_ETH']):
src += Glob('ports/phy_reset.c')
@@ -17,12 +22,14 @@ path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']
path += [cwd + '/ports']
+startup_path_prefix = SDK_LIB
+
if rtconfig.CROSS_TOOL == 'gcc':
- src += [cwd + '/../../libraries/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f407xx.s']
+ src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f407xx.s']
elif rtconfig.CROSS_TOOL == 'keil':
- src += [cwd + '/../../libraries/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f407xx.s']
+ src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f407xx.s']
elif rtconfig.CROSS_TOOL == 'iar':
- src += [cwd + '/../../libraries/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/iar/startup_stm32f407xx.s']
+ src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/iar/startup_stm32f407xx.s']
CPPDEFINES = ['STM32F407xx']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
diff --git a/bsp/stm32/stm32f407-atk-explorer/rtconfig.py b/bsp/stm32/stm32f407-atk-explorer/rtconfig.py
index ce04832ca523f6d7fb1576c221cfa2770aa2db15..2e3b7cf4929d22771893e59487c441aed871e6f6 100644
--- a/bsp/stm32/stm32f407-atk-explorer/rtconfig.py
+++ b/bsp/stm32/stm32f407-atk-explorer/rtconfig.py
@@ -5,6 +5,9 @@ ARCH='arm'
CPU='cortex-m4'
CROSS_TOOL='gcc'
+# bsp lib config
+BSP_LIBRARY_TYPE = None
+
if os.getenv('RTT_CC'):
CROSS_TOOL = os.getenv('RTT_CC')
if os.getenv('RTT_ROOT'):
diff --git a/bsp/stm32/stm32f429-atk-apollo/SConstruct b/bsp/stm32/stm32f429-atk-apollo/SConstruct
index f9b3d33a620973a8ddc5ed85655d1ed1a14762da..c1609bf526ab010946758d14981ddea9895a234b 100644
--- a/bsp/stm32/stm32f429-atk-apollo/SConstruct
+++ b/bsp/stm32/stm32f429-atk-apollo/SConstruct
@@ -32,16 +32,27 @@ if rtconfig.PLATFORM == 'iar':
Export('RTT_ROOT')
Export('rtconfig')
+SDK_ROOT = os.path.abspath('./')
+
+if os.path.exists(SDK_ROOT + '/libraries'):
+ libraries_path_prefix = SDK_ROOT + '/libraries'
+else:
+ libraries_path_prefix = os.path.dirname(SDK_ROOT) + '/libraries'
+
+SDK_LIB = libraries_path_prefix
+Export('SDK_LIB')
+
# prepare building environment
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
-SDK_ROOT = os.path.abspath('./')
-
-# include drivers
-objs.extend(SConscript(os.path.dirname(SDK_ROOT) + '/libraries/STM32F4xx_HAL/SConscript'))
+stm32_library = 'STM32F4xx_HAL'
+rtconfig.BSP_LIBRARY_TYPE = stm32_library
# include libraries
-objs.extend(SConscript(os.path.dirname(SDK_ROOT) + '/libraries/HAL_Drivers/SConscript'))
+objs.extend(SConscript(os.path.join(libraries_path_prefix, stm32_library, 'SConscript')))
+
+# include drivers
+objs.extend(SConscript(os.path.join(libraries_path_prefix, 'HAL_Drivers', 'SConscript')))
# make a building
DoBuilding(TARGET, objs)
diff --git a/bsp/stm32/stm32f429-atk-apollo/board/SConscript b/bsp/stm32/stm32f429-atk-apollo/board/SConscript
index f58944ccbfeb9d1aaaf6f123ecf0abfa25caf011..e67a62e1e80439f1395cefda261c15035f3824e2 100644
--- a/bsp/stm32/stm32f429-atk-apollo/board/SConscript
+++ b/bsp/stm32/stm32f429-atk-apollo/board/SConscript
@@ -1,11 +1,16 @@
+import os
import rtconfig
from building import *
+Import('SDK_LIB')
+
cwd = GetCurrentDir()
-# add the general drivers.
-src = Glob('board.c')
-src += Glob('CubeMX_Config/Src/stm32f4xx_hal_msp.c')
+# add general drivers
+src = Split('''
+board.c
+CubeMX_Config/Src/stm32f4xx_hal_msp.c
+''')
if GetDepend(['BSP_USING_ETH']):
src += Glob('ports/phy_reset.c')
@@ -16,17 +21,15 @@ if GetDepend(['BSP_USING_SPI_FLASH']):
path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']
path += [cwd + '/ports']
-
-
-if GetDepend(['BSP_USING_SDRAM']):
- path += [cwd + '/ports']
+
+startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc':
- src += [cwd + '/../../libraries/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f429xx.s']
+ src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f429xx.s']
elif rtconfig.CROSS_TOOL == 'keil':
- src += [cwd + '/../../libraries/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f429xx.s']
+ src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f429xx.s']
elif rtconfig.CROSS_TOOL == 'iar':
- src += [cwd + '/../../libraries/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/iar/startup_stm32f429xx.s']
+ src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/iar/startup_stm32f429xx.s']
CPPDEFINES = ['STM32F429xx']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
diff --git a/bsp/stm32/stm32f429-atk-apollo/rtconfig.py b/bsp/stm32/stm32f429-atk-apollo/rtconfig.py
index ce04832ca523f6d7fb1576c221cfa2770aa2db15..2e3b7cf4929d22771893e59487c441aed871e6f6 100644
--- a/bsp/stm32/stm32f429-atk-apollo/rtconfig.py
+++ b/bsp/stm32/stm32f429-atk-apollo/rtconfig.py
@@ -5,6 +5,9 @@ ARCH='arm'
CPU='cortex-m4'
CROSS_TOOL='gcc'
+# bsp lib config
+BSP_LIBRARY_TYPE = None
+
if os.getenv('RTT_CC'):
CROSS_TOOL = os.getenv('RTT_CC')
if os.getenv('RTT_ROOT'):
diff --git a/bsp/stm32/stm32f429-fire-challenger/SConstruct b/bsp/stm32/stm32f429-fire-challenger/SConstruct
index f9b3d33a620973a8ddc5ed85655d1ed1a14762da..c1609bf526ab010946758d14981ddea9895a234b 100644
--- a/bsp/stm32/stm32f429-fire-challenger/SConstruct
+++ b/bsp/stm32/stm32f429-fire-challenger/SConstruct
@@ -32,16 +32,27 @@ if rtconfig.PLATFORM == 'iar':
Export('RTT_ROOT')
Export('rtconfig')
+SDK_ROOT = os.path.abspath('./')
+
+if os.path.exists(SDK_ROOT + '/libraries'):
+ libraries_path_prefix = SDK_ROOT + '/libraries'
+else:
+ libraries_path_prefix = os.path.dirname(SDK_ROOT) + '/libraries'
+
+SDK_LIB = libraries_path_prefix
+Export('SDK_LIB')
+
# prepare building environment
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
-SDK_ROOT = os.path.abspath('./')
-
-# include drivers
-objs.extend(SConscript(os.path.dirname(SDK_ROOT) + '/libraries/STM32F4xx_HAL/SConscript'))
+stm32_library = 'STM32F4xx_HAL'
+rtconfig.BSP_LIBRARY_TYPE = stm32_library
# include libraries
-objs.extend(SConscript(os.path.dirname(SDK_ROOT) + '/libraries/HAL_Drivers/SConscript'))
+objs.extend(SConscript(os.path.join(libraries_path_prefix, stm32_library, 'SConscript')))
+
+# include drivers
+objs.extend(SConscript(os.path.join(libraries_path_prefix, 'HAL_Drivers', 'SConscript')))
# make a building
DoBuilding(TARGET, objs)
diff --git a/bsp/stm32/stm32f429-fire-challenger/board/SConscript b/bsp/stm32/stm32f429-fire-challenger/board/SConscript
index b42904e35d13a5ebc3d9d0bbeb972055d3404d26..7345e4e191bacdc333df5678d9aed232382b5cc3 100644
--- a/bsp/stm32/stm32f429-fire-challenger/board/SConscript
+++ b/bsp/stm32/stm32f429-fire-challenger/board/SConscript
@@ -1,11 +1,16 @@
+import os
import rtconfig
from building import *
+Import('SDK_LIB')
+
cwd = GetCurrentDir()
-# add the general drivers.
-src = Glob('board.c')
-src += Glob('CubeMX_Config/Src/stm32f4xx_hal_msp.c')
+# add general drivers
+src = Split('''
+board.c
+CubeMX_Config/Src/stm32f4xx_hal_msp.c
+''')
if GetDepend(['BSP_USING_ETH']):
src += Glob('ports/phy_reset.c')
@@ -13,19 +18,18 @@ if GetDepend(['BSP_USING_ETH']):
if GetDepend(['BSP_USING_SPI_FLASH']):
src += Glob('ports/spi_flash_init.c')
-path = [cwd]
+path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']
path += [cwd + '/ports']
-if GetDepend(['BSP_USING_SDRAM']):
- path += [cwd + '/ports']
+startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc':
- src += [cwd + '/../../libraries/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f429xx.s']
+ src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f429xx.s']
elif rtconfig.CROSS_TOOL == 'keil':
- src += [cwd + '/../../libraries/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f429xx.s']
+ src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f429xx.s']
elif rtconfig.CROSS_TOOL == 'iar':
- src += [cwd + '/../../libraries/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/iar/startup_stm32f429xx.s']
+ src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/iar/startup_stm32f429xx.s']
CPPDEFINES = ['STM32F429xx']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
diff --git a/bsp/stm32/stm32f429-fire-challenger/rtconfig.py b/bsp/stm32/stm32f429-fire-challenger/rtconfig.py
index ce04832ca523f6d7fb1576c221cfa2770aa2db15..2e3b7cf4929d22771893e59487c441aed871e6f6 100644
--- a/bsp/stm32/stm32f429-fire-challenger/rtconfig.py
+++ b/bsp/stm32/stm32f429-fire-challenger/rtconfig.py
@@ -5,6 +5,9 @@ ARCH='arm'
CPU='cortex-m4'
CROSS_TOOL='gcc'
+# bsp lib config
+BSP_LIBRARY_TYPE = None
+
if os.getenv('RTT_CC'):
CROSS_TOOL = os.getenv('RTT_CC')
if os.getenv('RTT_ROOT'):
diff --git a/bsp/stm32/stm32f767-fire-challenger/.config b/bsp/stm32/stm32f767-fire-challenger/.config
index 5cb84f7e8c1ffc6457704934d991aa83be33fe46..90f3a7719ae30068fcb4b21cecfa52e3e07fb3fc 100644
--- a/bsp/stm32/stm32f767-fire-challenger/.config
+++ b/bsp/stm32/stm32f767-fire-challenger/.config
@@ -111,7 +111,7 @@ CONFIG_FINSH_ARG_MAX=10
CONFIG_RT_USING_DEVICE_IPC=y
CONFIG_RT_PIPE_BUFSZ=512
CONFIG_RT_USING_SERIAL=y
-CONFIG_RT_SERIAL_USING_DMA=y
+# CONFIG_RT_SERIAL_USING_DMA is not set
# CONFIG_RT_USING_CAN is not set
# CONFIG_RT_USING_HWTIMER is not set
# CONFIG_RT_USING_CPUTIME is not set
@@ -198,6 +198,7 @@ CONFIG_RT_USING_PIN=y
#
# CONFIG_PKG_USING_PAHOMQTT is not set
# CONFIG_PKG_USING_WEBCLIENT is not set
+# CONFIG_PKG_USING_WEBNET is not set
# CONFIG_PKG_USING_MONGOOSE is not set
# CONFIG_PKG_USING_WEBTERMINAL is not set
# CONFIG_PKG_USING_CJSON is not set
@@ -223,6 +224,7 @@ CONFIG_RT_USING_PIN=y
# CONFIG_PKG_USING_NOPOLL is not set
# CONFIG_PKG_USING_NETUTILS is not set
# CONFIG_PKG_USING_AT_DEVICE is not set
+# CONFIG_PKG_USING_WIZNET is not set
#
# IoT Cloud
@@ -231,6 +233,7 @@ CONFIG_RT_USING_PIN=y
# CONFIG_PKG_USING_GAGENT_CLOUD is not set
# CONFIG_PKG_USING_ALI_IOTKIT is not set
# CONFIG_PKG_USING_AZURE is not set
+# CONFIG_PKG_USING_TENCENT_IOTKIT is not set
#
# security packages
@@ -259,6 +262,9 @@ CONFIG_RT_USING_PIN=y
# CONFIG_PKG_USING_EASYFLASH is not set
# CONFIG_PKG_USING_EASYLOGGER is not set
# CONFIG_PKG_USING_SYSTEMVIEW is not set
+# CONFIG_PKG_USING_RDB is not set
+# CONFIG_PKG_USING_QRCODE is not set
+# CONFIG_PKG_USING_ULOG_EASYFLASH is not set
#
# system packages
@@ -273,17 +279,24 @@ CONFIG_RT_USING_PIN=y
# CONFIG_PKG_USING_SQLITE is not set
# CONFIG_PKG_USING_RTI is not set
# CONFIG_PKG_USING_LITTLEVGL2RTT is not set
+# CONFIG_PKG_USING_CMSIS is not set
+# CONFIG_PKG_USING_DFS_YAFFS is not set
+# CONFIG_PKG_USING_LITTLEFS is not set
#
# peripheral libraries and drivers
#
-# CONFIG_PKG_USING_STM32F4_HAL is not set
-# CONFIG_PKG_USING_STM32F4_DRIVERS is not set
# CONFIG_PKG_USING_REALTEK_AMEBA is not set
# CONFIG_PKG_USING_SHT2X is not set
# CONFIG_PKG_USING_AHT10 is not set
# CONFIG_PKG_USING_AP3216C is not set
# CONFIG_PKG_USING_STM32_SDIO is not set
+# CONFIG_PKG_USING_ICM20608 is not set
+# CONFIG_PKG_USING_U8G2 is not set
+# CONFIG_PKG_USING_BUTTON is not set
+# CONFIG_PKG_USING_MPU6XXX is not set
+# CONFIG_PKG_USING_PCF8574 is not set
+# CONFIG_PKG_USING_KENDRYTE_SDK is not set
#
# miscellaneous packages
@@ -297,10 +310,7 @@ CONFIG_RT_USING_PIN=y
# CONFIG_PKG_USING_CANFESTIVAL is not set
# CONFIG_PKG_USING_ZLIB is not set
# CONFIG_PKG_USING_DSTR is not set
-
-#
-# sample package
-#
+# CONFIG_PKG_USING_TINYFRAME is not set
#
# samples: kernel and components samples
@@ -309,10 +319,6 @@ CONFIG_RT_USING_PIN=y
# CONFIG_PKG_USING_FILESYSTEM_SAMPLES is not set
# CONFIG_PKG_USING_NETWORK_SAMPLES is not set
# CONFIG_PKG_USING_PERIPHERAL_SAMPLES is not set
-
-#
-# example package: hello
-#
# CONFIG_PKG_USING_HELLO is not set
CONFIG_SOC_FAMILY_STM32=y
CONFIG_SOC_SERIES_STM32F7=y
@@ -328,6 +334,8 @@ CONFIG_SOC_STM32F767IG=y
CONFIG_BSP_USING_USB_TO_USART=y
# CONFIG_BSP_USING_RS232 is not set
# CONFIG_BSP_USING_SDRAM is not set
+# CONFIG_BSP_USING_QSPI_FLASH is not set
+# CONFIG_BSP_USING_MPU6050 is not set
#
# On-chip Peripheral Drivers
@@ -342,8 +350,12 @@ CONFIG_BSP_USING_UART1=y
# CONFIG_BSP_USING_SPI2 is not set
# CONFIG_BSP_USING_SPI5 is not set
# CONFIG_BSP_SPI_USING_DMA is not set
+# CONFIG_BSP_USING_QSPI is not set
# CONFIG_BSP_USING_ADC is not set
# CONFIG_BSP_USING_I2C1 is not set
+# CONFIG_BSP_USING_I2C2 is not set
+# CONFIG_BSP_USING_I2C3 is not set
+# CONFIG_BSP_USING_I2C4 is not set
# CONFIG_BSP_USING_ONCHIP_RTC is not set
# CONFIG_BSP_USING_WDT is not set
diff --git a/bsp/stm32/stm32f767-fire-challenger/project.uvoptx b/bsp/stm32/stm32f767-fire-challenger/project.uvoptx
deleted file mode 100644
index 58301aec9496aab292216cd2d93b7bf90dd7561b..0000000000000000000000000000000000000000
--- a/bsp/stm32/stm32f767-fire-challenger/project.uvoptx
+++ /dev/null
@@ -1,1764 +0,0 @@
-
-
-
- 1.0
-
- ### uVision Project, (C) Keil Software
-
-
- *.c
- *.s*; *.src; *.a*
- *.obj; *.o
- *.lib
- *.txt; *.h; *.inc
- *.plm
- *.cpp
- 0
-
-
-
- 0
- 0
-
-
-
- rt-thread
- 0x4
- ARM-ADS
-
- 12000000
-
- 1
- 1
- 0
- 1
- 0
-
-
- 1
- 65535
- 0
- 0
- 0
-
-
- 79
- 66
- 8
- .\build\keil\List\
-
-
- 1
- 1
- 1
- 0
- 1
- 1
- 0
- 1
- 0
- 0
- 0
- 0
-
-
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 0
- 0
-
-
- 1
- 0
- 1
-
- 18
-
- 0
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 0
- 1
- 1
- 1
- 1
- 0
- 0
- 1
- 0
- 0
- 3
-
-
-
-
-
-
-
-
-
-
- Segger\JL2CM3.dll
-
-
-
- 0
- JL2CM3
- -U59400616 -O14 -S2 -ZTIFSpeedSel5000 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight JTAG-DP") -D00(5BA00477) -L00(4) -N01("Unknown JTAG device") -D01(06451041) -L01(5) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20020000 -FC1000 -FN1 -FF0STM32F7x_1024.FLM -FS08000000 -FL0100000 -FP0($$Device:STM32F767IGTx$CMSIS\Flash\STM32F7x_1024.FLM)
-
-
- 0
- UL2CM3
- UL2CM3(-S0 -C0 -P0 ) -FN2 -FC1000 -FD20020000 -FF0STM32F7x_1024 -FF1STM32F7x_1024dual -FL0100000 -FL1100000 -FS08000000 -FS18000000 -FP0($$Device:STM32F767IGTx$CMSIS\Flash\STM32F7x_1024.FLM) -FP1($$Device:STM32F767IGTx$CMSIS\Flash\STM32F7x_1024dual.FLM)
-
-
-
-
- 0
-
-
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
-
-
-
- 0
- 0
- 0
-
-
-
-
-
-
-
-
-
- 1
- 0
- 0
- 2
- 10000000
-
-
-
-
-
- Applications
- 0
- 0
- 0
- 0
-
- 1
- 1
- 1
- 0
- 0
- 0
- applications\main.c
- main.c
- 0
- 0
-
-
-
-
- Drivers
- 0
- 0
- 0
- 0
-
- 2
- 2
- 1
- 0
- 0
- 0
- board\board.c
- board.c
- 0
- 0
-
-
- 2
- 3
- 1
- 0
- 0
- 0
- board\CubeMX_Config\Src\stm32f7xx_hal_msp.c
- stm32f7xx_hal_msp.c
- 0
- 0
-
-
- 2
- 4
- 2
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\CMSIS\Device\ST\STM32F7xx\Source\Templates\arm\startup_stm32f767xx.s
- startup_stm32f767xx.s
- 0
- 0
-
-
- 2
- 5
- 1
- 0
- 0
- 0
- ..\libraries\HAL_Drivers\drv_gpio.c
- drv_gpio.c
- 0
- 0
-
-
- 2
- 6
- 1
- 0
- 0
- 0
- ..\libraries\HAL_Drivers\drv_usart.c
- drv_usart.c
- 0
- 0
-
-
- 2
- 7
- 1
- 0
- 0
- 0
- ..\libraries\HAL_Drivers\drv_common.c
- drv_common.c
- 0
- 0
-
-
-
-
- Kernel
- 0
- 0
- 0
- 0
-
- 3
- 8
- 1
- 0
- 0
- 0
- ..\..\..\src\clock.c
- clock.c
- 0
- 0
-
-
- 3
- 9
- 1
- 0
- 0
- 0
- ..\..\..\src\components.c
- components.c
- 0
- 0
-
-
- 3
- 10
- 1
- 0
- 0
- 0
- ..\..\..\src\cpu.c
- cpu.c
- 0
- 0
-
-
- 3
- 11
- 1
- 0
- 0
- 0
- ..\..\..\src\device.c
- device.c
- 0
- 0
-
-
- 3
- 12
- 1
- 0
- 0
- 0
- ..\..\..\src\idle.c
- idle.c
- 0
- 0
-
-
- 3
- 13
- 1
- 0
- 0
- 0
- ..\..\..\src\ipc.c
- ipc.c
- 0
- 0
-
-
- 3
- 14
- 1
- 0
- 0
- 0
- ..\..\..\src\irq.c
- irq.c
- 0
- 0
-
-
- 3
- 15
- 1
- 0
- 0
- 0
- ..\..\..\src\kservice.c
- kservice.c
- 0
- 0
-
-
- 3
- 16
- 1
- 0
- 0
- 0
- ..\..\..\src\memheap.c
- memheap.c
- 0
- 0
-
-
- 3
- 17
- 1
- 0
- 0
- 0
- ..\..\..\src\mempool.c
- mempool.c
- 0
- 0
-
-
- 3
- 18
- 1
- 0
- 0
- 0
- ..\..\..\src\object.c
- object.c
- 0
- 0
-
-
- 3
- 19
- 1
- 0
- 0
- 0
- ..\..\..\src\scheduler.c
- scheduler.c
- 0
- 0
-
-
- 3
- 20
- 1
- 0
- 0
- 0
- ..\..\..\src\signal.c
- signal.c
- 0
- 0
-
-
- 3
- 21
- 1
- 0
- 0
- 0
- ..\..\..\src\thread.c
- thread.c
- 0
- 0
-
-
- 3
- 22
- 1
- 0
- 0
- 0
- ..\..\..\src\timer.c
- timer.c
- 0
- 0
-
-
-
-
- CORTEX-M7
- 0
- 0
- 0
- 0
-
- 4
- 23
- 1
- 0
- 0
- 0
- ..\..\..\libcpu\arm\cortex-m7\cpuport.c
- cpuport.c
- 0
- 0
-
-
- 4
- 24
- 2
- 0
- 0
- 0
- ..\..\..\libcpu\arm\cortex-m7\context_rvds.S
- context_rvds.S
- 0
- 0
-
-
- 4
- 25
- 1
- 0
- 0
- 0
- ..\..\..\libcpu\arm\common\backtrace.c
- backtrace.c
- 0
- 0
-
-
- 4
- 26
- 1
- 0
- 0
- 0
- ..\..\..\libcpu\arm\common\div0.c
- div0.c
- 0
- 0
-
-
- 4
- 27
- 1
- 0
- 0
- 0
- ..\..\..\libcpu\arm\common\showmem.c
- showmem.c
- 0
- 0
-
-
-
-
- DeviceDrivers
- 0
- 0
- 0
- 0
-
- 5
- 28
- 1
- 0
- 0
- 0
- ..\..\..\components\drivers\misc\pin.c
- pin.c
- 0
- 0
-
-
- 5
- 29
- 1
- 0
- 0
- 0
- ..\..\..\components\drivers\serial\serial.c
- serial.c
- 0
- 0
-
-
- 5
- 30
- 1
- 0
- 0
- 0
- ..\..\..\components\drivers\src\completion.c
- completion.c
- 0
- 0
-
-
- 5
- 31
- 1
- 0
- 0
- 0
- ..\..\..\components\drivers\src\dataqueue.c
- dataqueue.c
- 0
- 0
-
-
- 5
- 32
- 1
- 0
- 0
- 0
- ..\..\..\components\drivers\src\pipe.c
- pipe.c
- 0
- 0
-
-
- 5
- 33
- 1
- 0
- 0
- 0
- ..\..\..\components\drivers\src\ringblk_buf.c
- ringblk_buf.c
- 0
- 0
-
-
- 5
- 34
- 1
- 0
- 0
- 0
- ..\..\..\components\drivers\src\ringbuffer.c
- ringbuffer.c
- 0
- 0
-
-
- 5
- 35
- 1
- 0
- 0
- 0
- ..\..\..\components\drivers\src\waitqueue.c
- waitqueue.c
- 0
- 0
-
-
- 5
- 36
- 1
- 0
- 0
- 0
- ..\..\..\components\drivers\src\workqueue.c
- workqueue.c
- 0
- 0
-
-
-
-
- finsh
- 0
- 0
- 0
- 0
-
- 6
- 37
- 1
- 0
- 0
- 0
- ..\..\..\components\finsh\shell.c
- shell.c
- 0
- 0
-
-
- 6
- 38
- 1
- 0
- 0
- 0
- ..\..\..\components\finsh\symbol.c
- symbol.c
- 0
- 0
-
-
- 6
- 39
- 1
- 0
- 0
- 0
- ..\..\..\components\finsh\cmd.c
- cmd.c
- 0
- 0
-
-
- 6
- 40
- 1
- 0
- 0
- 0
- ..\..\..\components\finsh\msh.c
- msh.c
- 0
- 0
-
-
- 6
- 41
- 1
- 0
- 0
- 0
- ..\..\..\components\finsh\msh_cmd.c
- msh_cmd.c
- 0
- 0
-
-
- 6
- 42
- 1
- 0
- 0
- 0
- ..\..\..\components\finsh\msh_file.c
- msh_file.c
- 0
- 0
-
-
-
-
- STM32_HAL
- 0
- 0
- 0
- 0
-
- 7
- 43
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal.c
- stm32f7xx_hal.c
- 0
- 0
-
-
- 7
- 44
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_adc.c
- stm32f7xx_hal_adc.c
- 0
- 0
-
-
- 7
- 45
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_adc_ex.c
- stm32f7xx_hal_adc_ex.c
- 0
- 0
-
-
- 7
- 46
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_can.c
- stm32f7xx_hal_can.c
- 0
- 0
-
-
- 7
- 47
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_cec.c
- stm32f7xx_hal_cec.c
- 0
- 0
-
-
- 7
- 48
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_cortex.c
- stm32f7xx_hal_cortex.c
- 0
- 0
-
-
- 7
- 49
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_crc.c
- stm32f7xx_hal_crc.c
- 0
- 0
-
-
- 7
- 50
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_crc_ex.c
- stm32f7xx_hal_crc_ex.c
- 0
- 0
-
-
- 7
- 51
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_cryp.c
- stm32f7xx_hal_cryp.c
- 0
- 0
-
-
- 7
- 52
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_cryp_ex.c
- stm32f7xx_hal_cryp_ex.c
- 0
- 0
-
-
- 7
- 53
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dac.c
- stm32f7xx_hal_dac.c
- 0
- 0
-
-
- 7
- 54
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dac_ex.c
- stm32f7xx_hal_dac_ex.c
- 0
- 0
-
-
- 7
- 55
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dcmi.c
- stm32f7xx_hal_dcmi.c
- 0
- 0
-
-
- 7
- 56
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dcmi_ex.c
- stm32f7xx_hal_dcmi_ex.c
- 0
- 0
-
-
- 7
- 57
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dfsdm.c
- stm32f7xx_hal_dfsdm.c
- 0
- 0
-
-
- 7
- 58
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dma.c
- stm32f7xx_hal_dma.c
- 0
- 0
-
-
- 7
- 59
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dma2d.c
- stm32f7xx_hal_dma2d.c
- 0
- 0
-
-
- 7
- 60
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dma_ex.c
- stm32f7xx_hal_dma_ex.c
- 0
- 0
-
-
- 7
- 61
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dsi.c
- stm32f7xx_hal_dsi.c
- 0
- 0
-
-
- 7
- 62
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_eth.c
- stm32f7xx_hal_eth.c
- 0
- 0
-
-
- 7
- 63
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_flash.c
- stm32f7xx_hal_flash.c
- 0
- 0
-
-
- 7
- 64
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_flash_ex.c
- stm32f7xx_hal_flash_ex.c
- 0
- 0
-
-
- 7
- 65
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_gpio.c
- stm32f7xx_hal_gpio.c
- 0
- 0
-
-
- 7
- 66
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_hash.c
- stm32f7xx_hal_hash.c
- 0
- 0
-
-
- 7
- 67
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_hash_ex.c
- stm32f7xx_hal_hash_ex.c
- 0
- 0
-
-
- 7
- 68
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_hcd.c
- stm32f7xx_hal_hcd.c
- 0
- 0
-
-
- 7
- 69
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_i2c.c
- stm32f7xx_hal_i2c.c
- 0
- 0
-
-
- 7
- 70
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_i2c_ex.c
- stm32f7xx_hal_i2c_ex.c
- 0
- 0
-
-
- 7
- 71
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_i2s.c
- stm32f7xx_hal_i2s.c
- 0
- 0
-
-
- 7
- 72
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_irda.c
- stm32f7xx_hal_irda.c
- 0
- 0
-
-
- 7
- 73
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_iwdg.c
- stm32f7xx_hal_iwdg.c
- 0
- 0
-
-
- 7
- 74
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_jpeg.c
- stm32f7xx_hal_jpeg.c
- 0
- 0
-
-
- 7
- 75
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_lptim.c
- stm32f7xx_hal_lptim.c
- 0
- 0
-
-
- 7
- 76
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_ltdc.c
- stm32f7xx_hal_ltdc.c
- 0
- 0
-
-
- 7
- 77
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_ltdc_ex.c
- stm32f7xx_hal_ltdc_ex.c
- 0
- 0
-
-
- 7
- 78
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_mdios.c
- stm32f7xx_hal_mdios.c
- 0
- 0
-
-
- 7
- 79
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_mmc.c
- stm32f7xx_hal_mmc.c
- 0
- 0
-
-
- 7
- 80
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_nand.c
- stm32f7xx_hal_nand.c
- 0
- 0
-
-
- 7
- 81
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_nor.c
- stm32f7xx_hal_nor.c
- 0
- 0
-
-
- 7
- 82
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_pcd.c
- stm32f7xx_hal_pcd.c
- 0
- 0
-
-
- 7
- 83
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_pcd_ex.c
- stm32f7xx_hal_pcd_ex.c
- 0
- 0
-
-
- 7
- 84
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_pwr.c
- stm32f7xx_hal_pwr.c
- 0
- 0
-
-
- 7
- 85
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_pwr_ex.c
- stm32f7xx_hal_pwr_ex.c
- 0
- 0
-
-
- 7
- 86
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_qspi.c
- stm32f7xx_hal_qspi.c
- 0
- 0
-
-
- 7
- 87
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_rcc.c
- stm32f7xx_hal_rcc.c
- 0
- 0
-
-
- 7
- 88
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_rcc_ex.c
- stm32f7xx_hal_rcc_ex.c
- 0
- 0
-
-
- 7
- 89
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_rng.c
- stm32f7xx_hal_rng.c
- 0
- 0
-
-
- 7
- 90
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_rtc.c
- stm32f7xx_hal_rtc.c
- 0
- 0
-
-
- 7
- 91
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_rtc_ex.c
- stm32f7xx_hal_rtc_ex.c
- 0
- 0
-
-
- 7
- 92
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_sai.c
- stm32f7xx_hal_sai.c
- 0
- 0
-
-
- 7
- 93
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_sai_ex.c
- stm32f7xx_hal_sai_ex.c
- 0
- 0
-
-
- 7
- 94
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_sd.c
- stm32f7xx_hal_sd.c
- 0
- 0
-
-
- 7
- 95
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_sdram.c
- stm32f7xx_hal_sdram.c
- 0
- 0
-
-
- 7
- 96
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_smartcard.c
- stm32f7xx_hal_smartcard.c
- 0
- 0
-
-
- 7
- 97
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_smartcard_ex.c
- stm32f7xx_hal_smartcard_ex.c
- 0
- 0
-
-
- 7
- 98
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_smbus.c
- stm32f7xx_hal_smbus.c
- 0
- 0
-
-
- 7
- 99
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_spdifrx.c
- stm32f7xx_hal_spdifrx.c
- 0
- 0
-
-
- 7
- 100
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_spi.c
- stm32f7xx_hal_spi.c
- 0
- 0
-
-
- 7
- 101
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_sram.c
- stm32f7xx_hal_sram.c
- 0
- 0
-
-
- 7
- 102
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_tim.c
- stm32f7xx_hal_tim.c
- 0
- 0
-
-
- 7
- 103
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_tim_ex.c
- stm32f7xx_hal_tim_ex.c
- 0
- 0
-
-
- 7
- 104
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_uart.c
- stm32f7xx_hal_uart.c
- 0
- 0
-
-
- 7
- 105
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_usart.c
- stm32f7xx_hal_usart.c
- 0
- 0
-
-
- 7
- 106
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_wwdg.c
- stm32f7xx_hal_wwdg.c
- 0
- 0
-
-
- 7
- 107
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_adc.c
- stm32f7xx_ll_adc.c
- 0
- 0
-
-
- 7
- 108
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_crc.c
- stm32f7xx_ll_crc.c
- 0
- 0
-
-
- 7
- 109
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_dac.c
- stm32f7xx_ll_dac.c
- 0
- 0
-
-
- 7
- 110
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_dma.c
- stm32f7xx_ll_dma.c
- 0
- 0
-
-
- 7
- 111
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_dma2d.c
- stm32f7xx_ll_dma2d.c
- 0
- 0
-
-
- 7
- 112
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_exti.c
- stm32f7xx_ll_exti.c
- 0
- 0
-
-
- 7
- 113
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_fmc.c
- stm32f7xx_ll_fmc.c
- 0
- 0
-
-
- 7
- 114
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_gpio.c
- stm32f7xx_ll_gpio.c
- 0
- 0
-
-
- 7
- 115
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_i2c.c
- stm32f7xx_ll_i2c.c
- 0
- 0
-
-
- 7
- 116
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_lptim.c
- stm32f7xx_ll_lptim.c
- 0
- 0
-
-
- 7
- 117
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_pwr.c
- stm32f7xx_ll_pwr.c
- 0
- 0
-
-
- 7
- 118
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_rcc.c
- stm32f7xx_ll_rcc.c
- 0
- 0
-
-
- 7
- 119
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_rng.c
- stm32f7xx_ll_rng.c
- 0
- 0
-
-
- 7
- 120
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_rtc.c
- stm32f7xx_ll_rtc.c
- 0
- 0
-
-
- 7
- 121
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_sdmmc.c
- stm32f7xx_ll_sdmmc.c
- 0
- 0
-
-
- 7
- 122
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_spi.c
- stm32f7xx_ll_spi.c
- 0
- 0
-
-
- 7
- 123
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_tim.c
- stm32f7xx_ll_tim.c
- 0
- 0
-
-
- 7
- 124
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_usart.c
- stm32f7xx_ll_usart.c
- 0
- 0
-
-
- 7
- 125
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_usb.c
- stm32f7xx_ll_usb.c
- 0
- 0
-
-
- 7
- 126
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_utils.c
- stm32f7xx_ll_utils.c
- 0
- 0
-
-
- 7
- 127
- 1
- 0
- 0
- 0
- ..\libraries\STM32F7xx_HAL\CMSIS\Device\ST\STM32F7xx\Source\Templates\system_stm32f7xx.c
- system_stm32f7xx.c
- 0
- 0
-
-
-
-
diff --git a/bsp/stm32/stm32f767-fire-challenger/project.uvprojx b/bsp/stm32/stm32f767-fire-challenger/project.uvprojx
deleted file mode 100644
index 746cbc6e4d155b1c676ad4ff30cf1fbb1dbd0f48..0000000000000000000000000000000000000000
--- a/bsp/stm32/stm32f767-fire-challenger/project.uvprojx
+++ /dev/null
@@ -1,1062 +0,0 @@
-
-
-
- 2.1
-
- ### uVision Project, (C) Keil Software
-
-
-
- rt-thread
- 0x4
- ARM-ADS
- 5060750::V5.06 update 6 (build 750)::ARMCC
- 0
-
-
- STM32F767IGTx
- STMicroelectronics
- Keil.STM32F7xx_DFP.2.11.0
- http://www.keil.com/pack
- IRAM(0x20020000,0x60000) IRAM2(0x20000000,0x20000) IROM(0x08000000,0x100000) IROM2(0x00200000,0x100000) CPUTYPE("Cortex-M7") FPU3(DFPU) CLOCK(12000000) ELITTLE
-
-
- UL2CM3(-S0 -C0 -P0 -FD20020000 -FC1000 -FN2 -FF0STM32F7x_1024 -FS08000000 -FL0100000 -FF1STM32F7x_1024dual -FS18000000 -FL1100000 -FP0($$Device:STM32F767IGTx$CMSIS\Flash\STM32F7x_1024.FLM) -FP1($$Device:STM32F767IGTx$CMSIS\Flash\STM32F7x_1024dual.FLM))
- 0
- $$Device:STM32F767IGTx$Drivers\CMSIS\Device\ST\STM32F7xx\Include\stm32f7xx.h
-
-
-
-
-
-
-
-
-
- $$Device:STM32F767IGTx$CMSIS\SVD\STM32F7x7_v1r2.svd
- 0
- 0
-
-
-
-
-
-
- 0
- 0
- 0
- 0
- 1
-
- .\build\keil\Obj\
- rt-thread
- 1
- 0
- 0
- 1
- 1
- .\build\keil\List\
- 1
- 0
- 0
-
- 0
- 0
-
-
- 0
- 0
- 0
- 0
-
-
- 0
- 0
-
-
- 0
- 0
- 0
- 0
-
-
- 1
- 0
- fromelf --bin !L --output rtthread.bin
-
- 0
- 0
- 0
- 0
-
- 0
-
-
-
- 0
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 3
-
-
- 1
-
-
- SARMCM3.DLL
- -REMAP -MPU
- DCM.DLL
- -pCM7
- SARMCM3.DLL
- -MPU
- TCM.DLL
- -pCM7
-
-
-
- 1
- 0
- 0
- 0
- 16
-
-
-
-
- 1
- 0
- 0
- 1
- 1
- 4096
-
- 1
- BIN\UL2CM3.DLL
-
-
-
-
-
- 0
-
-
-
- 0
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 0
- 1
- 1
- 0
- 1
- 1
- 0
- 0
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 0
- 0
- "Cortex-M7"
-
- 0
- 0
- 0
- 1
- 1
- 0
- 0
- 3
- 0
- 1
- 1
- 8
- 0
- 0
- 0
- 0
- 4
- 4
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 1
- 1
-
-
- 0
- 0x0
- 0x0
-
-
- 0
- 0x0
- 0x0
-
-
- 0
- 0x0
- 0x0
-
-
- 0
- 0x0
- 0x0
-
-
- 0
- 0x0
- 0x0
-
-
- 0
- 0x0
- 0x0
-
-
- 0
- 0x20020000
- 0x60000
-
-
- 1
- 0x8000000
- 0x100000
-
-
- 0
- 0x0
- 0x0
-
-
- 1
- 0x0
- 0x0
-
-
- 1
- 0x0
- 0x0
-
-
- 1
- 0x0
- 0x0
-
-
- 1
- 0x8000000
- 0x100000
-
-
- 1
- 0x200000
- 0x100000
-
-
- 0
- 0x0
- 0x0
-
-
- 0
- 0x0
- 0x0
-
-
- 0
- 0x0
- 0x0
-
-
- 0
- 0x20020000
- 0x60000
-
-
- 0
- 0x20000000
- 0x20000
-
-
-
-
-
- 1
- 1
- 0
- 0
- 1
- 0
- 0
- 0
- 0
- 0
- 2
- 0
- 0
- 1
- 0
- 0
- 1
- 1
- 1
- 1
- 0
- 0
- 0
-
-
- STM32F767xx, USE_HAL_DRIVER
-
- applications;.;board;board\CubeMX_Config\Inc;board\ports;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\include;..\..\..\libcpu\arm\cortex-m7;..\..\..\libcpu\arm\common;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\finsh;..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Inc;..\libraries\STM32F7xx_HAL\CMSIS\Device\ST\STM32F7xx\Include;..\libraries\STM32F7xx_HAL\CMSIS\Include
-
-
-
- 1
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
-
-
-
-
-
-
-
-
- 0
- 0
- 0
- 0
- 1
- 0
- 0x08000000
- 0x20000000
-
- .\board\linker_scripts\link.sct
-
-
- --keep *.o(.rti_fn.*) --keep *.o(FSymTab)
-
-
-
-
-
-
-
- Applications
-
-
- main.c
- 1
- applications\main.c
-
-
-
-
- Drivers
-
-
- board.c
- 1
- board\board.c
-
-
- stm32f7xx_hal_msp.c
- 1
- board\CubeMX_Config\Src\stm32f7xx_hal_msp.c
-
-
- startup_stm32f767xx.s
- 2
- ..\libraries\STM32F7xx_HAL\CMSIS\Device\ST\STM32F7xx\Source\Templates\arm\startup_stm32f767xx.s
-
-
- drv_gpio.c
- 1
- ..\libraries\HAL_Drivers\drv_gpio.c
-
-
- drv_usart.c
- 1
- ..\libraries\HAL_Drivers\drv_usart.c
-
-
- drv_common.c
- 1
- ..\libraries\HAL_Drivers\drv_common.c
-
-
-
-
- Kernel
-
-
- clock.c
- 1
- ..\..\..\src\clock.c
-
-
- components.c
- 1
- ..\..\..\src\components.c
-
-
- cpu.c
- 1
- ..\..\..\src\cpu.c
-
-
- device.c
- 1
- ..\..\..\src\device.c
-
-
- idle.c
- 1
- ..\..\..\src\idle.c
-
-
- ipc.c
- 1
- ..\..\..\src\ipc.c
-
-
- irq.c
- 1
- ..\..\..\src\irq.c
-
-
- kservice.c
- 1
- ..\..\..\src\kservice.c
-
-
- memheap.c
- 1
- ..\..\..\src\memheap.c
-
-
- mempool.c
- 1
- ..\..\..\src\mempool.c
-
-
- object.c
- 1
- ..\..\..\src\object.c
-
-
- scheduler.c
- 1
- ..\..\..\src\scheduler.c
-
-
- signal.c
- 1
- ..\..\..\src\signal.c
-
-
- thread.c
- 1
- ..\..\..\src\thread.c
-
-
- timer.c
- 1
- ..\..\..\src\timer.c
-
-
-
-
- CORTEX-M7
-
-
- cpuport.c
- 1
- ..\..\..\libcpu\arm\cortex-m7\cpuport.c
-
-
- context_rvds.S
- 2
- ..\..\..\libcpu\arm\cortex-m7\context_rvds.S
-
-
- backtrace.c
- 1
- ..\..\..\libcpu\arm\common\backtrace.c
-
-
- div0.c
- 1
- ..\..\..\libcpu\arm\common\div0.c
-
-
- showmem.c
- 1
- ..\..\..\libcpu\arm\common\showmem.c
-
-
-
-
- DeviceDrivers
-
-
- pin.c
- 1
- ..\..\..\components\drivers\misc\pin.c
-
-
- serial.c
- 1
- ..\..\..\components\drivers\serial\serial.c
-
-
- completion.c
- 1
- ..\..\..\components\drivers\src\completion.c
-
-
- dataqueue.c
- 1
- ..\..\..\components\drivers\src\dataqueue.c
-
-
- pipe.c
- 1
- ..\..\..\components\drivers\src\pipe.c
-
-
- ringblk_buf.c
- 1
- ..\..\..\components\drivers\src\ringblk_buf.c
-
-
- ringbuffer.c
- 1
- ..\..\..\components\drivers\src\ringbuffer.c
-
-
- waitqueue.c
- 1
- ..\..\..\components\drivers\src\waitqueue.c
-
-
- workqueue.c
- 1
- ..\..\..\components\drivers\src\workqueue.c
-
-
-
-
- finsh
-
-
- shell.c
- 1
- ..\..\..\components\finsh\shell.c
-
-
- symbol.c
- 1
- ..\..\..\components\finsh\symbol.c
-
-
- cmd.c
- 1
- ..\..\..\components\finsh\cmd.c
-
-
- msh.c
- 1
- ..\..\..\components\finsh\msh.c
-
-
- msh_cmd.c
- 1
- ..\..\..\components\finsh\msh_cmd.c
-
-
- msh_file.c
- 1
- ..\..\..\components\finsh\msh_file.c
-
-
-
-
- STM32_HAL
-
-
- stm32f7xx_hal.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal.c
-
-
- stm32f7xx_hal_adc.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_adc.c
-
-
- stm32f7xx_hal_adc_ex.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_adc_ex.c
-
-
- stm32f7xx_hal_can.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_can.c
-
-
- stm32f7xx_hal_cec.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_cec.c
-
-
- stm32f7xx_hal_cortex.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_cortex.c
-
-
- stm32f7xx_hal_crc.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_crc.c
-
-
- stm32f7xx_hal_crc_ex.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_crc_ex.c
-
-
- stm32f7xx_hal_cryp.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_cryp.c
-
-
- stm32f7xx_hal_cryp_ex.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_cryp_ex.c
-
-
- stm32f7xx_hal_dac.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dac.c
-
-
- stm32f7xx_hal_dac_ex.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dac_ex.c
-
-
- stm32f7xx_hal_dcmi.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dcmi.c
-
-
- stm32f7xx_hal_dcmi_ex.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dcmi_ex.c
-
-
- stm32f7xx_hal_dfsdm.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dfsdm.c
-
-
- stm32f7xx_hal_dma.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dma.c
-
-
- stm32f7xx_hal_dma2d.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dma2d.c
-
-
- stm32f7xx_hal_dma_ex.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dma_ex.c
-
-
- stm32f7xx_hal_dsi.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_dsi.c
-
-
- stm32f7xx_hal_eth.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_eth.c
-
-
- stm32f7xx_hal_flash.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_flash.c
-
-
- stm32f7xx_hal_flash_ex.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_flash_ex.c
-
-
- stm32f7xx_hal_gpio.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_gpio.c
-
-
- stm32f7xx_hal_hash.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_hash.c
-
-
- stm32f7xx_hal_hash_ex.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_hash_ex.c
-
-
- stm32f7xx_hal_hcd.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_hcd.c
-
-
- stm32f7xx_hal_i2c.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_i2c.c
-
-
- stm32f7xx_hal_i2c_ex.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_i2c_ex.c
-
-
- stm32f7xx_hal_i2s.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_i2s.c
-
-
- stm32f7xx_hal_irda.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_irda.c
-
-
- stm32f7xx_hal_iwdg.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_iwdg.c
-
-
- stm32f7xx_hal_jpeg.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_jpeg.c
-
-
- stm32f7xx_hal_lptim.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_lptim.c
-
-
- stm32f7xx_hal_ltdc.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_ltdc.c
-
-
- stm32f7xx_hal_ltdc_ex.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_ltdc_ex.c
-
-
- stm32f7xx_hal_mdios.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_mdios.c
-
-
- stm32f7xx_hal_mmc.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_mmc.c
-
-
- stm32f7xx_hal_nand.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_nand.c
-
-
- stm32f7xx_hal_nor.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_nor.c
-
-
- stm32f7xx_hal_pcd.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_pcd.c
-
-
- stm32f7xx_hal_pcd_ex.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_pcd_ex.c
-
-
- stm32f7xx_hal_pwr.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_pwr.c
-
-
- stm32f7xx_hal_pwr_ex.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_pwr_ex.c
-
-
- stm32f7xx_hal_qspi.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_qspi.c
-
-
- stm32f7xx_hal_rcc.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_rcc.c
-
-
- stm32f7xx_hal_rcc_ex.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_rcc_ex.c
-
-
- stm32f7xx_hal_rng.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_rng.c
-
-
- stm32f7xx_hal_rtc.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_rtc.c
-
-
- stm32f7xx_hal_rtc_ex.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_rtc_ex.c
-
-
- stm32f7xx_hal_sai.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_sai.c
-
-
- stm32f7xx_hal_sai_ex.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_sai_ex.c
-
-
- stm32f7xx_hal_sd.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_sd.c
-
-
- stm32f7xx_hal_sdram.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_sdram.c
-
-
- stm32f7xx_hal_smartcard.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_smartcard.c
-
-
- stm32f7xx_hal_smartcard_ex.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_smartcard_ex.c
-
-
- stm32f7xx_hal_smbus.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_smbus.c
-
-
- stm32f7xx_hal_spdifrx.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_spdifrx.c
-
-
- stm32f7xx_hal_spi.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_spi.c
-
-
- stm32f7xx_hal_sram.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_sram.c
-
-
- stm32f7xx_hal_tim.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_tim.c
-
-
- stm32f7xx_hal_tim_ex.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_tim_ex.c
-
-
- stm32f7xx_hal_uart.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_uart.c
-
-
- stm32f7xx_hal_usart.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_usart.c
-
-
- stm32f7xx_hal_wwdg.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_hal_wwdg.c
-
-
- stm32f7xx_ll_adc.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_adc.c
-
-
- stm32f7xx_ll_crc.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_crc.c
-
-
- stm32f7xx_ll_dac.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_dac.c
-
-
- stm32f7xx_ll_dma.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_dma.c
-
-
- stm32f7xx_ll_dma2d.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_dma2d.c
-
-
- stm32f7xx_ll_exti.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_exti.c
-
-
- stm32f7xx_ll_fmc.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_fmc.c
-
-
- stm32f7xx_ll_gpio.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_gpio.c
-
-
- stm32f7xx_ll_i2c.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_i2c.c
-
-
- stm32f7xx_ll_lptim.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_lptim.c
-
-
- stm32f7xx_ll_pwr.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_pwr.c
-
-
- stm32f7xx_ll_rcc.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_rcc.c
-
-
- stm32f7xx_ll_rng.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_rng.c
-
-
- stm32f7xx_ll_rtc.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_rtc.c
-
-
- stm32f7xx_ll_sdmmc.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_sdmmc.c
-
-
- stm32f7xx_ll_spi.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_spi.c
-
-
- stm32f7xx_ll_tim.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_tim.c
-
-
- stm32f7xx_ll_usart.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_usart.c
-
-
- stm32f7xx_ll_usb.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_usb.c
-
-
- stm32f7xx_ll_utils.c
- 1
- ..\libraries\STM32F7xx_HAL\STM32F7xx_HAL_Driver\Src\stm32f7xx_ll_utils.c
-
-
- system_stm32f7xx.c
- 1
- ..\libraries\STM32F7xx_HAL\CMSIS\Device\ST\STM32F7xx\Source\Templates\system_stm32f7xx.c
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/bsp/stm32/stm32f767-fire-challenger/rtconfig.h b/bsp/stm32/stm32f767-fire-challenger/rtconfig.h
index 69261c5e1ec91092a5b9067c116a80f5f3d3a5e3..d001b714a738ef8ebcfdc6d3c07eded4885e6833 100644
--- a/bsp/stm32/stm32f767-fire-challenger/rtconfig.h
+++ b/bsp/stm32/stm32f767-fire-challenger/rtconfig.h
@@ -78,7 +78,6 @@
#define RT_USING_DEVICE_IPC
#define RT_PIPE_BUFSZ 512
#define RT_USING_SERIAL
-#define RT_SERIAL_USING_DMA
#define RT_USING_PIN
/* Using WiFi */
@@ -150,13 +149,8 @@
/* miscellaneous packages */
-/* sample package */
-
/* samples: kernel and components samples */
-
-/* example package: hello */
-
#define SOC_FAMILY_STM32
#define SOC_SERIES_STM32F7
diff --git a/components/dfs/src/dfs_file.c b/components/dfs/src/dfs_file.c
index 646ae58e3640ee3e2113e627f8170c8beb0fd609..e7071522cecb74f86a353dfd073d2f64d56f5d33 100644
--- a/components/dfs/src/dfs_file.c
+++ b/components/dfs/src/dfs_file.c
@@ -171,7 +171,7 @@ int dfs_file_ioctl(struct dfs_fd *fd, int cmd, void *args)
return fd->flags; /* return flags */
case F_SETFL:
{
- int flags = (int)args;
+ int flags = (int)(rt_base_t)args;
int mask = O_NONBLOCK | O_APPEND;
flags &= mask;
diff --git a/components/dfs/src/poll.c b/components/dfs/src/poll.c
index 6655a8a667e08cb6deea07b9001bc2c7d0555abb..6f83762082f23c6a80886a9041167526bab965e2 100644
--- a/components/dfs/src/poll.c
+++ b/components/dfs/src/poll.c
@@ -40,7 +40,7 @@ static int __wqueue_pollwake(struct rt_wqueue_node *wait, void *key)
{
struct rt_poll_node *pn;
- if (key && !((rt_uint32_t)key & wait->key))
+ if (key && !((rt_ubase_t)key & wait->key))
return -1;
pn = rt_container_of(wait, struct rt_poll_node, wqn);
diff --git a/components/drivers/sdio/mmcsd_core.c b/components/drivers/sdio/mmcsd_core.c
index d1f5978374a1872afef3270a072d6b65840504a1..2206960a6963acd80f4b65a8babfed8ff18dc173 100644
--- a/components/drivers/sdio/mmcsd_core.c
+++ b/components/drivers/sdio/mmcsd_core.c
@@ -595,7 +595,7 @@ static void mmcsd_power_off(struct rt_mmcsd_host *host)
int mmcsd_wait_cd_changed(rt_int32_t timeout)
{
struct rt_mmcsd_host *host;
- if (rt_mb_recv(&mmcsd_hotpluge_mb, (rt_uint32_t*)&host, timeout) == RT_EOK)
+ if (rt_mb_recv(&mmcsd_hotpluge_mb, (rt_ubase_t *)&host, timeout) == RT_EOK)
{
if(host->card == RT_NULL)
{
@@ -623,7 +623,7 @@ void mmcsd_detect(void *param)
while (1)
{
- if (rt_mb_recv(&mmcsd_detect_mb, (rt_uint32_t*)&host, RT_WAITING_FOREVER) == RT_EOK)
+ if (rt_mb_recv(&mmcsd_detect_mb, (rt_ubase_t *)&host, RT_WAITING_FOREVER) == RT_EOK)
{
if (host->card == RT_NULL)
{
diff --git a/components/net/at/at_socket/at_socket.c b/components/net/at/at_socket/at_socket.c
index 84325c15013ceed812270309d84341b4f0722d6e..3925f0f57cd8f45ee72928be4d7b119f9e0bc8a0 100644
--- a/components/net/at/at_socket/at_socket.c
+++ b/components/net/at/at_socket/at_socket.c
@@ -627,6 +627,15 @@ int at_recvfrom(int socket, void *mem, size_t len, int flags, struct sockaddr *f
at_dev_ops->at_set_event_cb(AT_SOCKET_EVT_CLOSED, at_closed_notice_cb);
}
+ /* receive packet list last transmission of remaining data */
+ rt_mutex_take(sock->recv_lock, RT_WAITING_FOREVER);
+ if((recv_len = at_recvpkt_get(&(sock->recvpkt_list), (char *)mem, len)) > 0)
+ {
+ rt_mutex_release(sock->recv_lock);
+ goto __exit;
+ }
+ rt_mutex_release(sock->recv_lock);
+
/* socket passively closed, receive function return 0 */
if (sock->state == AT_SOCKET_CLOSED)
{
@@ -640,15 +649,6 @@ int at_recvfrom(int socket, void *mem, size_t len, int flags, struct sockaddr *f
goto __exit;
}
- /* receive packet list last transmission of remaining data */
- rt_mutex_take(sock->recv_lock, RT_WAITING_FOREVER);
- if((recv_len = at_recvpkt_get(&(sock->recvpkt_list), (char *)mem, len)) > 0)
- {
- rt_mutex_release(sock->recv_lock);
- goto __exit;
- }
- rt_mutex_release(sock->recv_lock);
-
/* non-blocking sockets receive data */
if (flags & MSG_DONTWAIT)
{
diff --git a/components/net/lwip-2.0.2/src/arch/sys_arch.c b/components/net/lwip-2.0.2/src/arch/sys_arch.c
index 7a92170886a41501b74243efdd47a7a0043cb7e5..b2abaeab54ba13cce8b02cf8bafc9a9db8f7e0cc 100644
--- a/components/net/lwip-2.0.2/src/arch/sys_arch.c
+++ b/components/net/lwip-2.0.2/src/arch/sys_arch.c
@@ -508,7 +508,7 @@ u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout)
t = timeout / (1000/RT_TICK_PER_SECOND);
}
- ret = rt_mb_recv(*mbox, (rt_uint32_t *)msg, t);
+ ret = rt_mb_recv(*mbox, (rt_ubase_t *)msg, t);
if(ret == -RT_ETIMEOUT)
return SYS_ARCH_TIMEOUT;
@@ -539,7 +539,7 @@ u32_t sys_arch_mbox_tryfetch(sys_mbox_t *mbox, void **msg)
{
int ret;
- ret = rt_mb_recv(*mbox, (rt_uint32_t *)msg, 0);
+ ret = rt_mb_recv(*mbox, (rt_ubase_t *)msg, 0);
if(ret == -RT_ETIMEOUT)
return SYS_ARCH_TIMEOUT;
diff --git a/components/net/lwip-2.0.2/src/netif/ethernetif.c b/components/net/lwip-2.0.2/src/netif/ethernetif.c
index 8b05e592d44587cf2fc3fd2dcb3ae7ba5ffc0367..f9a798f59411a411a8fd395ab099509e0b7db1a7 100644
--- a/components/net/lwip-2.0.2/src/netif/ethernetif.c
+++ b/components/net/lwip-2.0.2/src/netif/ethernetif.c
@@ -329,7 +329,7 @@ static void eth_tx_thread_entry(void* parameter)
while (1)
{
- if (rt_mb_recv(ð_tx_thread_mb, (rt_uint32_t*)&msg, RT_WAITING_FOREVER) == RT_EOK)
+ if (rt_mb_recv(ð_tx_thread_mb, (rt_ubase_t *)&msg, RT_WAITING_FOREVER) == RT_EOK)
{
struct eth_device* enetif;
@@ -361,7 +361,7 @@ static void eth_rx_thread_entry(void* parameter)
while (1)
{
- if (rt_mb_recv(ð_rx_thread_mb, (rt_uint32_t*)&device, RT_WAITING_FOREVER) == RT_EOK)
+ if (rt_mb_recv(ð_rx_thread_mb, (rt_ubase_t *)&device, RT_WAITING_FOREVER) == RT_EOK)
{
struct pbuf *p;
diff --git a/components/utilities/Kconfig b/components/utilities/Kconfig
index e830d94578bb18fd361c0dc99bac96d96b8585b5..8e43cfa0a0ff96ead711429f7c122e2457bd4d46 100644
--- a/components/utilities/Kconfig
+++ b/components/utilities/Kconfig
@@ -230,4 +230,8 @@ config RT_USING_ULOG
sfotware module version number
endif
+config RT_USING_UTEST
+ bool "Enable utest (RT-Thread test framework)"
+ default n
+
endmenu
diff --git a/components/utilities/utest/SConscript b/components/utilities/utest/SConscript
new file mode 100644
index 0000000000000000000000000000000000000000..dc77bc2591a0269e33ac90114eb8e04bfd994e87
--- /dev/null
+++ b/components/utilities/utest/SConscript
@@ -0,0 +1,8 @@
+from building import *
+
+cwd = GetCurrentDir()
+src = Glob('*.c')
+CPPPATH = [cwd]
+group = DefineGroup('utest', src, depend = ['RT_USING_UTEST'], CPPPATH = CPPPATH)
+
+Return('group')
diff --git a/components/utilities/utest/utest.c b/components/utilities/utest/utest.c
new file mode 100644
index 0000000000000000000000000000000000000000..0f5a206d3c1027206feba8f99c93d616d2acaef8
--- /dev/null
+++ b/components/utilities/utest/utest.c
@@ -0,0 +1,238 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date Author Notes
+ * 2018-11-19 MurphyZhao the first version
+ */
+
+#include "utest.h"
+#include
+#include
+
+#undef DBG_SECTION_NAME
+#undef DBG_LEVEL
+#undef DBG_COLOR
+#undef DBG_ENABLE
+
+#define DBG_ENABLE
+#define DBG_SECTION_NAME "utest"
+#ifdef UTEST_DEBUG
+#define DBG_LEVEL DBG_LOG
+#else
+#define DBG_LEVEL DBG_INFO
+#endif
+#define DBG_COLOR
+#include
+
+#if RT_CONSOLEBUF_SIZE < 256
+#error "RT_CONSOLEBUF_SIZE is less than 256!"
+#endif
+
+static utest_tc_export_t tc_table = RT_NULL;
+static rt_size_t tc_num;
+static struct utest local_utest = {UTEST_PASSED, 0, 0};
+
+#if defined(__ICCARM__) || defined(__ICCRX__) /* for IAR compiler */
+#pragma section="UtestTcTab"
+#endif
+
+int utest_init(void)
+{
+ /* initialize the utest commands table.*/
+#if defined(__CC_ARM) /* ARM C Compiler */
+ extern const int UtestTcTab$$Base;
+ extern const int UtestTcTab$$Limit;
+ tc_table = (utest_tc_export_t)&UtestTcTab$$Base;
+ tc_num = (utest_tc_export_t)&UtestTcTab$$Limit - tc_table;
+#elif defined (__ICCARM__) || defined(__ICCRX__) /* for IAR Compiler */
+ tc_table = (utest_tc_export_t)__section_begin("UtestTcTab");
+ tc_num = (utest_tc_export_t)__section_end("UtestTcTab") - tc_table;
+#elif defined (__GNUC__) /* for GCC Compiler */
+ extern const int __rt_utest_tc_tab_start;
+ extern const int __rt_utest_tc_tab_end;
+ tc_table = (utest_tc_export_t)&__rt_utest_tc_tab_start;
+ tc_num = (utest_tc_export_t) &__rt_utest_tc_tab_end - tc_table;
+#endif /* defined(__CC_ARM) */
+
+ LOG_I("utest is initialize success.");
+ LOG_I("total utest testcase num: (%d)", tc_num);
+ return tc_num;
+}
+INIT_COMPONENT_EXPORT(utest_init);
+
+static void utest_tc_list(void)
+{
+ rt_size_t i = 0;
+
+ LOG_I("Commands list : ");
+
+ for (i = 0; i < tc_num; i++)
+ {
+ LOG_I("[testcase name]:%s; [run timeout]:%d", tc_table[i].name, tc_table[i].run_timeout);
+ }
+}
+MSH_CMD_EXPORT_ALIAS(utest_tc_list, utest_list, output all utest testcase);
+
+static const char *file_basename(const char *file)
+{
+ char *end_ptr = RT_NULL;
+ char *rst = RT_NULL;
+
+ if (!((end_ptr = strrchr(file, '\\')) != RT_NULL || \
+ (end_ptr = strrchr(file, '/')) != RT_NULL) || \
+ (rt_strlen(file) < 2))
+ {
+ rst = (char *)file;
+ }
+ else
+ {
+ rst = (char *)(end_ptr + 1);
+ }
+ return (const char *)rst;
+}
+
+static void utest_run(const char *utest_name)
+{
+ rt_size_t i = 0;
+
+ LOG_I("[==========] [ utest ] started");
+ while(i < tc_num)
+ {
+ if (utest_name && rt_strcmp(utest_name, tc_table[i].name))
+ {
+ i++;
+ continue;
+ }
+
+ LOG_I("[----------] [ testcase ] (%s) started", tc_table[i].name);
+ if (tc_table[i].init != RT_NULL)
+ {
+ if (tc_table[i].init() != RT_EOK)
+ {
+ LOG_I("[ FAILED ] [ result ] testcase (%s)", tc_table[i].name);
+ goto __tc_continue;
+ }
+ }
+
+ if (tc_table[i].tc != RT_NULL)
+ {
+ tc_table[i].tc();
+ if (local_utest.failed_num == 0)
+ {
+ LOG_I("[ PASSED ] [ result ] testcase (%s)", tc_table[i].name);
+ }
+ else
+ {
+ LOG_I("[ FAILED ] [ result ] testcase (%s)", tc_table[i].name);
+ }
+ }
+ else
+ {
+ LOG_I("[ FAILED ] [ result ] testcase (%s)", tc_table[i].name);
+ }
+
+ if (tc_table[i].cleanup != RT_NULL)
+ {
+ if (tc_table[i].cleanup() != RT_EOK)
+ {
+ LOG_I("[ FAILED ] [ result ] testcase (%s)", tc_table[i].name);
+ goto __tc_continue;
+ }
+ }
+
+__tc_continue:
+ LOG_I("[----------] [ testcase ] (%s) finished", tc_table[i].name);
+
+ i++;
+ }
+ LOG_I("[==========] [ utest ] finished");
+}
+
+static void utest_testcase_run(int argc, char** argv)
+{
+ char utest_name[UTEST_NAME_MAX_LEN];
+
+ if (argc == 1)
+ {
+ utest_run(RT_NULL);
+ }
+ else if (argc == 2)
+ {
+ rt_memset(utest_name, 0x0, sizeof(utest_name));
+ rt_strncpy(utest_name, argv[1], sizeof(utest_name) -1);
+ utest_run(utest_name);
+ }
+ else
+ {
+ LOG_E("[ error ] at (%s:%d), in param error.", __func__, __LINE__);
+ }
+}
+MSH_CMD_EXPORT_ALIAS(utest_testcase_run, utest_run, utest_run [testcase name]);
+
+utest_t utest_handle_get(void)
+{
+ return (utest_t)&local_utest;
+}
+
+void utest_unit_run(test_unit_func func, const char *unit_func_name)
+{
+ // LOG_I("[==========] utest unit name: (%s)", unit_func_name);
+ local_utest.error = UTEST_PASSED;
+ local_utest.passed_num = 0;
+ local_utest.failed_num = 0;
+
+ if (func != RT_NULL)
+ {
+ func();
+ }
+}
+
+void utest_assert(int value, const char *file, int line, const char *func, const char *msg)
+{
+ if (!(value))
+ {
+ local_utest.error = UTEST_FAILED;
+ local_utest.failed_num ++;
+ LOG_E("[ ASSERT ] [ unit ] at (%s); func: (%s:%d); msg: (%s)", file_basename(file), func, line, msg);
+ }
+ else
+ {
+ LOG_D("[ OK ] [ unit ] (%s:%d) is passed", func, line);
+ local_utest.error = UTEST_PASSED;
+ local_utest.passed_num ++;
+ }
+}
+
+void utest_assert_string(const char *a, const char *b, rt_bool_t equal, const char *file, int line, const char *func, const char *msg)
+{
+ if (a == RT_NULL || b == RT_NULL)
+ {
+ utest_assert(0, file, line, func, msg);
+ }
+
+ if (equal)
+ {
+ if (rt_strcmp(a, b) == 0)
+ {
+ utest_assert(1, file, line, func, msg);
+ }
+ else
+ {
+ utest_assert(0, file, line, func, msg);
+ }
+ }
+ else
+ {
+ if (rt_strcmp(a, b) == 0)
+ {
+ utest_assert(0, file, line, func, msg);
+ }
+ else
+ {
+ utest_assert(1, file, line, func, msg);
+ }
+ }
+}
diff --git a/components/utilities/utest/utest.h b/components/utilities/utest/utest.h
new file mode 100644
index 0000000000000000000000000000000000000000..5a7e8af7214bb56c2211c8124040c6cee1794051
--- /dev/null
+++ b/components/utilities/utest/utest.h
@@ -0,0 +1,159 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date Author Notes
+ * 2018-11-19 MurphyZhao the first version
+ */
+
+#ifndef __UTEST_H__
+#define __UTEST_H__
+
+#include
+#include "utest_log.h"
+
+/**
+ * utest_error
+ *
+ * @brief Test result.
+ *
+ * @member UTEST_PASSED Test success.
+ * @member UTEST_FAILED Test failed.
+ * @member UTEST_PASSED Test skipped.
+ *
+*/
+enum utest_error
+{
+ UTEST_PASSED = 0,
+ UTEST_FAILED = 1,
+ UTEST_SKIPPED = 2
+};
+typedef enum utest_error utest_err_e;
+
+/**
+ * utest
+ *
+ * @brief utest data structure.
+ *
+ * @member error Error number from enum `utest_error`.
+ * @member passed_num Total number of tests passed.
+ * @member failed_num Total number of tests failed.
+ *
+*/
+struct utest
+{
+ utest_err_e error;
+ uint32_t passed_num;
+ uint32_t failed_num;
+};
+typedef struct utest *utest_t;
+
+/**
+ * utest_tc_export
+ *
+ * @brief utest testcase data structure.
+ * Will export the data to `UtestTcTab` section in flash.
+ *
+ * @member name Testcase name.
+ * @member run_timeout Testcase maximum test time.
+ * @member init Necessary initialization before executing the test case function.
+ * @member tc Total number of tests failed.
+ * @member cleanup Total number of tests failed.
+ *
+*/
+struct utest_tc_export {
+ const char *name;
+ uint32_t run_timeout;
+ rt_err_t (*init)(void);
+ void (*tc)(void);
+ rt_err_t (*cleanup)(void);
+};
+typedef struct utest_tc_export *utest_tc_export_t;
+
+/**
+ * test_unit_func
+ *
+ * @brief Unit test handler function pointer.
+ *
+*/
+typedef void (*test_unit_func)(void);
+
+/**
+ * utest_unit_run
+ *
+ * @brief Unit test function executor.
+ * No need for the user to call this function directly
+ *
+ * @param func Unit test function.
+ * @param unit_func_name Unit test function name.
+ *
+ * @return void
+ *
+*/
+void utest_unit_run(test_unit_func func, const char *unit_func_name);
+
+/**
+ * utest_handle_get
+ *
+ * @brief Get the utest data structure handle.
+ * No need for the user to call this function directly
+ *
+ * @param void
+ *
+ * @return utest_t type. (struct utest *)
+ *
+*/
+utest_t utest_handle_get(void);
+
+/**
+ * UTEST_NAME_MAX_LEN
+ *
+ * @brief Testcase name maximum length.
+ *
+*/
+#define UTEST_NAME_MAX_LEN (128u)
+
+/**
+ * UTEST_TC_EXPORT
+ *
+ * @brief Export testcase function to `UtestTcTab` section in flash.
+ * Used in application layer.
+ *
+ * @param testcase The testcase function.
+ * @param name The testcase name.
+ * @param init The initialization function of the test case.
+ * @param cleanup The cleanup function of the test case.
+ * @param timeout Testcase maximum test time.
+ *
+ * @return None
+ *
+*/
+#define UTEST_TC_EXPORT(testcase, name, init, cleanup, timeout) \
+ RT_USED static const struct utest_tc_export _utest_testcase \
+ SECTION("UtestTcTab") = \
+ { \
+ name, \
+ timeout, \
+ init, \
+ testcase, \
+ cleanup \
+ }
+
+/**
+ * UTEST_UNIT_RUN
+ *
+ * @brief Unit test function executor.
+ * Used in `testcase` function in application.
+ *
+ * @param test_unit_func Unit test function
+ *
+ * @return None
+ *
+*/
+#define UTEST_UNIT_RUN(test_unit_func) \
+ utest_unit_run(test_unit_func, #test_unit_func); \
+ if(utest_handle_get()->failed_num != 0) return;
+
+#endif /* __UTEST_H__ */
diff --git a/components/utilities/utest/utest_assert.h b/components/utilities/utest/utest_assert.h
new file mode 100644
index 0000000000000000000000000000000000000000..997e8ae7f32cb8563684d21ab2b0b4eb26493330
--- /dev/null
+++ b/components/utilities/utest/utest_assert.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date Author Notes
+ * 2018-11-19 MurphyZhao the first version
+ */
+
+#ifndef __UTEST_ASSERT_H__
+#define __UTEST_ASSERT_H__
+
+#include "utest.h"
+#include
+
+/* No need for the user to use this function directly */
+void utest_assert(int value, const char *file, int line, const char *func, const char *msg);
+
+/* No need for the user to use this function directly */
+void utest_assert_string(const char *a, const char *b, rt_bool_t equal, const char *file, int line, const char *func, const char *msg);
+
+/* No need for the user to use this macro directly */
+#define __utest_assert(value, msg) utest_assert(value, __FILE__, __LINE__, __func__, msg)
+
+/**
+ * uassert_x macros
+ *
+ * @brief Get the utest data structure handle.
+ * No need for the user to call this function directly.
+ *
+ * @macro uassert_true if @value is true, not assert, means passing.
+ * @macro uassert_false if @value is false, not assert, means passing.
+ * @macro uassert_null if @value is null, not assert, means passing.
+ * @macro uassert_not_null if @value is not null, not assert, means passing.
+ * @macro uassert_int_equal if @a equal to @b, not assert, means passing. Integer type test.
+ * @macro uassert_int_not_equal if @a not equal to @b, not assert, means passing. Integer type test.
+ * @macro uassert_str_equal if @a equal to @b, not assert, means passing. String type test.
+ * @macro uassert_str_not_equal if @a not equal to @b, not assert, means passing. String type test.
+ * @macro uassert_in_range if @value is in range of min and max, not assert, means passing.
+ * @macro uassert_not_in_range if @value is not in range of min and max, not assert, means passing.
+ *
+*/
+#define uassert_true(value) __utest_assert(value, "(" #value ") is false")
+#define uassert_false(value) __utest_assert(!(value), "(" #value ") is true")
+#define uassert_null(value) __utest_assert((const char *)(value) == NULL, "(" #value ") is not null")
+#define uassert_not_null(value) __utest_assert((const char *)(value) != NULL, "(" #value ") is null")
+
+#define uassert_int_equal(a, b) __utest_assert((a) == (b), "(" #a ") not equal to (" #b ")")
+#define uassert_int_not_equal(a, b) __utest_assert((a) != (b), "(" #a ") equal to (" #b ")")
+
+#define uassert_str_equal(a, b) utest_assert_string((const char*)(a), (const char*)(b), RT_TRUE, __FILE__, __LINE__, __func__, "string not equal")
+#define uassert_str_not_equal(a, b) utest_assert_string((const char*)(a), (const char*)(b), RT_FALSE, __FILE__, __LINE__, __func__, "string equal")
+
+#define uassert_in_range(value, min, max) __utest_assert(((value >= min) && (value <= max)), "(" #value ") not in range("#min","#max")")
+#define uassert_not_in_range(value, min, max) __utest_assert(!((value >= min) && (value <= max)), "(" #value ") in range("#min","#max")")
+
+#endif /* __UTEST_ASSERT_H__ */
diff --git a/components/utilities/utest/utest_log.h b/components/utilities/utest/utest_log.h
new file mode 100644
index 0000000000000000000000000000000000000000..c954046b7627bfa33c20c0ec8f0fae3d47671c95
--- /dev/null
+++ b/components/utilities/utest/utest_log.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2006-2018, RT-Thread Development Team
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Change Logs:
+ * Date Author Notes
+ * 2018-11-19 MurphyZhao the first version
+ */
+
+#ifndef __UTEST_LOG_H__
+#define __UTEST_LOG_H__
+
+#define UTEST_DEBUG
+
+#undef DBG_SECTION_NAME
+#undef DBG_LEVEL
+#undef DBG_COLOR
+#undef DBG_ENABLE
+
+#define DBG_ENABLE
+#define DBG_SECTION_NAME "testcase"
+#ifdef UTEST_DEBUG
+#define DBG_LEVEL DBG_LOG
+#else
+#define DBG_LEVEL DBG_INFO
+#endif
+#define DBG_COLOR
+#include
+
+#endif /* __UTEST_LOG_H__ */
diff --git a/include/rtdef.h b/include/rtdef.h
index 253ec369689282b42e990e25ec2392f7f8b8ad37..6d5263ef628549172d414ae937aa01056b171220 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -500,7 +500,7 @@ typedef siginfo_t rt_siginfo_t;
#define RT_THREAD_CTRL_CLOSE 0x01 /**< Close thread. */
#define RT_THREAD_CTRL_CHANGE_PRIORITY 0x02 /**< Change thread priority. */
#define RT_THREAD_CTRL_INFO 0x03 /**< Get thread information. */
-#define RT_THREAD_CTRL_BIND_CPU 0x03 /**< Set thread bind cpu. */
+#define RT_THREAD_CTRL_BIND_CPU 0x04 /**< Set thread bind cpu. */
#ifdef RT_USING_SMP
diff --git a/src/cpu.c b/src/cpu.c
index ef6dce1787ca359006bd939ab371564f7f0b37a2..3e2d65dfb9dfa5724f2ca09c9682938cb6d1359d 100644
--- a/src/cpu.c
+++ b/src/cpu.c
@@ -86,6 +86,6 @@ void rt_cpus_lock_status_restore(struct rt_thread *thread)
rt_hw_spin_unlock(&_cpus_lock);
}
}
-RTM_EXPORT(rt_post_switch);
+RTM_EXPORT(rt_cpus_lock_status_restore);
#endif
diff --git a/src/memheap.c b/src/memheap.c
index eb5d710029af70160574ff879ccec125fe0daa84..aef56e1a7425a52337511e8c94cbfc23d3916321 100644
--- a/src/memheap.c
+++ b/src/memheap.c
@@ -34,7 +34,7 @@
#define RT_MEMHEAP_MINIALLOC 12
#define RT_MEMHEAP_SIZE RT_ALIGN(sizeof(struct rt_memheap_item), RT_ALIGN_SIZE)
-#define MEMITEM_SIZE(item) ((rt_uint32_t)item->next - (rt_uint32_t)item - RT_MEMHEAP_SIZE)
+#define MEMITEM_SIZE(item) ((rt_ubase_t)item->next - (rt_ubase_t)item - RT_MEMHEAP_SIZE)
/*
* The initialized memory pool will be:
diff --git a/src/scheduler.c b/src/scheduler.c
index e177bde6b7ae5ac77c92a8bca85068778cf15265..aafa1f4529643563a75837461646bab7a1485683 100644
--- a/src/scheduler.c
+++ b/src/scheduler.c
@@ -99,11 +99,19 @@ static void _rt_scheduler_stack_check(struct rt_thread *thread)
level = rt_hw_interrupt_disable();
while (level);
}
+#if defined(ARCH_CPU_STACK_GROWS_UPWARD)
+ else if ((rt_ubase_t)thread->sp > ((rt_ubase_t)thread->stack_addr + thread->stack_size))
+ {
+ rt_kprintf("warning: %s stack is close to the top of stack address.\n",
+ thread->name);
+ }
+#else
else if ((rt_ubase_t)thread->sp <= ((rt_ubase_t)thread->stack_addr + 32))
{
rt_kprintf("warning: %s stack is close to end of stack address.\n",
thread->name);
}
+#endif
}
#endif
diff --git a/tools/building.py b/tools/building.py
index ba6c5000e43a2257a90cf45b3249297648aa6f58..eb2da2fab968f519be30a42ebc7c01b15ccf7de8 100644
--- a/tools/building.py
+++ b/tools/building.py
@@ -810,6 +810,9 @@ def EndBuilding(target, program = None):
Env['target'] = program
Env['project'] = Projects
+ if hasattr(rtconfig, 'BSP_LIBRARY_TYPE'):
+ Env['bsp_lib_type'] = rtconfig.BSP_LIBRARY_TYPE
+
Env.AddPostAction(target, rtconfig.POST_ACTION)
# Add addition clean files
Clean(target, 'cconfig.h')
diff --git a/tools/mkdist.py b/tools/mkdist.py
index eef6bfd1180877ebc21b78edc429e052f3dce27a..e927417fc414fdf2c04dac9bbfe3c0a07ce3ebb3 100644
--- a/tools/mkdist.py
+++ b/tools/mkdist.py
@@ -122,6 +122,24 @@ def bsp_update_kconfig(dist_dir):
line = line[0:position] + 'default: "rt-thread"\n'
found = 0
f.write(line)
+
+def bsp_update_kconfig_library(dist_dir):
+ # change RTT_ROOT in Kconfig
+ if not os.path.isfile(os.path.join(dist_dir, 'Kconfig')):
+ return
+
+ with open(os.path.join(dist_dir, 'Kconfig'), 'r') as f:
+ data = f.readlines()
+ with open(os.path.join(dist_dir, 'Kconfig'), 'w') as f:
+ found = 0
+ for line in data:
+ if line.find('RTT_ROOT') != -1:
+ found = 1
+ if line.find('../libraries') != -1 and found:
+ position = line.find('../libraries')
+ line = line[0:position] + 'libraries/Kconfig"\n'
+ found = 0
+ f.write(line)
def bs_update_ide_project(bsp_root, rtt_root):
import subprocess
@@ -169,6 +187,15 @@ def MkDist_Strip(program, BSP_ROOT, RTT_ROOT, Env):
print('=> %s' % os.path.basename(BSP_ROOT))
bsp_copy_files(BSP_ROOT, dist_dir)
+ # copy stm32 bsp libiary files
+ if os.path.basename(os.path.dirname(BSP_ROOT)) == 'stm32':
+ print("=> copy stm32 bsp library")
+ library_path = os.path.join(os.path.dirname(BSP_ROOT), 'libraries')
+ library_dir = os.path.join(dist_dir, 'libraries')
+ bsp_copy_files(os.path.join(library_path, 'HAL_Drivers'), os.path.join(library_dir, 'HAL_Drivers'))
+ bsp_copy_files(os.path.join(library_path, Env['bsp_lib_type']), os.path.join(library_dir, Env['bsp_lib_type']))
+ shutil.copyfile(os.path.join(library_path, 'Kconfig'), os.path.join(library_dir, 'Kconfig'))
+
# get all source files from program
for item in program:
walk_children(item)
@@ -260,6 +287,7 @@ def MkDist_Strip(program, BSP_ROOT, RTT_ROOT, Env):
bsp_update_sconstruct(dist_dir)
# change RTT_ROOT in Kconfig
bsp_update_kconfig(dist_dir)
+ bsp_update_kconfig_library(dist_dir)
# update all project files
bs_update_ide_project(dist_dir, target_path)
@@ -280,6 +308,15 @@ def MkDist(program, BSP_ROOT, RTT_ROOT, Env):
print('=> %s' % os.path.basename(BSP_ROOT))
bsp_copy_files(BSP_ROOT, dist_dir)
+ # copy stm32 bsp libiary files
+ if os.path.basename(os.path.dirname(BSP_ROOT)) == 'stm32':
+ print("=> copy stm32 bsp library")
+ library_path = os.path.join(os.path.dirname(BSP_ROOT), 'libraries')
+ library_dir = os.path.join(dist_dir, 'libraries')
+ bsp_copy_files(os.path.join(library_path, 'HAL_Drivers'), os.path.join(library_dir, 'HAL_Drivers'))
+ bsp_copy_files(os.path.join(library_path, Env['bsp_lib_type']), os.path.join(library_dir, Env['bsp_lib_type']))
+ shutil.copyfile(os.path.join(library_path, 'Kconfig'), os.path.join(library_dir, 'Kconfig'))
+
# copy tools directory
print('=> components')
do_copy_folder(os.path.join(RTT_ROOT, 'components'), os.path.join(target_path, 'components'))
@@ -316,6 +353,7 @@ def MkDist(program, BSP_ROOT, RTT_ROOT, Env):
bsp_update_sconstruct(dist_dir)
# change RTT_ROOT in Kconfig
bsp_update_kconfig(dist_dir)
+ bsp_update_kconfig_library(dist_dir)
# update all project files
bs_update_ide_project(dist_dir, target_path)