fix(timer): Typo - milis instead of millis (#10193)

* fix(timer): Typo - milis instead of millis.

* fix(doc0: format

fix CI error about format

---------

Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
This commit is contained in:
Leandro Mattioli 2024-08-22 17:44:17 -03:00 committed by GitHub
parent 00b3941de5
commit 6c4e9ee609
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -242,7 +242,7 @@ uint64_t timerReadMicros(hw_timer_t *timer) {
return timer_val * 1000000 / frequency;
}
uint64_t timerReadMilis(hw_timer_t *timer) {
uint64_t timerReadMillis(hw_timer_t *timer) {
if (timer == NULL) {
log_e("Timer handle is NULL");
return 0;

View File

@ -42,7 +42,7 @@ void timerWrite(hw_timer_t *timer, uint64_t val);
uint64_t timerRead(hw_timer_t *timer);
uint64_t timerReadMicros(hw_timer_t *timer);
uint64_t timerReadMilis(hw_timer_t *timer);
uint64_t timerReadMillis(hw_timer_t *timer);
double timerReadSeconds(hw_timer_t *timer);
uint32_t timerGetFrequency(hw_timer_t *timer);

View File

@ -119,14 +119,14 @@ This function is used to read counter value in microseconds of the timer.
This function will return ``counter value`` of the timer in microseconds.
timerReadMilis
**************
timerReadMillis
***************
This function is used to read counter value in milliseconds of the timer.
.. code-block:: arduino
uint64_t timerReadMilis(hw_timer_t * timer);
uint64_t timerReadMillis(hw_timer_t * timer);
* ``timer`` timer struct.