diff options
author | Paul Selkirk <paul@psgd.org> | 2017-09-07 18:17:12 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2017-09-07 18:20:55 -0400 |
commit | 72227852729ed3125af58cff3f593340b3247fed (patch) | |
tree | 234d45ae587ce51bfbbce6d8c059a121a44bf1e6 /projects/hsm/hsm.c | |
parent | 2e1f88062c7ec6cd12688ce7522e802bbf09bba1 (diff) | |
parent | 5ff8c9512db48d128cf07904f68eb5139bebf952 (diff) |
Rebase branch 'profiling' from master
Diffstat (limited to 'projects/hsm/hsm.c')
-rw-r--r-- | projects/hsm/hsm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/projects/hsm/hsm.c b/projects/hsm/hsm.c index b6b8820..5ef2ccc 100644 --- a/projects/hsm/hsm.c +++ b/projects/hsm/hsm.c @@ -268,6 +268,11 @@ size_t uart_rx_max = 0; void HAL_SYSTICK_Callback(void) { +#ifdef DO_PROFILING + extern void profil_callback(void); + profil_callback(); +#endif + size_t count = RINGBUF_COUNT(uart_ringbuf); if (uart_rx_max < count) uart_rx_max = count; |