mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-28 16:14:20 +08:00
fix the startup files of apm32f1 (#5725)
* fix the startup files of apm32f1 * delete ARM folder for apm32f1
This commit is contained in:
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
-465
File diff suppressed because it is too large
Load Diff
-394
File diff suppressed because it is too large
Load Diff
+368
File diff suppressed because it is too large
Load Diff
+315
File diff suppressed because it is too large
Load Diff
+465
-774
File diff suppressed because it is too large
Load Diff
+305
-545
File diff suppressed because it is too large
Load Diff
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user