minor update

This commit is contained in:
Gabriel Wang 2021-07-20 00:05:17 +01:00
parent 5483710769
commit ae5afb0ca1
3 changed files with 4 additions and 3 deletions

Binary file not shown.

Binary file not shown.

View File

@ -228,11 +228,12 @@ void init_cycle_counter(bool bSysTickIsOccupied)
s_nOffset = stop_cycle_counter(); s_nOffset = stop_cycle_counter();
s_nUnit = SystemCoreClock / 1000000ul; s_nUnit = SystemCoreClock / 1000000ul;
//#if ((defined(__IS_COMPILER_ARM_COMPILER_5__) && __IS_COMPILER_ARM_COMPILER_5__)\ #if defined(__IS_COMPILER_ARM_COMPILER_5__) \
// || (defined(__IS_COMPILER_ARM_COMPILER_6__) && __IS_COMPILER_ARM_COMPILER_6__)) || defined(__IS_COMPILER_ARM_COMPILER_6__) \
|| defined(__IS_COMPILER_GCC__)
extern void __ensure_systick_wrapper(void); extern void __ensure_systick_wrapper(void);
__ensure_systick_wrapper(); __ensure_systick_wrapper();
//#endif #endif
} }
/*! \brief try to start the performance counter /*! \brief try to start the performance counter