fix the startup files of apm32f1 (#5725)

* fix the startup files of apm32f1

* delete ARM folder for apm32f1
This commit is contained in:
stevetong459
2022-03-28 16:50:01 +08:00
committed by GitHub
parent ad90cf59c4
commit 84e18bb2d5
11 changed files with 1646 additions and 2979 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -91,7 +91,7 @@ void rt_hw_us_delay(rt_uint32_t us)
}
/**
* This function will initial STM32 board.
* This function will config the board for initialization.
*/
RT_WEAK void rt_hw_board_init()
{
+22
View File
@@ -0,0 +1,22 @@
import os
import sys
import shutil
cwd_path = os.getcwd()
sys.path.append(os.path.join(os.path.dirname(cwd_path), 'rt-thread', 'tools'))
# BSP dist function
def dist_do_building(BSP_ROOT, dist_dir):
from mkdist import bsp_copy_files
import rtconfig
print("=> copy apm32 bsp library")
library_dir = os.path.join(dist_dir, 'libraries')
library_path = os.path.join(os.path.dirname(BSP_ROOT), 'libraries')
bsp_copy_files(os.path.join(library_path, rtconfig.BSP_LIBRARY_TYPE),
os.path.join(library_dir, rtconfig.BSP_LIBRARY_TYPE))
print("=> copy bsp drivers")
bsp_copy_files(os.path.join(library_path, 'Drivers'), os.path.join(library_dir, 'Drivers'))
shutil.copyfile(os.path.join(library_path, 'Kconfig'), os.path.join(library_dir, 'Kconfig'))