diff --git a/bsp/stm32/stm32l476-st-nucleo/project.uvprojx b/bsp/stm32/stm32l476-st-nucleo/project.uvprojx
index bdbb353d3c..6b5c2aedb7 100644
--- a/bsp/stm32/stm32l476-st-nucleo/project.uvprojx
+++ b/bsp/stm32/stm32l476-st-nucleo/project.uvprojx
@@ -333,7 +333,7 @@
0
- RT_USING_ARM_LIBC, USE_HAL_DRIVER, STM32L476xx, __RTTHREAD__
+ RT_USING_ARM_LIBC, USE_HAL_DRIVER, STM32L476xx, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND
applications;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m4;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board;board\CubeMX_Config\Inc;board\ports;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\components\finsh;.;..\..\..\include;..\..\..\components\libc\compilers\armlibc;..\..\..\components\libc\compilers\common;..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Inc;..\libraries\STM32L4xx_HAL\CMSIS\Device\ST\STM32L4xx\Include;..\libraries\STM32L4xx_HAL\CMSIS\Include
@@ -397,16 +397,16 @@
- div0.c
+ showmem.c
1
- ..\..\..\libcpu\arm\common\div0.c
+ ..\..\..\libcpu\arm\common\showmem.c
- showmem.c
+ div0.c
1
- ..\..\..\libcpu\arm\common\showmem.c
+ ..\..\..\libcpu\arm\common\div0.c
@@ -461,34 +461,6 @@
..\..\..\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
@@ -503,14 +475,42 @@
..\..\..\components\drivers\src\workqueue.c
+
+
+ ringbuffer.c
+ 1
+ ..\..\..\components\drivers\src\ringbuffer.c
+
+
+
+
+ dataqueue.c
+ 1
+ ..\..\..\components\drivers\src\dataqueue.c
+
+
+
+
+ ringblk_buf.c
+ 1
+ ..\..\..\components\drivers\src\ringblk_buf.c
+
+
+
+
+ pipe.c
+ 1
+ ..\..\..\components\drivers\src\pipe.c
+
+
Drivers
- board.c
- 1
- board\board.c
+ startup_stm32l476xx.s
+ 2
+ ..\libraries\STM32L4xx_HAL\CMSIS\Device\ST\STM32L4xx\Source\Templates\arm\startup_stm32l476xx.s
@@ -522,9 +522,9 @@
- startup_stm32l476xx.s
- 2
- ..\libraries\STM32L4xx_HAL\CMSIS\Device\ST\STM32L4xx\Source\Templates\arm\startup_stm32l476xx.s
+ board.c
+ 1
+ board\board.c
@@ -536,16 +536,16 @@
- drv_usart.c
+ drv_common.c
1
- ..\libraries\HAL_Drivers\drv_usart.c
+ ..\libraries\HAL_Drivers\drv_common.c
- drv_pm.c
+ drv_usart.c
1
- ..\libraries\HAL_Drivers\drv_pm.c
+ ..\libraries\HAL_Drivers\drv_usart.c
@@ -557,9 +557,9 @@
- drv_common.c
+ drv_pm.c
1
- ..\libraries\HAL_Drivers\drv_common.c
+ ..\libraries\HAL_Drivers\drv_pm.c
@@ -572,13 +572,6 @@
..\..\..\components\finsh\shell.c
-
-
- cmd.c
- 1
- ..\..\..\components\finsh\cmd.c
-
-
msh.c
@@ -586,9 +579,23 @@
..\..\..\components\finsh\msh.c
+
+
+ cmd.c
+ 1
+ ..\..\..\components\finsh\cmd.c
+
+
Kernel
+
+
+ timer.c
+ 1
+ ..\..\..\src\timer.c
+
+
clock.c
@@ -598,30 +605,9 @@
- components.c
+ object.c
1
- ..\..\..\src\components.c
-
-
-
-
- device.c
- 1
- ..\..\..\src\device.c
-
-
-
-
- idle.c
- 1
- ..\..\..\src\idle.c
-
-
-
-
- ipc.c
- 1
- ..\..\..\src\ipc.c
+ ..\..\..\src\object.c
@@ -640,23 +626,9 @@
- mem.c
+ ipc.c
1
- ..\..\..\src\mem.c
-
-
-
-
- mempool.c
- 1
- ..\..\..\src\mempool.c
-
-
-
-
- object.c
- 1
- ..\..\..\src\object.c
+ ..\..\..\src\ipc.c
@@ -666,13 +638,6 @@
..\..\..\src\scheduler.c
-
-
- signal.c
- 1
- ..\..\..\src\signal.c
-
-
thread.c
@@ -682,21 +647,42 @@
- timer.c
+ idle.c
1
- ..\..\..\src\timer.c
+ ..\..\..\src\idle.c
+
+
+
+
+ components.c
+ 1
+ ..\..\..\src\components.c
+
+
+
+
+ device.c
+ 1
+ ..\..\..\src\device.c
+
+
+
+
+ mempool.c
+ 1
+ ..\..\..\src\mempool.c
+
+
+
+
+ mem.c
+ 1
+ ..\..\..\src\mem.c
libc
-
-
- libc.c
- 1
- ..\..\..\components\libc\compilers\armlibc\libc.c
-
-
mem_std.c
@@ -706,9 +692,23 @@
- stubs.c
+ syscalls.c
1
- ..\..\..\components\libc\compilers\armlibc\stubs.c
+ ..\..\..\components\libc\compilers\armlibc\syscalls.c
+
+
+
+
+ libc.c
+ 1
+ ..\..\..\components\libc\compilers\armlibc\libc.c
+
+
+
+
+ stdlib.c
+ 1
+ ..\..\..\components\libc\compilers\common\stdlib.c
@@ -723,23 +723,9 @@
Libraries
- system_stm32l4xx.c
+ stm32l4xx_hal_cryp.c
1
- ..\libraries\STM32L4xx_HAL\CMSIS\Device\ST\STM32L4xx\Source\Templates\system_stm32l4xx.c
-
-
-
-
- stm32l4xx_hal.c
- 1
- ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal.c
-
-
-
-
- stm32l4xx_hal_comp.c
- 1
- ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_comp.c
+ ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cryp.c
@@ -749,69 +735,6 @@
..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cortex.c
-
-
- stm32l4xx_hal_crc.c
- 1
- ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_crc.c
-
-
-
-
- stm32l4xx_hal_crc_ex.c
- 1
- ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_crc_ex.c
-
-
-
-
- stm32l4xx_hal_cryp.c
- 1
- ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cryp.c
-
-
-
-
- stm32l4xx_hal_cryp_ex.c
- 1
- ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cryp_ex.c
-
-
-
-
- stm32l4xx_hal_dma.c
- 1
- ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dma.c
-
-
-
-
- stm32l4xx_hal_dma_ex.c
- 1
- ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dma_ex.c
-
-
-
-
- stm32l4xx_hal_exti.c
- 1
- ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_exti.c
-
-
-
-
- stm32l4xx_hal_pwr.c
- 1
- ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_pwr.c
-
-
-
-
- stm32l4xx_hal_pwr_ex.c
- 1
- ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_pwr_ex.c
-
-
stm32l4xx_hal_rcc.c
@@ -819,55 +742,6 @@
..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rcc.c
-
-
- stm32l4xx_hal_rcc_ex.c
- 1
- ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rcc_ex.c
-
-
-
-
- stm32l4xx_hal_rng.c
- 1
- ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rng.c
-
-
-
-
- stm32l4xx_hal_gpio.c
- 1
- ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_gpio.c
-
-
-
-
- stm32l4xx_hal_uart.c
- 1
- ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_uart.c
-
-
-
-
- stm32l4xx_hal_uart_ex.c
- 1
- ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_uart_ex.c
-
-
-
-
- stm32l4xx_hal_usart.c
- 1
- ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_usart.c
-
-
-
-
- stm32l4xx_hal_usart_ex.c
- 1
- ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_usart_ex.c
-
-
stm32l4xx_hal_rtc.c
@@ -877,9 +751,58 @@
- stm32l4xx_hal_rtc_ex.c
+ stm32l4xx_hal_pwr.c
1
- ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rtc_ex.c
+ ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_pwr.c
+
+
+
+
+ stm32l4xx_hal_usart_ex.c
+ 1
+ ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_usart_ex.c
+
+
+
+
+ system_stm32l4xx.c
+ 1
+ ..\libraries\STM32L4xx_HAL\CMSIS\Device\ST\STM32L4xx\Source\Templates\system_stm32l4xx.c
+
+
+
+
+ stm32l4xx_hal_pwr_ex.c
+ 1
+ ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_pwr_ex.c
+
+
+
+
+ stm32l4xx_hal_usart.c
+ 1
+ ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_usart.c
+
+
+
+
+ stm32l4xx_hal_cryp_ex.c
+ 1
+ ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_cryp_ex.c
+
+
+
+
+ stm32l4xx_hal_rcc_ex.c
+ 1
+ ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rcc_ex.c
+
+
+
+
+ stm32l4xx_hal_uart.c
+ 1
+ ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_uart.c
@@ -889,6 +812,83 @@
..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_lptim.c
+
+
+ stm32l4xx_hal_dma_ex.c
+ 1
+ ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dma_ex.c
+
+
+
+
+ stm32l4xx_hal_gpio.c
+ 1
+ ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_gpio.c
+
+
+
+
+ stm32l4xx_hal_crc_ex.c
+ 1
+ ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_crc_ex.c
+
+
+
+
+ stm32l4xx_hal_dma.c
+ 1
+ ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_dma.c
+
+
+
+
+ stm32l4xx_hal.c
+ 1
+ ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal.c
+
+
+
+
+ stm32l4xx_hal_rtc_ex.c
+ 1
+ ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rtc_ex.c
+
+
+
+
+ stm32l4xx_hal_comp.c
+ 1
+ ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_comp.c
+
+
+
+
+ stm32l4xx_hal_exti.c
+ 1
+ ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_exti.c
+
+
+
+
+ stm32l4xx_hal_rng.c
+ 1
+ ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_rng.c
+
+
+
+
+ stm32l4xx_hal_crc.c
+ 1
+ ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_crc.c
+
+
+
+
+ stm32l4xx_hal_uart_ex.c
+ 1
+ ..\libraries\STM32L4xx_HAL\STM32L4xx_HAL_Driver\Src\stm32l4xx_hal_uart_ex.c
+
+