Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
5e7db8df
Unverified
Commit
5e7db8df
authored
Dec 14, 2021
by
P-R-O-C-H-Y
Committed by
GitHub
Dec 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Timer based od ESP-IDF (#5931)
parent
fb00b51f
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
151 additions
and
246 deletions
+151
-246
cores/esp32/esp32-hal-timer.c
cores/esp32/esp32-hal-timer.c
+147
-243
cores/esp32/esp32-hal-timer.h
cores/esp32/esp32-hal-timer.h
+4
-3
No files found.
cores/esp32/esp32-hal-timer.c
View file @
5e7db8df
This diff is collapsed.
Click to expand it.
cores/esp32/esp32-hal-timer.h
View file @
5e7db8df
...
@@ -20,13 +20,13 @@
...
@@ -20,13 +20,13 @@
#ifndef MAIN_ESP32_HAL_TIMER_H_
#ifndef MAIN_ESP32_HAL_TIMER_H_
#define MAIN_ESP32_HAL_TIMER_H_
#define MAIN_ESP32_HAL_TIMER_H_
#include "esp32-hal.h"
#include "freertos/FreeRTOS.h"
#ifdef __cplusplus
#ifdef __cplusplus
extern
"C"
{
extern
"C"
{
#endif
#endif
#include "esp32-hal.h"
#include "freertos/FreeRTOS.h"
struct
hw_timer_s
;
struct
hw_timer_s
;
typedef
struct
hw_timer_s
hw_timer_t
;
typedef
struct
hw_timer_s
hw_timer_t
;
...
@@ -50,6 +50,7 @@ void timerSetAutoReload(hw_timer_t *timer, bool autoreload);
...
@@ -50,6 +50,7 @@ void timerSetAutoReload(hw_timer_t *timer, bool autoreload);
bool
timerStarted
(
hw_timer_t
*
timer
);
bool
timerStarted
(
hw_timer_t
*
timer
);
uint64_t
timerRead
(
hw_timer_t
*
timer
);
uint64_t
timerRead
(
hw_timer_t
*
timer
);
uint64_t
timerReadMicros
(
hw_timer_t
*
timer
);
uint64_t
timerReadMicros
(
hw_timer_t
*
timer
);
uint64_t
timerReadMilis
(
hw_timer_t
*
timer
);
double
timerReadSeconds
(
hw_timer_t
*
timer
);
double
timerReadSeconds
(
hw_timer_t
*
timer
);
uint16_t
timerGetDivider
(
hw_timer_t
*
timer
);
uint16_t
timerGetDivider
(
hw_timer_t
*
timer
);
bool
timerGetCountUp
(
hw_timer_t
*
timer
);
bool
timerGetCountUp
(
hw_timer_t
*
timer
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment