mirror of
https://github.com/GorgonMeducer/perf_counter.git
synced 2025-02-07 19:34:18 +08:00
minor update
This commit is contained in:
parent
e964738dad
commit
de7e5067b9
@ -297,6 +297,10 @@
|
||||
<file category="sourceC" name="template/perfc_port_user.c" attr="config" version="1.0.2"/>
|
||||
<file category="header" name="template/perfc_port_user.h" attr="config" version="1.0.2"/>
|
||||
</files>
|
||||
<RTE_Components_h>
|
||||
|
||||
#define __RTE_PERFC_PORTING_USER_DEFINED__ 1
|
||||
</RTE_Components_h>
|
||||
|
||||
<Pre_Include_Global_h>
|
||||
|
||||
|
@ -14,6 +14,11 @@
|
||||
;* limitations under the License. *
|
||||
;* *
|
||||
;****************************************************************************/
|
||||
#if defined(_RTE_)
|
||||
# include "RTE_Components.h"
|
||||
#endif
|
||||
|
||||
#if !defined(__RTE_PERFC_PORTING_USER_DEFINED__)
|
||||
|
||||
#if !__PERFC_CFG_DISABLE_DEFAULT_SYSTICK_PORTING__
|
||||
.syntax unified
|
||||
@ -43,4 +48,6 @@ $Sub$$SysTick_Handler:
|
||||
|
||||
__ensure_systick_wrapper:
|
||||
bx lr
|
||||
#endif
|
||||
|
||||
#endif
|
@ -44,6 +44,24 @@
|
||||
/*============================ GLOBAL VARIABLES ==============================*/
|
||||
/*============================ LOCAL VARIABLES ===============================*/
|
||||
/*============================ PROTOTYPES ====================================*/
|
||||
/* low level interface for porting */
|
||||
extern
|
||||
uint32_t perfc_port_get_system_freq(void);
|
||||
extern
|
||||
int64_t perfc_port_get_system_timer_top(void);
|
||||
extern
|
||||
bool perfc_port_is_system_timer_ovf_pending(void);
|
||||
extern
|
||||
void perfc_port_init_system_timer(bool bTimerOccupied);
|
||||
extern
|
||||
int64_t perfc_port_get_system_timer_elapsed(void);
|
||||
extern
|
||||
void perfc_port_clear_system_timer_ovf_pending(void);
|
||||
extern
|
||||
void perfc_port_stop_system_timer_counting(void);
|
||||
extern
|
||||
void perfc_port_clear_system_timer_counter(void);
|
||||
|
||||
/*============================ IMPLEMENTATION ================================*/
|
||||
/*============================ INCLUDES ======================================*/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user