minor update

This commit is contained in:
Gabriel Wang 2024-01-22 15:07:07 +00:00
parent e964738dad
commit de7e5067b9
3 changed files with 29 additions and 0 deletions

View File

@ -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>

View File

@ -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

View File

@ -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 ======================================*/