mirror of
https://github.com/GorgonMeducer/perf_counter.git
synced 2025-01-17 19:13:03 +08:00
minor update
This commit is contained in:
parent
5483710769
commit
ae5afb0ca1
Binary file not shown.
Binary file not shown.
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user