Merge branch 'GorgonMeducer:main' into readme

This commit is contained in:
Man, Jianting (Meco) 2022-06-15 06:36:42 -04:00 committed by GitHub
commit 20e528cd91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Import('rtconfig')
from building import *
import shutil
src = ['perf_counter.c', 'os/perf_os_patch_rt_thread.c']
@ -7,6 +8,19 @@ cwd = GetCurrentDir()
path = [cwd]
group = []
#delate unused files
try:
shutil.rmtree(os.path.join(cwd,'.github'))
shutil.rmtree(os.path.join(cwd,'.vscode'))
shutil.rmtree(os.path.join(cwd,'CI'))
shutil.rmtree(os.path.join(cwd,'cmsis-pack'))
shutil.rmtree(os.path.join(cwd,'lib'))
shutil.rmtree(os.path.join(cwd,'example'))
os.remove(os.path.join(cwd,'systick_wrapper_gcc.s'))
os.remove(os.path.join(cwd,'systick_wrapper_ual.s'))
except:
pass
group = DefineGroup('perf_counter', src, depend = ['PKG_USING_PERF_COUNTER'], CPPDEFINES = ['__PERF_CNT_USE_RTOS__'], CPPPATH = path)
Return('group')

View File

@ -474,7 +474,7 @@ int64_t clock(void)
/*!
* \brief get the elapsed cycles since perf_counter is initialised
*
* \return int64_t the elpased cycles
* \return int64_t the elapsed cycles
*/
int64_t get_system_ticks(void)
{