Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
GorgonMeducer committed Jan 22, 2024
1 parent e964738 commit de7e506
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
4 changes: 4 additions & 0 deletions GorgonMeducer.perf_counter.pdsc
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
7 changes: 7 additions & 0 deletions systick_wrapper_gnu.s
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -43,4 +48,6 @@ $Sub$$SysTick_Handler:

__ensure_systick_wrapper:
bx lr
#endif

#endif
18 changes: 18 additions & 0 deletions template/perfc_port_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ======================================*/

Expand Down

0 comments on commit de7e506

Please sign in to comment.