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:
parent
00b3941de5
commit
6c4e9ee609
3 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue