diff --git a/bsp/ht32/ht32f12366/.config b/bsp/ht32/ht32f12366/.config index 3525b4a021c..f0a158b0518 100644 --- a/bsp/ht32/ht32f12366/.config +++ b/bsp/ht32/ht32f12366/.config @@ -18,7 +18,7 @@ # # rt_vsscanf options # -CONFIG_RT_KLIBC_USING_LIBC_VSSCANF=y +# CONFIG_RT_KLIBC_USING_LIBC_VSSCANF is not set # end of rt_vsscanf options # @@ -1276,7 +1276,7 @@ CONFIG_SOC_HT32F12366=y # # Onboard Peripheral Drivers # -CONFIG_BSP_USING_TEST=y +# CONFIG_BSP_USING_TEST is not set # end of Onboard Peripheral Drivers # diff --git a/bsp/ht32/ht32f12366/board/Kconfig b/bsp/ht32/ht32f12366/board/Kconfig index ab2b3193534..78fde329271 100644 --- a/bsp/ht32/ht32f12366/board/Kconfig +++ b/bsp/ht32/ht32f12366/board/Kconfig @@ -130,7 +130,7 @@ menu "On-chip Peripheral Drivers" if BSP_USING_UART config BSP_USING_USART0 bool "Enable USART0" - default y + default n config BSP_USING_USART0_NAME depends on BSP_USING_USART0 string "usart0 bus name" @@ -168,7 +168,7 @@ menu "On-chip Peripheral Drivers" if BSP_USING_SPI config BSP_USING_SPI0 bool "Enable SPI0 Bus" - default y + default n config BSP_USING_SPI0_NAME depends on BSP_USING_SPI0 string "spi0 bus name" @@ -189,12 +189,12 @@ menu "On-chip Peripheral Drivers" if BSP_USING_I2C menuconfig BSP_USING_I2C_HW bool "Enable I2C Bus(hardware)" - default y + default n select RT_USING_I2C if BSP_USING_I2C_HW if BSP_USING_I2C_HW config BSP_USING_I2C0_HW bool "Enable Hardware I2C0 Bus" - default y + default n config BSP_USING_I2C0_HW_NAME depends on BSP_USING_I2C0_HW string "hardware i2c0 name" @@ -282,7 +282,7 @@ menu "On-chip Peripheral Drivers" if BSP_USING_ADC config BSP_USING_ADC0 bool "Enable ADC0" - default y + default n config BSP_USING_ADC0_NAME depends on BSP_USING_ADC0 string "adc0 device name" diff --git a/bsp/ht32/ht32f12366/project.uvoptx b/bsp/ht32/ht32f12366/project.uvoptx index 2fa4862d7fa..06f3300cfb8 100644 --- a/bsp/ht32/ht32f12366/project.uvoptx +++ b/bsp/ht32/ht32f12366/project.uvoptx @@ -186,18 +186,6 @@ 0 0 - - 1 - 2 - 1 - 0 - 0 - 0 - applications\test.c - test.c - 0 - 0 - @@ -208,7 +196,7 @@ 0 2 - 3 + 2 1 0 0 @@ -220,7 +208,7 @@ 2 - 4 + 3 1 0 0 @@ -232,7 +220,7 @@ 2 - 5 + 4 1 0 0 @@ -244,7 +232,7 @@ 2 - 6 + 5 1 0 0 @@ -256,7 +244,7 @@ 2 - 7 + 6 1 0 0 @@ -268,7 +256,7 @@ 2 - 8 + 7 1 0 0 @@ -280,7 +268,7 @@ 2 - 9 + 8 1 0 0 @@ -292,7 +280,7 @@ 2 - 10 + 9 1 0 0 @@ -312,7 +300,7 @@ 0 3 - 11 + 10 1 0 0 @@ -324,7 +312,7 @@ 3 - 12 + 11 1 0 0 @@ -336,7 +324,7 @@ 3 - 13 + 12 1 0 0 @@ -348,7 +336,7 @@ 3 - 14 + 13 1 0 0 @@ -360,7 +348,7 @@ 3 - 15 + 14 1 0 0 @@ -372,7 +360,7 @@ 3 - 16 + 15 1 0 0 @@ -384,7 +372,7 @@ 3 - 17 + 16 1 0 0 @@ -396,7 +384,7 @@ 3 - 18 + 17 1 0 0 @@ -408,7 +396,7 @@ 3 - 19 + 18 1 0 0 @@ -420,7 +408,7 @@ 3 - 20 + 19 1 0 0 @@ -432,7 +420,7 @@ 3 - 21 + 20 1 0 0 @@ -444,7 +432,7 @@ 3 - 22 + 21 1 0 0 @@ -464,7 +452,7 @@ 0 4 - 23 + 22 1 0 0 @@ -476,7 +464,7 @@ 4 - 24 + 23 1 0 0 @@ -488,7 +476,7 @@ 4 - 25 + 24 2 0 0 @@ -500,7 +488,7 @@ 4 - 26 + 25 1 0 0 @@ -512,7 +500,7 @@ 4 - 27 + 26 1 0 0 @@ -524,7 +512,7 @@ 4 - 28 + 27 1 0 0 @@ -544,49 +532,49 @@ 0 5 - 29 + 28 1 0 0 0 - ..\..\..\components\finsh\msh.c - msh.c + ..\..\..\components\finsh\cmd.c + cmd.c 0 0 5 - 30 + 29 1 0 0 0 - ..\..\..\components\finsh\cmd.c - cmd.c + ..\..\..\components\finsh\shell.c + shell.c 0 0 5 - 31 + 30 1 0 0 0 - ..\..\..\components\finsh\shell.c - shell.c + ..\..\..\components\finsh\msh_parse.c + msh_parse.c 0 0 5 - 32 + 31 1 0 0 0 - ..\..\..\components\finsh\msh_parse.c - msh_parse.c + ..\..\..\components\finsh\msh.c + msh.c 0 0 @@ -600,7 +588,7 @@ 0 6 - 33 + 32 1 0 0 @@ -612,7 +600,7 @@ 6 - 34 + 33 1 0 0 @@ -624,7 +612,7 @@ 6 - 35 + 34 1 0 0 @@ -636,7 +624,7 @@ 6 - 36 + 35 1 0 0 @@ -648,7 +636,7 @@ 6 - 37 + 36 1 0 0 @@ -660,7 +648,7 @@ 6 - 38 + 37 1 0 0 @@ -672,7 +660,7 @@ 6 - 39 + 38 1 0 0 @@ -684,7 +672,7 @@ 6 - 40 + 39 1 0 0 @@ -696,7 +684,7 @@ 6 - 41 + 40 1 0 0 @@ -708,7 +696,7 @@ 6 - 42 + 41 1 0 0 @@ -720,7 +708,7 @@ 6 - 43 + 42 1 0 0 @@ -732,7 +720,7 @@ 6 - 44 + 43 1 0 0 @@ -744,7 +732,7 @@ 6 - 45 + 44 1 0 0 @@ -756,7 +744,7 @@ 6 - 46 + 45 1 0 0 @@ -768,7 +756,7 @@ 6 - 47 + 46 1 0 0 @@ -780,7 +768,7 @@ 6 - 48 + 47 1 0 0 @@ -800,7 +788,7 @@ 0 7 - 49 + 48 1 0 0 @@ -810,6 +798,18 @@ 0 0 + + 7 + 49 + 1 + 0 + 0 + 0 + ..\..\..\src\klibc\kerrno.c + kerrno.c + 0 + 0 + 7 50 @@ -841,8 +841,8 @@ 0 0 0 - ..\..\..\src\klibc\kerrno.c - kerrno.c + ..\..\..\src\klibc\rt_vsscanf.c + rt_vsscanf.c 0 0 @@ -929,8 +929,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_bftm.c - ht32f1xxxx_bftm.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_i2s.c + ht32f1xxxx_i2s.c 0 0 @@ -941,8 +941,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_gpio.c - ht32f1xxxx_gpio.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_mctm.c + ht32f1xxxx_mctm.c 0 0 @@ -953,8 +953,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_usart.c - ht32f1xxxx_usart.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_bftm.c + ht32f1xxxx_bftm.c 0 0 @@ -965,8 +965,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_ebi.c - ht32f1xxxx_ebi.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_flash.c + ht32f1xxxx_flash.c 0 0 @@ -977,8 +977,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_cmp.c - ht32f1xxxx_cmp.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_tm.c + ht32f1xxxx_tm.c 0 0 @@ -989,8 +989,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_exti.c - ht32f1xxxx_exti.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_usbd.c + ht32f1xxxx_usbd.c 0 0 @@ -1001,8 +1001,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_mctm.c - ht32f1xxxx_mctm.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_ebi.c + ht32f1xxxx_ebi.c 0 0 @@ -1013,8 +1013,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f2xxxx_csif.c - ht32f2xxxx_csif.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_exti.c + ht32f1xxxx_exti.c 0 0 @@ -1025,8 +1025,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_sdio.c - ht32f1xxxx_sdio.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_crc.c + ht32f1xxxx_crc.c 0 0 @@ -1037,8 +1037,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_pwrcu.c - ht32f1xxxx_pwrcu.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_rtc.c + ht32f1xxxx_rtc.c 0 0 @@ -1061,8 +1061,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_pdma.c - ht32f1xxxx_pdma.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_aes.c + ht32f1xxxx_aes.c 0 0 @@ -1073,8 +1073,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_rtc.c - ht32f1xxxx_rtc.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\Device\Holtek\HT32F1xxxx\Source\system_ht32f1xxxx_02.c + system_ht32f1xxxx_02.c 0 0 @@ -1085,8 +1085,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_sci.c - ht32f1xxxx_sci.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_cmp.c + ht32f1xxxx_cmp.c 0 0 @@ -1097,8 +1097,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\Device\Holtek\HT32F1xxxx\Source\system_ht32f1xxxx_02.c - system_ht32f1xxxx_02.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32_cm3_misc.c + ht32_cm3_misc.c 0 0 @@ -1109,8 +1109,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_usbd.c - ht32f1xxxx_usbd.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_sci.c + ht32f1xxxx_sci.c 0 0 @@ -1121,8 +1121,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_i2s.c - ht32f1xxxx_i2s.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_pwrcu.c + ht32f1xxxx_pwrcu.c 0 0 @@ -1133,8 +1133,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_aes.c - ht32f1xxxx_aes.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_spi.c + ht32f1xxxx_spi.c 0 0 @@ -1145,8 +1145,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_crc.c - ht32f1xxxx_crc.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_adc.c + ht32f1xxxx_adc.c 0 0 @@ -1157,8 +1157,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_tm.c - ht32f1xxxx_tm.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_sdio.c + ht32f1xxxx_sdio.c 0 0 @@ -1169,8 +1169,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_flash.c - ht32f1xxxx_flash.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_usart.c + ht32f1xxxx_usart.c 0 0 @@ -1181,8 +1181,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_spi.c - ht32f1xxxx_spi.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_ckcu.c + ht32f1xxxx_ckcu.c 0 0 @@ -1193,8 +1193,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_i2c.c - ht32f1xxxx_i2c.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_gpio.c + ht32f1xxxx_gpio.c 0 0 @@ -1205,8 +1205,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_adc.c - ht32f1xxxx_adc.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_pdma.c + ht32f1xxxx_pdma.c 0 0 @@ -1217,8 +1217,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_ckcu.c - ht32f1xxxx_ckcu.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f2xxxx_csif.c + ht32f2xxxx_csif.c 0 0 @@ -1241,8 +1241,8 @@ 0 0 0 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32_cm3_misc.c - ht32_cm3_misc.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_i2c.c + ht32f1xxxx_i2c.c 0 0 diff --git a/bsp/ht32/ht32f12366/project.uvprojx b/bsp/ht32/ht32f12366/project.uvprojx index e75d39643ba..578dcd6fca4 100644 --- a/bsp/ht32/ht32f12366/project.uvprojx +++ b/bsp/ht32/ht32f12366/project.uvprojx @@ -333,9 +333,9 @@ 0 --gnu - __STDC_LIMIT_MACROS, __CLK_TCK=RT_TICK_PER_SECOND, USE_HT32_DRIVER, RT_USING_LIBC, __RTTHREAD__, USE_HT32F12366_SK, USE_HT32F12365_66, USE_MEM_HT32F12366, RT_USING_ARMLIBC + __CLK_TCK=RT_TICK_PER_SECOND, USE_HT32_DRIVER, USE_HT32F12366_SK, USE_HT32F12365_66, USE_MEM_HT32F12366, __RTTHREAD__, __STDC_LIMIT_MACROS, RT_USING_LIBC, RT_USING_ARMLIBC - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\inc;..\libraries\usbd_library\inc;..\..\..\components\drivers\include;applications;..\..\..\components\drivers\smp_call;..\libraries\ht32_drivers;..\..\..\libcpu\arm\common;..\..\..\components\libc\compilers\common\include;..\..\..\components\drivers\phy;..\..\..\components\libc\posix\ipc;..\..\..\components\libc\posix\io\eventfd;..\..\..\components\libc\posix\io\epoll;..\..\..\components\drivers\include;..\..\..\components\libc\compilers\common\extension;board\inc;..\libraries\HT32_STD_1xxxx_FWLib\library\CMSIS\Include;..\..\..\components\libc\posix\io\poll;..\..\..\include;..\..\..\components\drivers\include;..\..\..\libcpu\arm\cortex-m3;..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\components\finsh;..\libraries\HT32_STD_1xxxx_FWLib\library\Device\Holtek\HT32F1xxxx\Include;..\..\..\components\drivers\include;.;..\..\..\components\drivers\include + ..\..\..\libcpu\arm\common;..\..\..\components\libc\compilers\common\include;..\..\..\components\libc\posix\io\eventfd;board\inc;..\..\..\libcpu\arm\cortex-m3;..\..\..\components\finsh;..\..\..\components\libc\posix\ipc;..\libraries\usbd_library\inc;..\libraries\ht32_drivers;applications;..\..\..\components\libc\compilers\common\extension;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\libc\posix\io\poll;..\..\..\include;..\..\..\components\drivers\smp_call;..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\inc;.;..\libraries\HT32_STD_1xxxx_FWLib\library\CMSIS\Include;..\libraries\HT32_STD_1xxxx_FWLib\library\Device\Holtek\HT32F1xxxx\Include;..\..\..\components\libc\posix\io\epoll;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\phy;..\..\..\components\drivers\include @@ -384,11 +384,6 @@ 1 applications\main.c - - test.c - 1 - applications\test.c - @@ -1139,11 +1134,6 @@ Finsh - - msh.c - 1 - ..\..\..\components\finsh\msh.c - cmd.c 1 @@ -1159,6 +1149,11 @@ 1 ..\..\..\components\finsh\msh_parse.c + + msh.c + 1 + ..\..\..\components\finsh\msh.c + @@ -2054,6 +2049,11 @@ 1 ..\..\..\src\klibc\kstdio.c + + kerrno.c + 1 + ..\..\..\src\klibc\kerrno.c + rt_vsnprintf_tiny.c 1 @@ -2065,9 +2065,9 @@ ..\..\..\src\klibc\kstring.c - kerrno.c + rt_vsscanf.c 1 - ..\..\..\src\klibc\kerrno.c + ..\..\..\src\klibc\rt_vsscanf.c @@ -2105,54 +2105,54 @@ Libraries - ht32f1xxxx_bftm.c + ht32f1xxxx_i2s.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_bftm.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_i2s.c - ht32f1xxxx_gpio.c + ht32f1xxxx_mctm.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_gpio.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_mctm.c - ht32f1xxxx_usart.c + ht32f1xxxx_bftm.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_usart.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_bftm.c - ht32f1xxxx_ebi.c + ht32f1xxxx_flash.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_ebi.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_flash.c - ht32f1xxxx_cmp.c + ht32f1xxxx_tm.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_cmp.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_tm.c - ht32f1xxxx_exti.c + ht32f1xxxx_usbd.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_exti.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_usbd.c - ht32f1xxxx_mctm.c + ht32f1xxxx_ebi.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_mctm.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_ebi.c - ht32f2xxxx_csif.c + ht32f1xxxx_exti.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f2xxxx_csif.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_exti.c - ht32f1xxxx_sdio.c + ht32f1xxxx_crc.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_sdio.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_crc.c - ht32f1xxxx_pwrcu.c + ht32f1xxxx_rtc.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_pwrcu.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_rtc.c ht32f1xxxx_rstcu.c @@ -2160,74 +2160,74 @@ ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_rstcu.c - ht32f1xxxx_pdma.c + ht32f1xxxx_aes.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_pdma.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_aes.c - ht32f1xxxx_rtc.c + system_ht32f1xxxx_02.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_rtc.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\Device\Holtek\HT32F1xxxx\Source\system_ht32f1xxxx_02.c - ht32f1xxxx_sci.c + ht32f1xxxx_cmp.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_sci.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_cmp.c - system_ht32f1xxxx_02.c + ht32_cm3_misc.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\Device\Holtek\HT32F1xxxx\Source\system_ht32f1xxxx_02.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32_cm3_misc.c - ht32f1xxxx_usbd.c + ht32f1xxxx_sci.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_usbd.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_sci.c - ht32f1xxxx_i2s.c + ht32f1xxxx_pwrcu.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_i2s.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_pwrcu.c - ht32f1xxxx_aes.c + ht32f1xxxx_spi.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_aes.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_spi.c - ht32f1xxxx_crc.c + ht32f1xxxx_adc.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_crc.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_adc.c - ht32f1xxxx_tm.c + ht32f1xxxx_sdio.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_tm.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_sdio.c - ht32f1xxxx_flash.c + ht32f1xxxx_usart.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_flash.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_usart.c - ht32f1xxxx_spi.c + ht32f1xxxx_ckcu.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_spi.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_ckcu.c - ht32f1xxxx_i2c.c + ht32f1xxxx_gpio.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_i2c.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_gpio.c - ht32f1xxxx_adc.c + ht32f1xxxx_pdma.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_adc.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_pdma.c - ht32f1xxxx_ckcu.c + ht32f2xxxx_csif.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_ckcu.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f2xxxx_csif.c ht32f1xxxx_wdt.c @@ -2235,9 +2235,9 @@ ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_wdt.c - ht32_cm3_misc.c + ht32f1xxxx_i2c.c 1 - ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32_cm3_misc.c + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_i2c.c diff --git a/bsp/ht32/ht32f12366/rtconfig.h b/bsp/ht32/ht32f12366/rtconfig.h index 80e84f1deb6..fa25b0a78e5 100644 --- a/bsp/ht32/ht32f12366/rtconfig.h +++ b/bsp/ht32/ht32f12366/rtconfig.h @@ -11,7 +11,6 @@ /* rt_vsscanf options */ -#define RT_KLIBC_USING_LIBC_VSSCANF /* end of rt_vsscanf options */ /* rt_memset options */ @@ -381,7 +380,6 @@ /* Onboard Peripheral Drivers */ -#define BSP_USING_TEST /* end of Onboard Peripheral Drivers */ /* On-chip Peripheral Drivers */ diff --git a/bsp/ht32/ht32f52352/.config b/bsp/ht32/ht32f52352/.config index 505ab34ebf5..8456d0fbe7c 100644 --- a/bsp/ht32/ht32f52352/.config +++ b/bsp/ht32/ht32f52352/.config @@ -18,7 +18,7 @@ # # rt_vsscanf options # -CONFIG_RT_KLIBC_USING_LIBC_VSSCANF=y +# CONFIG_RT_KLIBC_USING_LIBC_VSSCANF is not set # end of rt_vsscanf options # @@ -1299,7 +1299,7 @@ CONFIG_SOC_HT32F52352=y # # Onboard Peripheral Drivers # -CONFIG_BSP_USING_TEST=y +# CONFIG_BSP_USING_TEST is not set # end of Onboard Peripheral Drivers # diff --git a/bsp/ht32/ht32f52352/board/Kconfig b/bsp/ht32/ht32f52352/board/Kconfig index f77f0663f69..8ba20cd72d2 100644 --- a/bsp/ht32/ht32f52352/board/Kconfig +++ b/bsp/ht32/ht32f52352/board/Kconfig @@ -138,7 +138,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_USART1 bool "Enable USART1" - default y + default n config BSP_USING_USART1_NAME depends on BSP_USING_USART1 string "usart1 bus name" @@ -168,7 +168,7 @@ menu "On-chip Peripheral Drivers" if BSP_USING_SPI config BSP_USING_SPI0 bool "Enable SPI0 Bus" - default y + default n config BSP_USING_SPI0_NAME depends on BSP_USING_SPI0 string "spi0 bus name" @@ -189,12 +189,12 @@ menu "On-chip Peripheral Drivers" if BSP_USING_I2C menuconfig BSP_USING_I2C_HW bool "Enable I2C Bus(hardware)" - default y + default n select RT_USING_I2C if BSP_USING_I2C_HW if BSP_USING_I2C_HW config BSP_USING_I2C0_HW bool "Enable Hardware I2C0 Bus" - default y + default n config BSP_USING_I2C0_HW_NAME depends on BSP_USING_I2C0_HW string "hardware i2c0 name" @@ -282,7 +282,7 @@ menu "On-chip Peripheral Drivers" if BSP_USING_ADC config BSP_USING_ADC0 bool "Enable ADC0" - default y + default n config BSP_USING_ADC0_NAME depends on BSP_USING_ADC0 string "adc0 device name" diff --git a/bsp/ht32/ht32f52352/project.uvoptx b/bsp/ht32/ht32f52352/project.uvoptx index 2bfae457fcf..50637f5197b 100644 --- a/bsp/ht32/ht32f52352/project.uvoptx +++ b/bsp/ht32/ht32f52352/project.uvoptx @@ -73,7 +73,7 @@ 0 - 1 + 0 0 1 @@ -181,18 +181,6 @@ 0 0 0 - applications\test.c - test.c - 0 - 0 - - - 1 - 2 - 1 - 0 - 0 - 0 applications\main.c main.c 0 @@ -208,7 +196,7 @@ 0 2 - 3 + 2 1 0 0 @@ -220,7 +208,7 @@ 2 - 4 + 3 1 0 0 @@ -232,7 +220,7 @@ 2 - 5 + 4 1 0 0 @@ -244,7 +232,7 @@ 2 - 6 + 5 1 0 0 @@ -256,7 +244,7 @@ 2 - 7 + 6 1 0 0 @@ -268,7 +256,7 @@ 2 - 8 + 7 1 0 0 @@ -280,7 +268,7 @@ 2 - 9 + 8 1 0 0 @@ -292,7 +280,7 @@ 2 - 10 + 9 1 0 0 @@ -312,7 +300,7 @@ 0 3 - 11 + 10 1 0 0 @@ -324,7 +312,7 @@ 3 - 12 + 11 1 0 0 @@ -336,7 +324,7 @@ 3 - 13 + 12 1 0 0 @@ -348,7 +336,7 @@ 3 - 14 + 13 1 0 0 @@ -360,7 +348,7 @@ 3 - 15 + 14 1 0 0 @@ -372,7 +360,7 @@ 3 - 16 + 15 1 0 0 @@ -384,7 +372,7 @@ 3 - 17 + 16 1 0 0 @@ -396,7 +384,7 @@ 3 - 18 + 17 1 0 0 @@ -408,7 +396,7 @@ 3 - 19 + 18 1 0 0 @@ -420,7 +408,7 @@ 3 - 20 + 19 1 0 0 @@ -432,7 +420,7 @@ 3 - 21 + 20 1 0 0 @@ -444,7 +432,7 @@ 3 - 22 + 21 1 0 0 @@ -464,7 +452,7 @@ 0 4 - 23 + 22 1 0 0 @@ -476,7 +464,7 @@ 4 - 24 + 23 1 0 0 @@ -488,7 +476,7 @@ 4 - 25 + 24 2 0 0 @@ -500,7 +488,7 @@ 4 - 26 + 25 1 0 0 @@ -512,7 +500,7 @@ 4 - 27 + 26 1 0 0 @@ -524,7 +512,7 @@ 4 - 28 + 27 1 0 0 @@ -544,31 +532,31 @@ 0 5 - 29 + 28 1 0 0 0 - ..\..\..\components\finsh\cmd.c - cmd.c + ..\..\..\components\finsh\msh.c + msh.c 0 0 5 - 30 + 29 1 0 0 0 - ..\..\..\components\finsh\msh.c - msh.c + ..\..\..\components\finsh\cmd.c + cmd.c 0 0 5 - 31 + 30 1 0 0 @@ -580,7 +568,7 @@ 5 - 32 + 31 1 0 0 @@ -600,7 +588,7 @@ 0 6 - 33 + 32 1 0 0 @@ -612,7 +600,7 @@ 6 - 34 + 33 1 0 0 @@ -624,7 +612,7 @@ 6 - 35 + 34 1 0 0 @@ -636,7 +624,7 @@ 6 - 36 + 35 1 0 0 @@ -648,7 +636,7 @@ 6 - 37 + 36 1 0 0 @@ -660,7 +648,7 @@ 6 - 38 + 37 1 0 0 @@ -672,7 +660,7 @@ 6 - 39 + 38 1 0 0 @@ -684,7 +672,7 @@ 6 - 40 + 39 1 0 0 @@ -696,7 +684,7 @@ 6 - 41 + 40 1 0 0 @@ -708,7 +696,7 @@ 6 - 42 + 41 1 0 0 @@ -720,7 +708,7 @@ 6 - 43 + 42 1 0 0 @@ -732,7 +720,7 @@ 6 - 44 + 43 1 0 0 @@ -744,7 +732,7 @@ 6 - 45 + 44 1 0 0 @@ -756,7 +744,7 @@ 6 - 46 + 45 1 0 0 @@ -768,7 +756,7 @@ 6 - 47 + 46 1 0 0 @@ -780,7 +768,7 @@ 6 - 48 + 47 1 0 0 @@ -798,6 +786,18 @@ 0 0 0 + + 7 + 48 + 1 + 0 + 0 + 0 + ..\..\..\src\klibc\rt_vsnprintf_tiny.c + rt_vsnprintf_tiny.c + 0 + 0 + 7 49 @@ -817,8 +817,8 @@ 0 0 0 - ..\..\..\src\klibc\kstring.c - kstring.c + ..\..\..\src\klibc\kerrno.c + kerrno.c 0 0 @@ -829,8 +829,8 @@ 0 0 0 - ..\..\..\src\klibc\kerrno.c - kerrno.c + ..\..\..\src\klibc\kstring.c + kstring.c 0 0 @@ -841,8 +841,8 @@ 0 0 0 - ..\..\..\src\klibc\rt_vsnprintf_tiny.c - rt_vsnprintf_tiny.c + ..\..\..\src\klibc\rt_vsscanf.c + rt_vsscanf.c 0 0 @@ -917,8 +917,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_i2c.c - ht32f5xxxx_i2c.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ckcu.c + ht32f5xxxx_ckcu.c 0 0 @@ -929,8 +929,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_usbd.c - ht32f5xxxx_usbd.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_pwrcu.c + ht32f5xxxx_pwrcu.c 0 0 @@ -941,8 +941,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ebi.c - ht32f5xxxx_ebi.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_wdt.c + ht32f5xxxx_wdt.c 0 0 @@ -953,8 +953,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_flash.c - ht32f5xxxx_flash.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_mctm.c + ht32f5xxxx_mctm.c 0 0 @@ -965,8 +965,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_i2s.c - ht32f5xxxx_i2s.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_usart.c + ht32f5xxxx_usart.c 0 0 @@ -977,8 +977,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_gpio.c - ht32f5xxxx_gpio.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ebi.c + ht32f5xxxx_ebi.c 0 0 @@ -1001,8 +1001,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_pdma.c - ht32f5xxxx_pdma.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_crc.c + ht32f5xxxx_crc.c 0 0 @@ -1013,8 +1013,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_mctm.c - ht32f5xxxx_mctm.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_spi.c + ht32f5xxxx_spi.c 0 0 @@ -1025,8 +1025,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_cmp.c - ht32f5xxxx_cmp.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_sci.c + ht32f5xxxx_sci.c 0 0 @@ -1037,8 +1037,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ckcu.c - ht32f5xxxx_ckcu.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_i2c.c + ht32f5xxxx_i2c.c 0 0 @@ -1049,8 +1049,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_usart.c - ht32f5xxxx_usart.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_tm.c + ht32f5xxxx_tm.c 0 0 @@ -1061,8 +1061,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32_cm0plus_misc.c - ht32_cm0plus_misc.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_pdma.c + ht32f5xxxx_pdma.c 0 0 @@ -1073,8 +1073,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_rstcu.c - ht32f5xxxx_rstcu.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_adc.c + ht32f5xxxx_adc.c 0 0 @@ -1085,8 +1085,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_tm.c - ht32f5xxxx_tm.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_usbd.c + ht32f5xxxx_usbd.c 0 0 @@ -1109,8 +1109,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_crc.c - ht32f5xxxx_crc.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_rstcu.c + ht32f5xxxx_rstcu.c 0 0 @@ -1121,8 +1121,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_adc.c - ht32f5xxxx_adc.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_flash.c + ht32f5xxxx_flash.c 0 0 @@ -1133,8 +1133,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_pwrcu.c - ht32f5xxxx_pwrcu.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_gpio.c + ht32f5xxxx_gpio.c 0 0 @@ -1145,8 +1145,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_sci.c - ht32f5xxxx_sci.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32_cm0plus_misc.c + ht32_cm0plus_misc.c 0 0 @@ -1157,8 +1157,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_rtc.c - ht32f5xxxx_rtc.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_bftm.c + ht32f5xxxx_bftm.c 0 0 @@ -1169,8 +1169,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_wdt.c - ht32f5xxxx_wdt.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_i2s.c + ht32f5xxxx_i2s.c 0 0 @@ -1181,8 +1181,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_bftm.c - ht32f5xxxx_bftm.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_rtc.c + ht32f5xxxx_rtc.c 0 0 @@ -1193,8 +1193,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_spi.c - ht32f5xxxx_spi.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_cmp.c + ht32f5xxxx_cmp.c 0 0 diff --git a/bsp/ht32/ht32f52352/project.uvprojx b/bsp/ht32/ht32f52352/project.uvprojx index 2efbf44b5c0..8f9e53c8704 100644 --- a/bsp/ht32/ht32f52352/project.uvprojx +++ b/bsp/ht32/ht32f52352/project.uvprojx @@ -333,9 +333,9 @@ 0 --gnu - USE_HT32_DRIVER, USE_HT32F52352_SK, USE_HT32F52342_52, USE_MEM_HT32F52352, RT_USING_LIBC, __STDC_LIMIT_MACROS, RT_USING_ARMLIBC, __CLK_TCK=RT_TICK_PER_SECOND, __RTTHREAD__ + RT_USING_LIBC, RT_USING_ARMLIBC, __RTTHREAD__, USE_HT32F52352_SK, USE_HT32F52342_52, USE_MEM_HT32F52352, __CLK_TCK=RT_TICK_PER_SECOND, __STDC_LIMIT_MACROS, USE_HT32_DRIVER - ..\..\..\components\drivers\smp_call;..\..\..\components\finsh;..\libraries\HT32_STD_5xxxx_FWLib\library\CMSIS\Include;..\..\..\libcpu\arm\cortex-m0;..\..\..\components\drivers\phy;..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\inc;..\..\..\components\drivers\include;..\libraries\usbd_library\inc;..\..\..\components\libc\posix\io\poll;..\..\..\components\drivers\include;.;..\..\..\components\drivers\include;..\..\..\components\libc\posix\ipc;..\libraries\HT32_STD_5xxxx_FWLib\library\Device\Holtek\HT32F5xxxx\Include;..\..\..\components\drivers\include;..\..\..\components\libc\posix\io\epoll;..\..\..\include;board\inc;..\..\..\libcpu\arm\common;..\..\..\components\drivers\include;..\..\..\components\libc\posix\io\eventfd;..\..\..\components\libc\compilers\common\extension;..\libraries\ht32_drivers;applications;..\..\..\components\libc\compilers\common\include;..\..\..\components\libc\compilers\common\extension\fcntl\octal + ..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\smp_call;..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\inc;..\..\..\libcpu\arm\common;..\..\..\components\drivers\include;..\..\..\libcpu\arm\cortex-m0;..\..\..\components\libc\posix\ipc;..\libraries\ht32_drivers;..\..\..\components\libc\posix\io\poll;..\libraries\usbd_library\inc;..\..\..\components\libc\posix\io\epoll;..\..\..\components\drivers\include;.;..\..\..\components\drivers\phy;board\inc;..\..\..\include;..\..\..\components\libc\compilers\common\extension;..\..\..\components\finsh;applications;..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\libraries\HT32_STD_5xxxx_FWLib\library\CMSIS\Include;..\..\..\components\libc\compilers\common\include;..\..\..\components\libc\posix\io\eventfd;..\libraries\HT32_STD_5xxxx_FWLib\library\Device\Holtek\HT32F5xxxx\Include @@ -379,11 +379,6 @@ Applications - - test.c - 1 - applications\test.c - main.c 1 @@ -1140,14 +1135,14 @@ Finsh - cmd.c + msh.c 1 - ..\..\..\components\finsh\cmd.c + ..\..\..\components\finsh\msh.c - msh.c + cmd.c 1 - ..\..\..\components\finsh\msh.c + ..\..\..\components\finsh\cmd.c msh_parse.c @@ -2050,14 +2045,14 @@ klibc - kstdio.c + rt_vsnprintf_tiny.c 1 - ..\..\..\src\klibc\kstdio.c + ..\..\..\src\klibc\rt_vsnprintf_tiny.c - kstring.c + kstdio.c 1 - ..\..\..\src\klibc\kstring.c + ..\..\..\src\klibc\kstdio.c kerrno.c @@ -2065,9 +2060,14 @@ ..\..\..\src\klibc\kerrno.c - rt_vsnprintf_tiny.c + kstring.c 1 - ..\..\..\src\klibc\rt_vsnprintf_tiny.c + ..\..\..\src\klibc\kstring.c + + + rt_vsscanf.c + 1 + ..\..\..\src\klibc\rt_vsscanf.c @@ -2100,34 +2100,34 @@ Libraries - ht32f5xxxx_i2c.c + ht32f5xxxx_ckcu.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_i2c.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ckcu.c - ht32f5xxxx_usbd.c + ht32f5xxxx_pwrcu.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_usbd.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_pwrcu.c - ht32f5xxxx_ebi.c + ht32f5xxxx_wdt.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ebi.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_wdt.c - ht32f5xxxx_flash.c + ht32f5xxxx_mctm.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_flash.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_mctm.c - ht32f5xxxx_i2s.c + ht32f5xxxx_usart.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_i2s.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_usart.c - ht32f5xxxx_gpio.c + ht32f5xxxx_ebi.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_gpio.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ebi.c ht32f5xxxx_exti.c @@ -2135,44 +2135,44 @@ ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_exti.c - ht32f5xxxx_pdma.c + ht32f5xxxx_crc.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_pdma.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_crc.c - ht32f5xxxx_mctm.c + ht32f5xxxx_spi.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_mctm.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_spi.c - ht32f5xxxx_cmp.c + ht32f5xxxx_sci.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_cmp.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_sci.c - ht32f5xxxx_ckcu.c + ht32f5xxxx_i2c.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ckcu.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_i2c.c - ht32f5xxxx_usart.c + ht32f5xxxx_tm.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_usart.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_tm.c - ht32_cm0plus_misc.c + ht32f5xxxx_pdma.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32_cm0plus_misc.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_pdma.c - ht32f5xxxx_rstcu.c + ht32f5xxxx_adc.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_rstcu.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_adc.c - ht32f5xxxx_tm.c + ht32f5xxxx_usbd.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_tm.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_usbd.c system_ht32f5xxxx_01.c @@ -2180,44 +2180,44 @@ ..\libraries\HT32_STD_5xxxx_FWLib\library\Device\Holtek\HT32F5xxxx\Source\system_ht32f5xxxx_01.c - ht32f5xxxx_crc.c + ht32f5xxxx_rstcu.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_crc.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_rstcu.c - ht32f5xxxx_adc.c + ht32f5xxxx_flash.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_adc.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_flash.c - ht32f5xxxx_pwrcu.c + ht32f5xxxx_gpio.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_pwrcu.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_gpio.c - ht32f5xxxx_sci.c + ht32_cm0plus_misc.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_sci.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32_cm0plus_misc.c - ht32f5xxxx_rtc.c + ht32f5xxxx_bftm.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_rtc.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_bftm.c - ht32f5xxxx_wdt.c + ht32f5xxxx_i2s.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_wdt.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_i2s.c - ht32f5xxxx_bftm.c + ht32f5xxxx_rtc.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_bftm.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_rtc.c - ht32f5xxxx_spi.c + ht32f5xxxx_cmp.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_spi.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_cmp.c diff --git a/bsp/ht32/ht32f52352/rtconfig.h b/bsp/ht32/ht32f52352/rtconfig.h index d81f5d02aa8..b7406d9fc7d 100644 --- a/bsp/ht32/ht32f52352/rtconfig.h +++ b/bsp/ht32/ht32f52352/rtconfig.h @@ -11,7 +11,6 @@ /* rt_vsscanf options */ -#define RT_KLIBC_USING_LIBC_VSSCANF /* end of rt_vsscanf options */ /* rt_memset options */ @@ -378,7 +377,6 @@ /* Onboard Peripheral Drivers */ -#define BSP_USING_TEST /* end of Onboard Peripheral Drivers */ /* On-chip Peripheral Drivers */ diff --git a/bsp/ht32/ht32f53252/.config b/bsp/ht32/ht32f53252/.config index 648b5811557..7dc7e334d38 100644 --- a/bsp/ht32/ht32f53252/.config +++ b/bsp/ht32/ht32f53252/.config @@ -10,13 +10,15 @@ # # rt_vsnprintf options # -CONFIG_RT_KLIBC_USING_LIBC_VSNPRINTF=y +# CONFIG_RT_KLIBC_USING_LIBC_VSNPRINTF is not set +# CONFIG_RT_KLIBC_USING_VSNPRINTF_LONGLONG is not set +# CONFIG_RT_KLIBC_USING_VSNPRINTF_STANDARD is not set # end of rt_vsnprintf options # # rt_vsscanf options # -CONFIG_RT_KLIBC_USING_LIBC_VSSCANF=y +# CONFIG_RT_KLIBC_USING_LIBC_VSSCANF is not set # end of rt_vsscanf options # @@ -1297,7 +1299,7 @@ CONFIG_SOC_HT32F53252=y # # Onboard Peripheral Drivers # -CONFIG_BSP_USING_TEST=y +# CONFIG_BSP_USING_TEST is not set # end of Onboard Peripheral Drivers # diff --git a/bsp/ht32/ht32f53252/board/Kconfig b/bsp/ht32/ht32f53252/board/Kconfig index f77f0663f69..8ba20cd72d2 100644 --- a/bsp/ht32/ht32f53252/board/Kconfig +++ b/bsp/ht32/ht32f53252/board/Kconfig @@ -138,7 +138,7 @@ menu "On-chip Peripheral Drivers" config BSP_USING_USART1 bool "Enable USART1" - default y + default n config BSP_USING_USART1_NAME depends on BSP_USING_USART1 string "usart1 bus name" @@ -168,7 +168,7 @@ menu "On-chip Peripheral Drivers" if BSP_USING_SPI config BSP_USING_SPI0 bool "Enable SPI0 Bus" - default y + default n config BSP_USING_SPI0_NAME depends on BSP_USING_SPI0 string "spi0 bus name" @@ -189,12 +189,12 @@ menu "On-chip Peripheral Drivers" if BSP_USING_I2C menuconfig BSP_USING_I2C_HW bool "Enable I2C Bus(hardware)" - default y + default n select RT_USING_I2C if BSP_USING_I2C_HW if BSP_USING_I2C_HW config BSP_USING_I2C0_HW bool "Enable Hardware I2C0 Bus" - default y + default n config BSP_USING_I2C0_HW_NAME depends on BSP_USING_I2C0_HW string "hardware i2c0 name" @@ -282,7 +282,7 @@ menu "On-chip Peripheral Drivers" if BSP_USING_ADC config BSP_USING_ADC0 bool "Enable ADC0" - default y + default n config BSP_USING_ADC0_NAME depends on BSP_USING_ADC0 string "adc0 device name" diff --git a/bsp/ht32/ht32f53252/project.uvoptx b/bsp/ht32/ht32f53252/project.uvoptx index ac60a189877..454293cb527 100644 --- a/bsp/ht32/ht32f53252/project.uvoptx +++ b/bsp/ht32/ht32f53252/project.uvoptx @@ -181,18 +181,6 @@ 0 0 0 - applications\test.c - test.c - 0 - 0 - - - 1 - 2 - 1 - 0 - 0 - 0 applications\main.c main.c 0 @@ -208,7 +196,7 @@ 0 2 - 3 + 2 1 0 0 @@ -220,7 +208,7 @@ 2 - 4 + 3 1 0 0 @@ -232,7 +220,7 @@ 2 - 5 + 4 1 0 0 @@ -244,7 +232,7 @@ 2 - 6 + 5 1 0 0 @@ -256,7 +244,7 @@ 2 - 7 + 6 1 0 0 @@ -268,7 +256,7 @@ 2 - 8 + 7 1 0 0 @@ -280,7 +268,7 @@ 2 - 9 + 8 1 0 0 @@ -292,7 +280,7 @@ 2 - 10 + 9 1 0 0 @@ -312,7 +300,7 @@ 0 3 - 11 + 10 1 0 0 @@ -324,7 +312,7 @@ 3 - 12 + 11 1 0 0 @@ -336,7 +324,7 @@ 3 - 13 + 12 1 0 0 @@ -348,7 +336,7 @@ 3 - 14 + 13 1 0 0 @@ -360,7 +348,7 @@ 3 - 15 + 14 1 0 0 @@ -372,7 +360,7 @@ 3 - 16 + 15 1 0 0 @@ -384,7 +372,7 @@ 3 - 17 + 16 1 0 0 @@ -396,7 +384,7 @@ 3 - 18 + 17 1 0 0 @@ -408,7 +396,7 @@ 3 - 19 + 18 1 0 0 @@ -420,7 +408,7 @@ 3 - 20 + 19 1 0 0 @@ -432,7 +420,7 @@ 3 - 21 + 20 1 0 0 @@ -444,7 +432,7 @@ 3 - 22 + 21 1 0 0 @@ -464,7 +452,7 @@ 0 4 - 23 + 22 1 0 0 @@ -476,7 +464,7 @@ 4 - 24 + 23 1 0 0 @@ -488,7 +476,7 @@ 4 - 25 + 24 2 0 0 @@ -500,7 +488,7 @@ 4 - 26 + 25 1 0 0 @@ -512,7 +500,7 @@ 4 - 27 + 26 1 0 0 @@ -524,7 +512,7 @@ 4 - 28 + 27 1 0 0 @@ -544,49 +532,49 @@ 0 5 - 29 + 28 1 0 0 0 - ..\..\..\components\finsh\shell.c - shell.c + ..\..\..\components\finsh\msh_parse.c + msh_parse.c 0 0 5 - 30 + 29 1 0 0 0 - ..\..\..\components\finsh\msh.c - msh.c + ..\..\..\components\finsh\cmd.c + cmd.c 0 0 5 - 31 + 30 1 0 0 0 - ..\..\..\components\finsh\msh_parse.c - msh_parse.c + ..\..\..\components\finsh\msh.c + msh.c 0 0 5 - 32 + 31 1 0 0 0 - ..\..\..\components\finsh\cmd.c - cmd.c + ..\..\..\components\finsh\shell.c + shell.c 0 0 @@ -600,7 +588,7 @@ 0 6 - 33 + 32 1 0 0 @@ -612,7 +600,7 @@ 6 - 34 + 33 1 0 0 @@ -624,7 +612,7 @@ 6 - 35 + 34 1 0 0 @@ -636,7 +624,7 @@ 6 - 36 + 35 1 0 0 @@ -648,7 +636,7 @@ 6 - 37 + 36 1 0 0 @@ -660,7 +648,7 @@ 6 - 38 + 37 1 0 0 @@ -672,7 +660,7 @@ 6 - 39 + 38 1 0 0 @@ -684,7 +672,7 @@ 6 - 40 + 39 1 0 0 @@ -696,7 +684,7 @@ 6 - 41 + 40 1 0 0 @@ -708,7 +696,7 @@ 6 - 42 + 41 1 0 0 @@ -720,7 +708,7 @@ 6 - 43 + 42 1 0 0 @@ -732,7 +720,7 @@ 6 - 44 + 43 1 0 0 @@ -744,7 +732,7 @@ 6 - 45 + 44 1 0 0 @@ -756,7 +744,7 @@ 6 - 46 + 45 1 0 0 @@ -768,7 +756,7 @@ 6 - 47 + 46 1 0 0 @@ -780,7 +768,7 @@ 6 - 48 + 47 1 0 0 @@ -798,6 +786,18 @@ 0 0 0 + + 7 + 48 + 1 + 0 + 0 + 0 + ..\..\..\src\klibc\kstring.c + kstring.c + 0 + 0 + 7 49 @@ -817,6 +817,18 @@ 0 0 0 + ..\..\..\src\klibc\rt_vsnprintf_tiny.c + rt_vsnprintf_tiny.c + 0 + 0 + + + 7 + 51 + 1 + 0 + 0 + 0 ..\..\..\src\klibc\kerrno.c kerrno.c 0 @@ -824,13 +836,13 @@ 7 - 51 + 52 1 0 0 0 - ..\..\..\src\klibc\kstring.c - kstring.c + ..\..\..\src\klibc\rt_vsscanf.c + rt_vsscanf.c 0 0 @@ -844,7 +856,7 @@ 0 8 - 52 + 53 1 0 0 @@ -856,7 +868,7 @@ 8 - 53 + 54 1 0 0 @@ -868,7 +880,7 @@ 8 - 54 + 55 2 0 0 @@ -880,7 +892,7 @@ 8 - 55 + 56 1 0 0 @@ -898,18 +910,6 @@ 0 0 0 - - 9 - 56 - 1 - 0 - 0 - 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_cmp.c - ht32f5xxxx_cmp.c - 0 - 0 - 9 57 @@ -917,8 +917,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_flash.c - ht32f5xxxx_flash.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_gpio.c + ht32f5xxxx_gpio.c 0 0 @@ -929,8 +929,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_adc.c - ht32f5xxxx_adc.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32_cm0plus_misc.c + ht32_cm0plus_misc.c 0 0 @@ -941,8 +941,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_wdt.c - ht32f5xxxx_wdt.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ledc.c + ht32f5xxxx_ledc.c 0 0 @@ -953,8 +953,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32_cm0plus_misc.c - ht32_cm0plus_misc.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_tm.c + ht32f5xxxx_tm.c 0 0 @@ -965,8 +965,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_bftm.c - ht32f5xxxx_bftm.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_wdt.c + ht32f5xxxx_wdt.c 0 0 @@ -977,8 +977,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_i2c.c - ht32f5xxxx_i2c.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_bftm.c + ht32f5xxxx_bftm.c 0 0 @@ -989,8 +989,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_tm.c - ht32f5xxxx_tm.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_usart.c + ht32f5xxxx_usart.c 0 0 @@ -1001,8 +1001,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_div.c - ht32f5xxxx_div.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_flash.c + ht32f5xxxx_flash.c 0 0 @@ -1013,8 +1013,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_rstcu.c - ht32f5xxxx_rstcu.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ebi.c + ht32f5xxxx_ebi.c 0 0 @@ -1025,8 +1025,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_spi.c - ht32f5xxxx_spi.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ckcu.c + ht32f5xxxx_ckcu.c 0 0 @@ -1037,8 +1037,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ebi.c - ht32f5xxxx_ebi.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_div.c + ht32f5xxxx_div.c 0 0 @@ -1049,8 +1049,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\Device\Holtek\HT32F5xxxx\Source\system_ht32f5xxxx_15.c - system_ht32f5xxxx_15.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_pwrcu.c + ht32f5xxxx_pwrcu.c 0 0 @@ -1061,8 +1061,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ckcu.c - ht32f5xxxx_ckcu.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_i2c.c + ht32f5xxxx_i2c.c 0 0 @@ -1073,8 +1073,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_mctm.c - ht32f5xxxx_mctm.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_cmp.c + ht32f5xxxx_cmp.c 0 0 @@ -1085,8 +1085,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_crc.c - ht32f5xxxx_crc.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_pdma.c + ht32f5xxxx_pdma.c 0 0 @@ -1109,8 +1109,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_rtc.c - ht32f5xxxx_rtc.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_crc.c + ht32f5xxxx_crc.c 0 0 @@ -1121,8 +1121,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_usart.c - ht32f5xxxx_usart.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_rtc.c + ht32f5xxxx_rtc.c 0 0 @@ -1133,8 +1133,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_pwrcu.c - ht32f5xxxx_pwrcu.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_mctm.c + ht32f5xxxx_mctm.c 0 0 @@ -1145,8 +1145,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ledc.c - ht32f5xxxx_ledc.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_adc.c + ht32f5xxxx_adc.c 0 0 @@ -1157,8 +1157,8 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_pdma.c - ht32f5xxxx_pdma.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\Device\Holtek\HT32F5xxxx\Source\system_ht32f5xxxx_15.c + system_ht32f5xxxx_15.c 0 0 @@ -1181,8 +1181,20 @@ 0 0 0 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_gpio.c - ht32f5xxxx_gpio.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_rstcu.c + ht32f5xxxx_rstcu.c + 0 + 0 + + + 9 + 80 + 1 + 0 + 0 + 0 + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_spi.c + ht32f5xxxx_spi.c 0 0 diff --git a/bsp/ht32/ht32f53252/project.uvprojx b/bsp/ht32/ht32f53252/project.uvprojx index bf310a93635..4f6e9268d33 100644 --- a/bsp/ht32/ht32f53252/project.uvprojx +++ b/bsp/ht32/ht32f53252/project.uvprojx @@ -333,9 +333,9 @@ 0 --gnu - __RTTHREAD__, USE_HT32F53252_SK, USE_HT32F53242_52, USE_MEM_HT32F53252, RT_USING_LIBC, USE_HT32_DRIVER, RT_USING_ARMLIBC, __STDC_LIMIT_MACROS, __CLK_TCK=RT_TICK_PER_SECOND + __CLK_TCK=RT_TICK_PER_SECOND, USE_HT32_DRIVER, RT_USING_ARMLIBC, __STDC_LIMIT_MACROS, USE_HT32F53252_SK, USE_HT32F53242_52, USE_MEM_HT32F53252, __RTTHREAD__, RT_USING_LIBC - board\inc;..\..\..\components\drivers\phy;..\..\..\include;..\libraries\HT32_STD_5xxxx_FWLib\library\CMSIS\Include;.;..\..\..\components\drivers\include;..\..\..\components\libc\compilers\common\extension;..\libraries\usbd_library\inc;applications;..\..\..\components\libc\compilers\common\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\libcpu\arm\common;..\..\..\components\drivers\include;..\..\..\components\libc\posix\ipc;..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\components\libc\posix\io\poll;..\..\..\libcpu\arm\cortex-m0;..\..\..\components\libc\posix\io\epoll;..\..\..\components\finsh;..\libraries\ht32_drivers;..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\inc;..\libraries\HT32_STD_5xxxx_FWLib\library\Device\Holtek\HT32F5xxxx\Include;..\..\..\components\drivers\smp_call;..\..\..\components\drivers\include;..\..\..\components\libc\posix\io\eventfd + ..\..\..\components\libc\posix\io\epoll;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\libraries\HT32_STD_5xxxx_FWLib\library\CMSIS\Include;..\..\..\components\drivers\phy;..\libraries\HT32_STD_5xxxx_FWLib\library\Device\Holtek\HT32F5xxxx\Include;..\..\..\components\drivers\include;.;..\..\..\components\libc\posix\io\eventfd;..\..\..\components\libc\compilers\common\include;..\..\..\libcpu\arm\cortex-m0;..\..\..\components\finsh;board\inc;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\libcpu\arm\common;..\libraries\ht32_drivers;applications;..\..\..\components\libc\posix\ipc;..\..\..\components\drivers\smp_call;..\..\..\components\drivers\include;..\libraries\usbd_library\inc;..\..\..\components\libc\compilers\common\extension;..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\inc;..\..\..\include @@ -379,11 +379,6 @@ Applications - - test.c - 1 - applications\test.c - main.c 1 @@ -1140,24 +1135,24 @@ Finsh - shell.c + msh_parse.c 1 - ..\..\..\components\finsh\shell.c + ..\..\..\components\finsh\msh_parse.c - msh.c + cmd.c 1 - ..\..\..\components\finsh\msh.c + ..\..\..\components\finsh\cmd.c - msh_parse.c + msh.c 1 - ..\..\..\components\finsh\msh_parse.c + ..\..\..\components\finsh\msh.c - cmd.c + shell.c 1 - ..\..\..\components\finsh\cmd.c + ..\..\..\components\finsh\shell.c @@ -2049,20 +2044,30 @@ klibc + + kstring.c + 1 + ..\..\..\src\klibc\kstring.c + kstdio.c 1 ..\..\..\src\klibc\kstdio.c + + rt_vsnprintf_tiny.c + 1 + ..\..\..\src\klibc\rt_vsnprintf_tiny.c + kerrno.c 1 ..\..\..\src\klibc\kerrno.c - kstring.c + rt_vsscanf.c 1 - ..\..\..\src\klibc\kstring.c + ..\..\..\src\klibc\rt_vsscanf.c @@ -2095,29 +2100,29 @@ Libraries - ht32f5xxxx_cmp.c + ht32f5xxxx_gpio.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_cmp.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_gpio.c - ht32f5xxxx_flash.c + ht32_cm0plus_misc.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_flash.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32_cm0plus_misc.c - ht32f5xxxx_adc.c + ht32f5xxxx_ledc.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_adc.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ledc.c - ht32f5xxxx_wdt.c + ht32f5xxxx_tm.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_wdt.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_tm.c - ht32_cm0plus_misc.c + ht32f5xxxx_wdt.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32_cm0plus_misc.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_wdt.c ht32f5xxxx_bftm.c @@ -2125,59 +2130,59 @@ ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_bftm.c - ht32f5xxxx_i2c.c + ht32f5xxxx_usart.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_i2c.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_usart.c - ht32f5xxxx_tm.c + ht32f5xxxx_flash.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_tm.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_flash.c - ht32f5xxxx_div.c + ht32f5xxxx_ebi.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_div.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ebi.c - ht32f5xxxx_rstcu.c + ht32f5xxxx_ckcu.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_rstcu.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ckcu.c - ht32f5xxxx_spi.c + ht32f5xxxx_div.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_spi.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_div.c - ht32f5xxxx_ebi.c + ht32f5xxxx_pwrcu.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ebi.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_pwrcu.c - system_ht32f5xxxx_15.c + ht32f5xxxx_i2c.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\Device\Holtek\HT32F5xxxx\Source\system_ht32f5xxxx_15.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_i2c.c - ht32f5xxxx_ckcu.c + ht32f5xxxx_cmp.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ckcu.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_cmp.c - ht32f5xxxx_mctm.c + ht32f5xxxx_pdma.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_mctm.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_pdma.c - ht32f5xxxx_crc.c + ht32f5xxxx_can.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_crc.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_can.c - ht32f5xxxx_can.c + ht32f5xxxx_crc.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_can.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_crc.c ht32f5xxxx_rtc.c @@ -2185,34 +2190,34 @@ ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_rtc.c - ht32f5xxxx_usart.c + ht32f5xxxx_mctm.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_usart.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_mctm.c - ht32f5xxxx_pwrcu.c + ht32f5xxxx_adc.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_pwrcu.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_adc.c - ht32f5xxxx_ledc.c + system_ht32f5xxxx_15.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_ledc.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\Device\Holtek\HT32F5xxxx\Source\system_ht32f5xxxx_15.c - ht32f5xxxx_pdma.c + ht32f5xxxx_exti.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_pdma.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_exti.c - ht32f5xxxx_exti.c + ht32f5xxxx_rstcu.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_exti.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_rstcu.c - ht32f5xxxx_gpio.c + ht32f5xxxx_spi.c 1 - ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_gpio.c + ..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\src\ht32f5xxxx_spi.c diff --git a/bsp/ht32/ht32f53252/rtconfig.h b/bsp/ht32/ht32f53252/rtconfig.h index 9489f8f249b..54fac2e6db4 100644 --- a/bsp/ht32/ht32f53252/rtconfig.h +++ b/bsp/ht32/ht32f53252/rtconfig.h @@ -7,12 +7,10 @@ /* rt_vsnprintf options */ -#define RT_KLIBC_USING_LIBC_VSNPRINTF /* end of rt_vsnprintf options */ /* rt_vsscanf options */ -#define RT_KLIBC_USING_LIBC_VSSCANF /* end of rt_vsscanf options */ /* rt_memset options */ @@ -379,7 +377,6 @@ /* Onboard Peripheral Drivers */ -#define BSP_USING_TEST /* end of Onboard Peripheral Drivers */ /* On-chip Peripheral Drivers */