Skip to content

Commit

Permalink
feat benchmark: added system freq informations
Browse files Browse the repository at this point in the history
Signed-off-by: John Sanpe <[email protected]>
  • Loading branch information
sanpeqf committed Mar 13, 2024
1 parent 4fcf6a6 commit 3e606d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/benchmark/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ int main(void)

bfdev_log_info("Benchmark for PY32F0xx.\n");
bfdev_log_info("Bfdev version: %s\n", __bfdev_stringify(BFDEV_VERSION));
bfdev_log_info("SYSCLK freq: %u\n", HAL_RCC_GetSysClockFreq());
bfdev_log_info("AHB freq: %u\n", HAL_RCC_GetHCLKFreq());
bfdev_log_info("APB freq: %u\n", HAL_RCC_GetPCLK1Freq());
bfdev_log_info("This may take a few minutes...\n");
puts(""); /* '\n' */

Expand Down

0 comments on commit 3e606d7

Please sign in to comment.