diff --git a/docs/details/debugging/profiler.rst b/docs/details/debugging/profiler.rst index 1e91b6964..8370c573c 100644 --- a/docs/details/debugging/profiler.rst +++ b/docs/details/debugging/profiler.rst @@ -47,7 +47,7 @@ To enable the profiler, set :c:macro:`LV_USE_PROFILER` in ``lv_conf.h`` and conf #include #include - static uint64_t my_get_tick_us_cb(void) + static uint64_t my_get_tick_cb(void) { struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); @@ -71,7 +71,7 @@ To enable the profiler, set :c:macro:`LV_USE_PROFILER` in ``lv_conf.h`` and conf lv_profiler_builtin_config_t config; lv_profiler_builtin_config_init(&config); config.tick_per_sec = 1000000000; /* One second is equal to 1000000000 nanoseconds */ - config.tick_get_cb = my_get_tick_us_cb; + config.tick_get_cb = my_get_tick_cb; config.tid_get_cb = my_get_tid_cb; config.cpu_get_cb = my_get_cpu_cb; lv_profiler_builtin_init(&config); @@ -81,7 +81,7 @@ To enable the profiler, set :c:macro:`LV_USE_PROFILER` in ``lv_conf.h`` and conf .. code-block:: c - static uint64_t my_get_tick_us_cb(void) + static uint64_t my_get_tick_cb(void) { /* Use the microsecond time stamp provided by Arduino */ return micros(); @@ -92,7 +92,7 @@ To enable the profiler, set :c:macro:`LV_USE_PROFILER` in ``lv_conf.h`` and conf lv_profiler_builtin_config_t config; lv_profiler_builtin_config_init(&config); config.tick_per_sec = 1000000; /* One second is equal to 1000000 microseconds */ - config.tick_get_cb = my_get_tick_us_cb; + config.tick_get_cb = my_get_tick_cb; lv_profiler_builtin_init(&config); }