From 7245dbd54f4d63dd26d2b57e0ca5b6cdfba0d601 Mon Sep 17 00:00:00 2001 From: QTbin Date: Tue, 7 May 2024 10:27:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9scons=E7=9A=84=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=96=87=E4=BB=B6=EF=BC=8C=E4=BD=BF=E5=85=B6=E9=80=82?= =?UTF-8?q?=E9=85=8D=E6=9B=B4=E5=A4=9A=E8=8A=AF=E7=89=87=E7=9A=84=E5=B7=A5?= =?UTF-8?q?=E7=A8=8B=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/ht32/ht32f12366/applications/main.c | 4 +- bsp/ht32/ht32f12366/project.uvoptx | 116 +- bsp/ht32/ht32f12366/project.uvprojx | 62 +- bsp/ht32/ht32f52352/applications/main.c | 4 +- bsp/ht32/ht32f52352/project.uvoptx | 94 +- bsp/ht32/ht32f52352/project.uvprojx | 121 +- .../libraries/HT32_STD_1xxxx_FWLib/SConscript | 53 +- .../HT32_STD_1xxxx_FWLib/Source_file | 141 ++ .../libraries/HT32_STD_5xxxx_FWLib/SConscript | 91 +- .../HT32_STD_5xxxx_FWLib/Source_file | 1145 +++++++++++++++++ bsp/ht32/tools/sdk_dist.py | 27 +- 11 files changed, 1675 insertions(+), 183 deletions(-) create mode 100644 bsp/ht32/libraries/HT32_STD_1xxxx_FWLib/Source_file create mode 100644 bsp/ht32/libraries/HT32_STD_5xxxx_FWLib/Source_file diff --git a/bsp/ht32/ht32f12366/applications/main.c b/bsp/ht32/ht32f12366/applications/main.c index 6df261c71b..0883cc6350 100644 --- a/bsp/ht32/ht32f12366/applications/main.c +++ b/bsp/ht32/ht32f12366/applications/main.c @@ -12,9 +12,9 @@ #include #include "board.h" -/* defined the led2 pin: pd15 */ +/* defined the led1 pin: pd15 */ #define LED1_PIN GET_PIN(D, 15) -/* defined the led3 pin: pe0 */ +/* defined the led2 pin: pe0 */ #define LED2_PIN GET_PIN(E, 0) int main(void) diff --git a/bsp/ht32/ht32f12366/project.uvoptx b/bsp/ht32/ht32f12366/project.uvoptx index b6ec60944b..866182c16f 100644 --- a/bsp/ht32/ht32f12366/project.uvoptx +++ b/bsp/ht32/ht32f12366/project.uvoptx @@ -170,7 +170,7 @@ Applications - 1 + 0 0 0 0 @@ -494,7 +494,7 @@ Drivers - 1 + 0 0 0 0 @@ -665,6 +665,18 @@ 0 0 0 + ..\..\..\src\cpu_up.c + cpu_up.c + 0 + 0 + + + 6 + 39 + 1 + 0 + 0 + 0 ..\..\..\src\idle.c idle.c 0 @@ -672,7 +684,7 @@ 6 - 39 + 40 1 0 0 @@ -684,7 +696,7 @@ 6 - 40 + 41 1 0 0 @@ -696,7 +708,7 @@ 6 - 41 + 42 1 0 0 @@ -708,7 +720,7 @@ 6 - 42 + 43 1 0 0 @@ -720,7 +732,7 @@ 6 - 43 + 44 1 0 0 @@ -732,7 +744,7 @@ 6 - 44 + 45 1 0 0 @@ -744,7 +756,7 @@ 6 - 45 + 46 1 0 0 @@ -756,7 +768,7 @@ 6 - 46 + 47 1 0 0 @@ -768,7 +780,7 @@ 6 - 47 + 48 1 0 0 @@ -780,7 +792,7 @@ 6 - 48 + 49 1 0 0 @@ -792,7 +804,7 @@ 6 - 49 + 50 1 0 0 @@ -804,7 +816,7 @@ 6 - 50 + 51 1 0 0 @@ -816,7 +828,7 @@ 6 - 51 + 52 1 0 0 @@ -836,7 +848,7 @@ 0 7 - 52 + 53 1 0 0 @@ -848,7 +860,7 @@ 7 - 53 + 54 1 0 0 @@ -860,7 +872,7 @@ 7 - 54 + 55 1 0 0 @@ -872,7 +884,7 @@ 7 - 55 + 56 2 0 0 @@ -884,7 +896,7 @@ 7 - 56 + 57 1 0 0 @@ -904,7 +916,7 @@ 0 8 - 57 + 58 1 0 0 @@ -916,7 +928,7 @@ 8 - 58 + 59 1 0 0 @@ -928,7 +940,7 @@ 8 - 59 + 60 1 0 0 @@ -940,7 +952,7 @@ 8 - 60 + 61 1 0 0 @@ -952,7 +964,7 @@ 8 - 61 + 62 1 0 0 @@ -964,7 +976,7 @@ 8 - 62 + 63 1 0 0 @@ -976,7 +988,7 @@ 8 - 63 + 64 1 0 0 @@ -988,7 +1000,7 @@ 8 - 64 + 65 1 0 0 @@ -1000,7 +1012,7 @@ 8 - 65 + 66 1 0 0 @@ -1012,7 +1024,7 @@ 8 - 66 + 67 1 0 0 @@ -1024,7 +1036,7 @@ 8 - 67 + 68 1 0 0 @@ -1036,7 +1048,7 @@ 8 - 68 + 69 1 0 0 @@ -1048,7 +1060,7 @@ 8 - 69 + 70 1 0 0 @@ -1060,7 +1072,7 @@ 8 - 70 + 71 1 0 0 @@ -1072,7 +1084,7 @@ 8 - 71 + 72 1 0 0 @@ -1084,7 +1096,19 @@ 8 - 72 + 73 + 1 + 0 + 0 + 0 + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f2xxxx_csif.c + ht32f2xxxx_csif.c + 0 + 0 + + + 8 + 74 1 0 0 @@ -1096,7 +1120,7 @@ 8 - 73 + 75 1 0 0 @@ -1108,7 +1132,7 @@ 8 - 74 + 76 1 0 0 @@ -1120,7 +1144,7 @@ 8 - 75 + 77 1 0 0 @@ -1132,7 +1156,7 @@ 8 - 76 + 78 1 0 0 @@ -1144,7 +1168,7 @@ 8 - 77 + 79 1 0 0 @@ -1156,7 +1180,7 @@ 8 - 78 + 80 1 0 0 @@ -1168,7 +1192,7 @@ 8 - 79 + 81 1 0 0 @@ -1180,7 +1204,7 @@ 8 - 80 + 82 1 0 0 @@ -1192,7 +1216,7 @@ 8 - 81 + 83 1 0 0 @@ -1204,7 +1228,7 @@ 8 - 82 + 84 1 0 0 diff --git a/bsp/ht32/ht32f12366/project.uvprojx b/bsp/ht32/ht32f12366/project.uvprojx index 0e9ceaea2f..9dce56d33c 100644 --- a/bsp/ht32/ht32f12366/project.uvprojx +++ b/bsp/ht32/ht32f12366/project.uvprojx @@ -335,7 +335,7 @@ __STDC_LIMIT_MACROS, RT_USING_ARMLIBC, RT_USING_LIBC, USE_HT32F12366_SK, USE_HT32F12365_66, USE_MEM_HT32F12366, __CLK_TCK=RT_TICK_PER_SECOND, USE_HT32_DRIVER, __RTTHREAD__ - ..\libraries\HT32_STD_1xxxx_FWLib\library\Device\Holtek\HT32F1xxxx\Include;..\..\..\include;..\libraries\ht32_drivers;..\..\..\components\drivers\include;.;..\libraries\HT32_STD_1xxxx_FWLib\library\CMSIS\Include;..\..\..\components\drivers\include;..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\inc;..\..\..\components\libc\compilers\common\extension;applications;..\..\..\components\libc\posix\ipc;..\..\..\components\drivers\include;..\..\..\components\libc\posix\io\epoll;..\..\..\components\libc\compilers\common\include;..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\components\libc\posix\io\poll;..\..\..\components\finsh;..\..\..\components\drivers\include;..\..\..\libcpu\arm\cortex-m3;..\..\..\components\drivers\include;..\..\..\components\drivers\include;board\inc;..\..\..\components\libc\posix\io\eventfd;..\..\..\components\drivers\spi;..\..\..\libcpu\arm\common + ..\..\..\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\components\drivers\spi;..\..\..\libcpu\arm\cortex-m3;..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\inc;..\..\..\components\drivers\include;..\..\..\components\libc\posix\io\eventfd;..\..\..\components\drivers\include;..\..\..\components\drivers\include;applications;..\libraries\HT32_STD_1xxxx_FWLib\library\CMSIS\Include;..\..\..\components\finsh;..\..\..\components\libc\posix\io\epoll;.;board\inc;..\..\..\components\libc\posix\ipc;..\..\..\components\drivers\include;..\libraries\HT32_STD_1xxxx_FWLib\library\Device\Holtek\HT32F1xxxx\Include;..\libraries\ht32_drivers;..\..\..\libcpu\arm\common;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\compilers\common\extension;..\..\..\components\libc\compilers\common\include @@ -1489,6 +1489,61 @@ + + cpu_up.c + 1 + ..\..\..\src\cpu_up.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 + + + __RT_KERNEL_SOURCE__ + + + + + + + idle.c 1 @@ -2369,6 +2424,11 @@ 1 ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f1xxxx_cmp.c + + ht32f2xxxx_csif.c + 1 + ..\libraries\HT32_STD_1xxxx_FWLib\library\HT32F1xxxx_Driver\src\ht32f2xxxx_csif.c + ht32f1xxxx_i2c.c 1 diff --git a/bsp/ht32/ht32f52352/applications/main.c b/bsp/ht32/ht32f52352/applications/main.c index 3bcf7a1215..8e5d2d47c6 100644 --- a/bsp/ht32/ht32f52352/applications/main.c +++ b/bsp/ht32/ht32f52352/applications/main.c @@ -12,9 +12,9 @@ #include #include "board.h" -/* defined the led2 pin: pc14 */ +/* defined the led1 pin: pc14 */ #define LED1_PIN GET_PIN(C, 14) -/* defined the led3 pin: pc15 */ +/* defined the led2 pin: pc15 */ #define LED2_PIN GET_PIN(C, 15) int main(void) diff --git a/bsp/ht32/ht32f52352/project.uvoptx b/bsp/ht32/ht32f52352/project.uvoptx index 9668fa37f7..9d94511df2 100644 --- a/bsp/ht32/ht32f52352/project.uvoptx +++ b/bsp/ht32/ht32f52352/project.uvoptx @@ -665,6 +665,18 @@ 0 0 0 + ..\..\..\src\cpu_up.c + cpu_up.c + 0 + 0 + + + 6 + 39 + 1 + 0 + 0 + 0 ..\..\..\src\idle.c idle.c 0 @@ -672,7 +684,7 @@ 6 - 39 + 40 1 0 0 @@ -684,7 +696,7 @@ 6 - 40 + 41 1 0 0 @@ -696,7 +708,7 @@ 6 - 41 + 42 1 0 0 @@ -708,7 +720,7 @@ 6 - 42 + 43 1 0 0 @@ -720,7 +732,7 @@ 6 - 43 + 44 1 0 0 @@ -732,7 +744,7 @@ 6 - 44 + 45 1 0 0 @@ -744,7 +756,7 @@ 6 - 45 + 46 1 0 0 @@ -756,7 +768,7 @@ 6 - 46 + 47 1 0 0 @@ -768,7 +780,7 @@ 6 - 47 + 48 1 0 0 @@ -780,7 +792,7 @@ 6 - 48 + 49 1 0 0 @@ -792,7 +804,7 @@ 6 - 49 + 50 1 0 0 @@ -804,7 +816,7 @@ 6 - 50 + 51 1 0 0 @@ -816,7 +828,7 @@ 6 - 51 + 52 1 0 0 @@ -836,7 +848,7 @@ 0 7 - 52 + 53 1 0 0 @@ -848,7 +860,7 @@ 7 - 53 + 54 1 0 0 @@ -860,7 +872,7 @@ 7 - 54 + 55 2 0 0 @@ -872,7 +884,7 @@ 7 - 55 + 56 1 0 0 @@ -892,7 +904,7 @@ 0 8 - 56 + 57 1 0 0 @@ -904,7 +916,7 @@ 8 - 57 + 58 1 0 0 @@ -916,7 +928,7 @@ 8 - 58 + 59 1 0 0 @@ -928,7 +940,7 @@ 8 - 59 + 60 1 0 0 @@ -940,7 +952,7 @@ 8 - 60 + 61 1 0 0 @@ -952,7 +964,7 @@ 8 - 61 + 62 1 0 0 @@ -964,7 +976,7 @@ 8 - 62 + 63 1 0 0 @@ -976,7 +988,7 @@ 8 - 63 + 64 1 0 0 @@ -988,7 +1000,7 @@ 8 - 64 + 65 1 0 0 @@ -1000,7 +1012,7 @@ 8 - 65 + 66 1 0 0 @@ -1012,7 +1024,7 @@ 8 - 66 + 67 1 0 0 @@ -1024,7 +1036,7 @@ 8 - 67 + 68 1 0 0 @@ -1036,7 +1048,7 @@ 8 - 68 + 69 1 0 0 @@ -1048,7 +1060,7 @@ 8 - 69 + 70 1 0 0 @@ -1060,7 +1072,7 @@ 8 - 70 + 71 1 0 0 @@ -1072,7 +1084,7 @@ 8 - 71 + 72 1 0 0 @@ -1084,7 +1096,7 @@ 8 - 72 + 73 1 0 0 @@ -1096,7 +1108,7 @@ 8 - 73 + 74 1 0 0 @@ -1108,7 +1120,7 @@ 8 - 74 + 75 1 0 0 @@ -1120,7 +1132,7 @@ 8 - 75 + 76 1 0 0 @@ -1132,7 +1144,7 @@ 8 - 76 + 77 1 0 0 @@ -1144,7 +1156,7 @@ 8 - 77 + 78 1 0 0 @@ -1156,7 +1168,7 @@ 8 - 78 + 79 1 0 0 @@ -1168,7 +1180,7 @@ 8 - 79 + 80 1 0 0 diff --git a/bsp/ht32/ht32f52352/project.uvprojx b/bsp/ht32/ht32f52352/project.uvprojx index 0c3f47fd02..a6102c1b5f 100644 --- a/bsp/ht32/ht32f52352/project.uvprojx +++ b/bsp/ht32/ht32f52352/project.uvprojx @@ -335,7 +335,7 @@ __STDC_LIMIT_MACROS, RT_USING_ARMLIBC, RT_USING_LIBC, __CLK_TCK=RT_TICK_PER_SECOND, USE_HT32_DRIVER, __RTTHREAD__, USE_HT32F52352_SK, USE_HT32F52342_52, USE_MEM_HT32F52352 - ..\libraries\HT32_STD_5xxxx_FWLib\library\Device\Holtek\HT32F5xxxx\Include;..\..\..\include;..\libraries\ht32_drivers;..\..\..\components\drivers\include;..\..\..\components\libc\posix\io\epoll;..\libraries\HT32_STD_5xxxx_FWLib\library\CMSIS\Include;..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\inc;..\..\..\components\drivers\include;.;board\inc;..\..\..\components\libc\compilers\common\extension;..\..\..\components\drivers\include;..\..\..\components\libc\posix\ipc;..\..\..\components\drivers\include;applications;..\..\..\components\libc\compilers\common\include;..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\components\libc\posix\io\poll;..\..\..\components\finsh;..\..\..\components\drivers\include;..\..\..\libcpu\arm\cortex-m0;..\..\..\components\drivers\include;..\..\..\components\libc\posix\io\eventfd;..\..\..\components\drivers\spi;..\..\..\libcpu\arm\common + ..\..\..\include;..\..\..\components\drivers\include;.;..\..\..\components\drivers\include;..\libraries\HT32_STD_5xxxx_FWLib\library\HT32F5xxxx_Driver\inc;..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\libraries\HT32_STD_5xxxx_FWLib\library\CMSIS\Include;..\..\..\components\drivers\spi;..\..\..\libcpu\arm\cortex-m0;..\..\..\components\drivers\include;..\..\..\components\libc\posix\io\eventfd;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\libc\compilers\common\extension;..\..\..\components\finsh;..\..\..\components\libc\posix\io\epoll;applications;..\..\..\components\libc\posix\ipc;..\..\..\components\drivers\include;..\libraries\HT32_STD_5xxxx_FWLib\library\Device\Holtek\HT32F5xxxx\Include;..\libraries\ht32_drivers;..\..\..\libcpu\arm\common;..\..\..\components\libc\posix\io\poll;board\inc;..\..\..\components\libc\compilers\common\include @@ -483,7 +483,7 @@ __RT_IPC_SOURCE__ - + @@ -538,7 +538,7 @@ __RT_IPC_SOURCE__ - + @@ -593,7 +593,7 @@ __RT_IPC_SOURCE__ - + @@ -648,7 +648,7 @@ __RT_IPC_SOURCE__ - + @@ -703,7 +703,7 @@ __RT_IPC_SOURCE__ - + @@ -758,7 +758,7 @@ __RT_IPC_SOURCE__ - + @@ -813,7 +813,7 @@ __RT_IPC_SOURCE__ - + @@ -868,7 +868,7 @@ __RT_IPC_SOURCE__ - + @@ -923,7 +923,7 @@ __RT_IPC_SOURCE__ - + @@ -978,7 +978,7 @@ __RT_IPC_SOURCE__ - + @@ -1033,7 +1033,7 @@ __RT_IPC_SOURCE__ - + @@ -1088,7 +1088,7 @@ __RT_IPC_SOURCE__ - + @@ -1143,7 +1143,7 @@ __RT_IPC_SOURCE__ - + @@ -1198,7 +1198,7 @@ __RT_IPC_SOURCE__ - + @@ -1253,7 +1253,7 @@ __RT_IPC_SOURCE__ - + @@ -1308,7 +1308,7 @@ __RT_IPC_SOURCE__ - + @@ -1428,7 +1428,7 @@ __RT_KERNEL_SOURCE__ - + @@ -1483,7 +1483,62 @@ __RT_KERNEL_SOURCE__ - + + + + + + + + cpu_up.c + 1 + ..\..\..\src\cpu_up.c + + + 2 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + + + 2 + 0 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 0 + 2 + 2 + 2 + 2 + 0 + 0 + 2 + 2 + 2 + 2 + 2 + + + __RT_KERNEL_SOURCE__ + + @@ -1538,7 +1593,7 @@ __RT_KERNEL_SOURCE__ - + @@ -1593,7 +1648,7 @@ __RT_KERNEL_SOURCE__ - + @@ -1648,7 +1703,7 @@ __RT_KERNEL_SOURCE__ - + @@ -1703,7 +1758,7 @@ __RT_KERNEL_SOURCE__ - + @@ -1758,7 +1813,7 @@ __RT_KERNEL_SOURCE__ - + @@ -1813,7 +1868,7 @@ __RT_KERNEL_SOURCE__ - + @@ -1868,7 +1923,7 @@ __RT_KERNEL_SOURCE__ - + @@ -1923,7 +1978,7 @@ __RT_KERNEL_SOURCE__ - + @@ -1978,7 +2033,7 @@ __RT_KERNEL_SOURCE__ - + @@ -2033,7 +2088,7 @@ __RT_KERNEL_SOURCE__ - + @@ -2088,7 +2143,7 @@ __RT_KERNEL_SOURCE__ - + @@ -2143,7 +2198,7 @@ __RT_KERNEL_SOURCE__ - + @@ -2198,7 +2253,7 @@ __RT_KERNEL_SOURCE__ - + @@ -2253,7 +2308,7 @@ __RT_KERNEL_SOURCE__ - + diff --git a/bsp/ht32/libraries/HT32_STD_1xxxx_FWLib/SConscript b/bsp/ht32/libraries/HT32_STD_1xxxx_FWLib/SConscript index bae7234da6..7e3699bd21 100644 --- a/bsp/ht32/libraries/HT32_STD_1xxxx_FWLib/SConscript +++ b/bsp/ht32/libraries/HT32_STD_1xxxx_FWLib/SConscript @@ -1,38 +1,33 @@ +import os +import sys import rtconfig from building import * +Import('rtconfig') + +tools_path = os.path.normpath(os.getcwd() + '../../..' + '/tools') +sys.path.append(tools_path) +from sdk_dist import get_source + +source_file_path = os.path.join(os.getcwd(), 'Source_file') +base_path = 'library/HT32F1xxxx_Driver/src/' +system_path = 'library/Device/Holtek/HT32F1xxxx/Source/' +source_path = [] +ic_list = [ + 'HT32F1654', + 'HT32F1656', + 'HT32F12345', + 'HT32F12364', + 'HT32F12366' +] cwd = GetCurrentDir() +src = [] -src = Split(""" - library/HT32F1xxxx_Driver/src/ht32_cm3_misc.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_adc.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_aes.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_bftm.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_ckcu.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_cmp.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_crc.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_ebi.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_exti.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_flash.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_gpio.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_i2c.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_i2s.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_mctm.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_pdma.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_pwrcu.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_rstcu.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_rtc.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_sci.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_sdio.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_spi.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_tm.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_usart.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_usbd.c - library/HT32F1xxxx_Driver/src/ht32f1xxxx_wdt.c +for ic_name in ic_list: + if GetDepend(['SOC_' + ic_name]): + source_path = get_source(ic_name,source_file_path,system_path,base_path) - library/Device/Holtek/HT32F1xxxx/Source/system_ht32f1xxxx_02.c -""") -#HT32F1xxxx_Driver/src/ht32f1xxxx_csif.c +src = Split(source_path) path = [ cwd + '/library/HT32F1xxxx_Driver/inc', diff --git a/bsp/ht32/libraries/HT32_STD_1xxxx_FWLib/Source_file b/bsp/ht32/libraries/HT32_STD_1xxxx_FWLib/Source_file new file mode 100644 index 0000000000..4d0f8fab4a --- /dev/null +++ b/bsp/ht32/libraries/HT32_STD_1xxxx_FWLib/Source_file @@ -0,0 +1,141 @@ + +HT32F1654 +< +ht32_cm3_misc.c +ht32f1xxxx_adc.c +ht32f1xxxx_bftm.c +ht32f1xxxx_ckcu.c +ht32f1xxxx_cmp.c +ht32f1xxxx_crc.c +ht32f1xxxx_ebi.c +ht32f1xxxx_exti.c +ht32f1xxxx_flash.c +ht32f1xxxx_gpio.c +ht32f1xxxx_i2c.c +ht32f1xxxx_i2s.c +ht32f1xxxx_mctm.c +ht32f1xxxx_pdma.c +ht32f1xxxx_pwrcu.c +ht32f1xxxx_rstcu.c +ht32f1xxxx_rtc.c +ht32f1xxxx_sci.c +ht32f1xxxx_spi.c +ht32f1xxxx_tm.c +ht32f1xxxx_usart.c +ht32f1xxxx_usbd.c +ht32f1xxxx_wdt.c +system_ht32f5xxxx_01.c +> + +HT32F1656 +< +ht32_cm3_misc.c +ht32f1xxxx_adc.c +ht32f1xxxx_bftm.c +ht32f1xxxx_ckcu.c +ht32f1xxxx_cmp_op.c +ht32f1xxxx_crc.c +ht32f1xxxx_ebi.c +ht32f1xxxx_exti.c +ht32f1xxxx_flash.c +ht32f1xxxx_gpio.c +ht32f1xxxx_i2c.c +ht32f1xxxx_i2s.c +ht32f1xxxx_mctm.c +ht32f1xxxx_pdma.c +ht32f1xxxx_pwrcu.c +ht32f1xxxx_rstcu.c +ht32f1xxxx_rtc.c +ht32f1xxxx_sci.c +ht32f1xxxx_spi.c +ht32f1xxxx_tm.c +ht32f1xxxx_usart.c +ht32f1xxxx_usbd.c +ht32f1xxxx_wdt.c +system_ht32f5xxxx_01.c +> + +HT32F12345 +< +ht32_cm3_misc.c +ht32f1xxxx_adc.c +ht32f1xxxx_bftm.c +ht32f1xxxx_ckcu.c +ht32f1xxxx_cmp.c +ht32f1xxxx_crc.c +ht32f1xxxx_ebi.c +ht32f1xxxx_exti.c +ht32f1xxxx_flash.c +ht32f1xxxx_gpio.c +ht32f1xxxx_i2c.c +ht32f1xxxx_i2s.c +ht32f1xxxx_mctm.c +ht32f1xxxx_pdma.c +ht32f1xxxx_pwrcu.c +ht32f1xxxx_rstcu.c +ht32f1xxxx_rtc.c +ht32f1xxxx_sdio.c +ht32f1xxxx_spi.c +ht32f1xxxx_tm.c +ht32f1xxxx_usart.c +ht32f1xxxx_usbd.c +ht32f1xxxx_wdt.c +system_ht32f1xxxx_02.c +> + +HT32F12364 +< +ht32_cm3_misc.c +ht32f1xxxx_adc_02.c +ht32f1xxxx_aes.c +ht32f1xxxx_bftm.c +ht32f1xxxx_ckcu.c +ht32f1xxxx_crc.c +ht32f1xxxx_ebi.c +ht32f1xxxx_exti.c +ht32f1xxxx_flash.c +ht32f1xxxx_gpio.c +ht32f1xxxx_i2c.c +ht32f1xxxx_pdma.c +ht32f1xxxx_pwrcu.c +ht32f1xxxx_rstcu.c +ht32f1xxxx_rtc.c +ht32f1xxxx_sci.c +ht32f1xxxx_spi.c +ht32f1xxxx_tm.c +ht32f1xxxx_usart.c +ht32f1xxxx_usbd.c +ht32f1xxxx_wdt.c +system_ht32f1xxxx_03.c +> + +HT32F12366 +< +ht32_cm3_misc.c +ht32f1xxxx_adc.c +ht32f1xxxx_aes.c +ht32f1xxxx_bftm.c +ht32f1xxxx_ckcu.c +ht32f1xxxx_cmp.c +ht32f1xxxx_crc.c +ht32f1xxxx_ebi.c +ht32f1xxxx_exti.c +ht32f1xxxx_flash.c +ht32f1xxxx_gpio.c +ht32f1xxxx_i2c.c +ht32f1xxxx_i2s.c +ht32f1xxxx_mctm.c +ht32f1xxxx_pdma.c +ht32f1xxxx_pwrcu.c +ht32f1xxxx_rstcu.c +ht32f1xxxx_rtc.c +ht32f1xxxx_sci.c +ht32f1xxxx_sdio.c +ht32f1xxxx_spi.c +ht32f1xxxx_tm.c +ht32f1xxxx_usart.c +ht32f1xxxx_usbd.c +ht32f1xxxx_wdt.c +ht32f2xxxx_csif.c +system_ht32f1xxxx_02.c +> diff --git a/bsp/ht32/libraries/HT32_STD_5xxxx_FWLib/SConscript b/bsp/ht32/libraries/HT32_STD_5xxxx_FWLib/SConscript index b673b24b8f..2411aa028f 100644 --- a/bsp/ht32/libraries/HT32_STD_5xxxx_FWLib/SConscript +++ b/bsp/ht32/libraries/HT32_STD_5xxxx_FWLib/SConscript @@ -1,39 +1,74 @@ +import os +import sys import rtconfig from building import * Import('rtconfig') +tools_path = os.path.normpath(os.getcwd() + '../../..' + '/tools') +sys.path.append(tools_path) +from sdk_dist import get_source + +source_file_path = os.path.join(os.getcwd(), 'Source_file') +base_path = 'library/HT32F5xxxx_Driver/src/' +system_path = 'library/Device/Holtek/HT32F5xxxx/Source/' +source_path = [] +ic_list = [ + 'HT32F0006', + 'HT32F0008', + 'HT32F52367', + 'HT50F3200S', + 'HT50F3200T', + 'HF5032', + 'HT32F5828', + 'HT50F32002', + 'HT50F32003', + 'HT32F50030', + 'HT32F50230', + 'HT32F50241', + 'HT32F50343', + 'HT32F50441', + 'HT32F50452', + 'HT32F52142', + 'HT32F52230', + 'HT32F52241', + 'HT32F52244', + 'HT32F52253', + 'HT32F52341', + 'HT32F52352', + 'HT32F52354', + 'HT32F52367', + 'HT32F53241', + 'HT32F53252', + 'HT32F54241', + 'HT32F54253', + 'HT32F57341', + 'HT32F57352', + 'HT32F59041', + 'HT32F59741', + 'HT32F61141', + 'HT32F61245', + 'HT32F61352', + 'HT32F61355', + 'HT32F61356', + 'HT32F61357', + 'HT32F61630', + 'HT32F61641', + 'HT32F65232', + 'HT32F65240', + 'HT32F67051', + 'HT32F67232', + 'HT32F67233', + 'HT32F67741' +] + cwd = GetCurrentDir() src = [] -if GetDepend(['SOC_HT32F52352']): - src = Split(""" - library/HT32F5xxxx_Driver/src/ht32_cm0plus_misc.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_adc.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_bftm.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_ckcu.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_cmp.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_crc.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_ebi.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_exti.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_flash.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_gpio.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_i2c.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_i2s.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_mctm.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_pdma.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_pwrcu.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_rstcu.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_rtc.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_sci.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_spi.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_tm.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_usart.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_usbd.c - library/HT32F5xxxx_Driver/src/ht32f5xxxx_wdt.c - library/Device/Holtek/HT32F5xxxx/Source/system_ht32f5xxxx_01.c - """) - +for ic_name in ic_list: + if GetDepend(['SOC_' + ic_name]): + source_path = get_source(ic_name,source_file_path,system_path,base_path) +src = Split(source_path) path = [ cwd + '/library/HT32F5xxxx_Driver/inc', diff --git a/bsp/ht32/libraries/HT32_STD_5xxxx_FWLib/Source_file b/bsp/ht32/libraries/HT32_STD_5xxxx_FWLib/Source_file new file mode 100644 index 0000000000..b90d097f56 --- /dev/null +++ b/bsp/ht32/libraries/HT32_STD_5xxxx_FWLib/Source_file @@ -0,0 +1,1145 @@ +HT32F0006 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_dac_dual16.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_i2s.c +ht32f5xxxx_midi.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_07.c +> + +HT32F0008 +< +ht32_cm0plus_misc.c +ht32f5xxxx_aes.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_03.c +> +HT32F52367 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_aes.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_cmp.c +ht32f5xxxx_crc.c +ht32f5xxxx_dac.c +ht32f5xxxx_div.c +ht32f5xxxx_ebi.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_i2s.c +ht32f5xxxx_mctm.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_sci.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_18.c +> + +HT50F3200S +< +ht32_cm0plus_misc.c +ht32f65xxx_66xxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_cmp.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_mctm.c +ht32f65xxx_66xxx_opa.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_08.c +> + +HT50F3200T +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_aes.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_cmp.c +ht32f5xxxx_crc.c +ht32f5xxxx_dac.c +ht32f5xxxx_div.c +ht32f5xxxx_ebi.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_i2s.c +ht32f5xxxx_mctm.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_sci.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_03.c +> + +HF5032 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_04.c +> + +HT32F5828 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_aes.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_cmp.c +ht32f5xxxx_crc.c +ht32f5xxxx_dac.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_i2s.c +ht32f5xxxx_lcd.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_sci.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_05.c +> + +HT50F32002 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_04.c +> + +HT50F32003 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_cmp.c +ht32f5xxxx_crc.c +ht32f5xxxx_ebi.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_i2s.c +ht32f5xxxx_mctm.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_sci.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_01.c +> + +HT32F50030 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_ledc.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_13.c +> + +HT32F50230 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_04.c +> + +HT32F50241 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_mctm.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_04.c +> + +HT32F50343 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_sled.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_06.c +> + +HT32F50441 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_ledc.c +ht32f5xxxx_mctm.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_14.c +> + +HT32F50452 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_cmp.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_ebi.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_ledc.c +ht32f5xxxx_mctm.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_14.c +> + +HT32F52142 +< +ht32_cm0plus_misc.c +ht32f5xxxx_aes.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_03.c +> + +HT32F52230 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_02.c +> + +HT32F52241 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_mctm.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_02.c +> + +HT32F52244 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_dac.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_17.c +> + +HT32F52253 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_mctm.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_02.c +> + +HT32F52341 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_mctm.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_sci.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_01.c +> + +HT32F52352 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_cmp.c +ht32f5xxxx_crc.c +ht32f5xxxx_ebi.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_i2s.c +ht32f5xxxx_mctm.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_sci.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_01.c +> + +HT32F52354 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_cmp.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_ebi.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_mctm.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_03.c +> + +HT32F52367 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_aes.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_cmp.c +ht32f5xxxx_crc.c +ht32f5xxxx_dac.c +ht32f5xxxx_div.c +ht32f5xxxx_ebi.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_i2s.c +ht32f5xxxx_mctm.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_sci.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_03.c +> + +HT32F53241 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_can.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_ledc.c +ht32f5xxxx_mctm.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_15.c +> + +HT32F53252 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_can.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_cmp.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_ebi.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_ledc.c +ht32f5xxxx_mctm.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_15.c +> + +HT32F54241 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_ledc.c +ht32f5xxxx_mctm.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tkey.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_09.c +> + +HT32F54253 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_cmp.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_ledc.c +ht32f5xxxx_mctm.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tkey.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_09.c +> + +HT32F57341 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_lcd.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_sci.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_05.c +> + +HT32F57352 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_aes.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_cmp.c +ht32f5xxxx_crc.c +ht32f5xxxx_dac.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_i2s.c +ht32f5xxxx_lcd.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_sci.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_05.c +> + +HT32F59041 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_mctm.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_04.c +> + +HT32F59741 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_lcd.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_sci.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_05.c +> + +HT32F61141 +< +ht32_cm0plus_misc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_sci.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_12.c +> + +HT32F61245 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_dac_dual16.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_lstm.c +ht32f5xxxx_midi.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_10.c +> + +HT32F61352 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_dac_dual16.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_i2s.c +ht32f5xxxx_midi.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_07.c +> + +HT32F61355 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_dac_dual16.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_i2s.c +ht32f5xxxx_midi.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_07.c +> + +HT32F61356 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_dac_dual16.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_i2s.c +ht32f5xxxx_midi.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_07.c +> + +HT32F61357 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_dac_dual16.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_i2s.c +ht32f5xxxx_midi.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_usbd.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_07.c +> + +HT32F61630 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_ledc.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_13.c +> + +HT32F61641 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_mctm.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_04.c +> + +HT32F65232 +< +ht32_cm0plus_misc.c +ht32f65xxx_66xxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_cmp.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_mctm.c +ht32f65xxx_66xxx_opa.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_08.c +> + +HT32F65240 +< +ht32_cm0plus_misc.c +ht32f65xxx_66xxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_cmp.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_mctm.c +ht32f65xxx_66xxx_opa.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_08.c +> + +HT32F67051 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_aes.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_div.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_pdma.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_11.c +> + +HT32F67232 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_02.c +> + +HT32F67233 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_02.c +> + +HT32F67741 +< +ht32_cm0plus_misc.c +ht32f5xxxx_adc.c +ht32f5xxxx_bftm.c +ht32f5xxxx_ckcu.c +ht32f5xxxx_crc.c +ht32f5xxxx_exti.c +ht32f5xxxx_flash.c +ht32f5xxxx_gpio.c +ht32f5xxxx_i2c.c +ht32f5xxxx_mctm.c +ht32f5xxxx_pwrcu.c +ht32f5xxxx_rstcu.c +ht32f5xxxx_rtc.c +ht32f5xxxx_spi.c +ht32f5xxxx_tm.c +ht32f5xxxx_usart.c +ht32f5xxxx_wdt.c +system_ht32f5xxxx_02.c +> diff --git a/bsp/ht32/tools/sdk_dist.py b/bsp/ht32/tools/sdk_dist.py index 2383b82a90..b239eb7d13 100644 --- a/bsp/ht32/tools/sdk_dist.py +++ b/bsp/ht32/tools/sdk_dist.py @@ -1,4 +1,5 @@ import os +import re import sys import shutil cwd_path = os.getcwd() @@ -37,4 +38,28 @@ def dist_do_building(BSP_ROOT, dist_dir): bsp_copy_files(os.path.join(library_path, 'ht32_drivers'), os.path.join(library_dir, 'ht32_drivers')) shutil.copyfile(os.path.join(library_path, 'Kconfig'), os.path.join(library_dir, 'Kconfig')) bsp_update_kconfig_library(dist_dir) - + +def get_source(ic_model, file_path, system_path, base_path): + source_path = [] + files_list = [] + readafter = 0 + if not os.path.isfile(file_path): + return + + with open(file_path, 'r') as file: + #content = file.read() + for line in file: + if readafter == 2 and line.find('>') != -1: + break + if readafter == 2: + files_list.append(line.strip()) + if line.find(ic_model) != -1: + readafter = 1 + if readafter == 1 and line.find('<') != -1: + readafter = 2 + for line in files_list: + if line.find('system') != -1: + source_path.append(os.path.join(system_path, line.strip())) + else: + source_path.append(os.path.join(base_path, line.strip())) + return source_path