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
0a8888d5
Unverified
Commit
0a8888d5
authored
Aug 22, 2024
by
Me No Dev
Committed by
GitHub
Aug 22, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into release/v3.1.x
parents
7fe4aa67
cd3d0bf5
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
35 additions
and
17 deletions
+35
-17
.github/scripts/tests_run.sh
.github/scripts/tests_run.sh
+4
-0
cores/esp32/esp32-hal-timer.c
cores/esp32/esp32-hal-timer.c
+1
-1
cores/esp32/esp32-hal-timer.h
cores/esp32/esp32-hal-timer.h
+1
-1
docs/en/api/timer.rst
docs/en/api/timer.rst
+3
-3
docs/requirements.txt
docs/requirements.txt
+1
-0
platform.txt
platform.txt
+6
-2
tests/requirements.txt
tests/requirements.txt
+4
-4
tests/validation/democfg/test_democfg.py
tests/validation/democfg/test_democfg.py
+1
-1
tests/validation/hello_world/test_hello_world.py
tests/validation/hello_world/test_hello_world.py
+1
-1
tests/validation/nvs/test_nvs.py
tests/validation/nvs/test_nvs.py
+3
-3
tools/platformio-build.py
tools/platformio-build.py
+9
-0
tools/pre-commit/requirements.txt
tools/pre-commit/requirements.txt
+1
-1
No files found.
.github/scripts/tests_run.sh
View file @
0a8888d5
...
@@ -132,6 +132,10 @@ while [ ! -z "$1" ]; do
...
@@ -132,6 +132,10 @@ while [ ! -z "$1" ]; do
-W
)
-W
)
shift
shift
wokwi_timeout
=
$1
wokwi_timeout
=
$1
if
[[
-z
$WOKWI_CLI_TOKEN
]]
;
then
echo
"Wokwi CLI token is not set"
exit
1
fi
platform
=
"wokwi"
platform
=
"wokwi"
;;
;;
-o
)
-o
)
...
...
cores/esp32/esp32-hal-timer.c
View file @
0a8888d5
...
@@ -242,7 +242,7 @@ uint64_t timerReadMicros(hw_timer_t *timer) {
...
@@ -242,7 +242,7 @@ uint64_t timerReadMicros(hw_timer_t *timer) {
return
timer_val
*
1000000
/
frequency
;
return
timer_val
*
1000000
/
frequency
;
}
}
uint64_t
timerReadMilis
(
hw_timer_t
*
timer
)
{
uint64_t
timerReadMil
l
is
(
hw_timer_t
*
timer
)
{
if
(
timer
==
NULL
)
{
if
(
timer
==
NULL
)
{
log_e
(
"Timer handle is NULL"
);
log_e
(
"Timer handle is NULL"
);
return
0
;
return
0
;
...
...
cores/esp32/esp32-hal-timer.h
View file @
0a8888d5
...
@@ -42,7 +42,7 @@ void timerWrite(hw_timer_t *timer, uint64_t val);
...
@@ -42,7 +42,7 @@ void timerWrite(hw_timer_t *timer, uint64_t val);
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
);
uint64_t
timerReadMil
l
is
(
hw_timer_t
*
timer
);
double
timerReadSeconds
(
hw_timer_t
*
timer
);
double
timerReadSeconds
(
hw_timer_t
*
timer
);
uint32_t
timerGetFrequency
(
hw_timer_t
*
timer
);
uint32_t
timerGetFrequency
(
hw_timer_t
*
timer
);
...
...
docs/en/api/timer.rst
View file @
0a8888d5
...
@@ -119,14 +119,14 @@ This function is used to read counter value in microseconds of the 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.
This function will return ``counter value`` of the timer in microseconds.
timerReadMilis
timerReadMil
l
is
**************
**************
*
This function is used to read counter value in milliseconds of the timer.
This function is used to read counter value in milliseconds of the timer.
.. code-block:: arduino
.. code-block:: arduino
uint64_t timerReadMilis(hw_timer_t * timer);
uint64_t timerReadMil
l
is(hw_timer_t * timer);
* ``timer`` timer struct.
* ``timer`` timer struct.
...
...
docs/requirements.txt
View file @
0a8888d5
esp-docs>=1.4.0
esp-docs>=1.4.0
sphinx-copybutton==0.5.0
sphinx-copybutton==0.5.0
sphinx-tabs==3.2.0
sphinx-tabs==3.2.0
numpydoc==1.5.0
platform.txt
View file @
0a8888d5
...
@@ -44,10 +44,14 @@ compiler.warning_flags.default=
...
@@ -44,10 +44,14 @@ compiler.warning_flags.default=
compiler.warning_flags.more=-Wall
compiler.warning_flags.more=-Wall
compiler.warning_flags.all=-Wall -Wextra
compiler.warning_flags.all=-Wall -Wextra
# Additional flags specific to Arduino (not based on IDF flags).
# Update tools/platformio-build.py when changing these flags.
compiler.common_werror_flags=-Werror=return-type
# Compile Flags
# Compile Flags
compiler.cpreprocessor.flags="@{compiler.sdk.path}/flags/defines" "-I{build.source.path}" -iprefix "{compiler.sdk.path}/include/" "@{compiler.sdk.path}/flags/includes" "-I{compiler.sdk.path}/{build.memory_type}/include"
compiler.cpreprocessor.flags="@{compiler.sdk.path}/flags/defines" "-I{build.source.path}" -iprefix "{compiler.sdk.path}/include/" "@{compiler.sdk.path}/flags/includes" "-I{compiler.sdk.path}/{build.memory_type}/include"
compiler.c.flags="@{compiler.sdk.path}/flags/c_flags" {compiler.warning_flags} {compiler.optimization_flags}
compiler.c.flags="@{compiler.sdk.path}/flags/c_flags" {compiler.warning_flags} {compiler.optimization_flags}
{compiler.common_werror_flags}
compiler.cpp.flags="@{compiler.sdk.path}/flags/cpp_flags" {compiler.warning_flags} {compiler.optimization_flags}
compiler.cpp.flags="@{compiler.sdk.path}/flags/cpp_flags" {compiler.warning_flags} {compiler.optimization_flags}
{compiler.common_werror_flags}
compiler.S.flags="@{compiler.sdk.path}/flags/S_flags" {compiler.warning_flags} {compiler.optimization_flags}
compiler.S.flags="@{compiler.sdk.path}/flags/S_flags" {compiler.warning_flags} {compiler.optimization_flags}
compiler.c.elf.flags="@{compiler.sdk.path}/flags/ld_flags" "@{compiler.sdk.path}/flags/ld_scripts"
compiler.c.elf.flags="@{compiler.sdk.path}/flags/ld_flags" "@{compiler.sdk.path}/flags/ld_scripts"
compiler.c.elf.libs="@{compiler.sdk.path}/flags/ld_libs"
compiler.c.elf.libs="@{compiler.sdk.path}/flags/ld_libs"
...
...
tests/requirements.txt
View file @
0a8888d5
cryptography==42.0.7
cryptography==42.0.7
--only-binary cryptography
--only-binary cryptography
pytest-cov==5.0.0
pytest-cov==5.0.0
pytest-embedded-serial-esp==1.11.
0
pytest-embedded-serial-esp==1.11.
5
pytest-embedded-arduino==1.11.
0
pytest-embedded-arduino==1.11.
5
pytest-embedded-wokwi==1.11.
0
pytest-embedded-wokwi==1.11.
5
pytest-embedded-qemu==1.11.
0
pytest-embedded-qemu==1.11.
5
tests/validation/democfg/test_democfg.py
View file @
0a8888d5
def
test_cfg
(
dut
):
def
test_cfg
(
dut
):
dut
.
expect
(
"Hello cfg!"
)
dut
.
expect
_exact
(
"Hello cfg!"
)
tests/validation/hello_world/test_hello_world.py
View file @
0a8888d5
def
test_hello_world
(
dut
):
def
test_hello_world
(
dut
):
dut
.
expect
(
"Hello Arduino!"
)
dut
.
expect
_exact
(
"Hello Arduino!"
)
tests/validation/nvs/test_nvs.py
View file @
0a8888d5
def
test_nvs
(
dut
):
def
test_nvs
(
dut
):
dut
.
expect
(
"Current counter value: 0"
)
dut
.
expect
_exact
(
"Current counter value: 0"
)
dut
.
expect
(
"Current counter value: 1"
)
dut
.
expect
_exact
(
"Current counter value: 1"
)
dut
.
expect
(
"Current counter value: 2"
)
dut
.
expect
_exact
(
"Current counter value: 2"
)
tools/platformio-build.py
View file @
0a8888d5
...
@@ -164,6 +164,15 @@ SConscript(
...
@@ -164,6 +164,15 @@ SConscript(
)
)
)
)
#
# Additional flags specific to Arduino core (not based on IDF)
#
env
.
Append
(
CFLAGS
=
[
"-Werror=return-type"
],
CXXFLAGS
=
[
"-Werror=return-type"
],
)
#
#
# Target: Build Core Library
# Target: Build Core Library
#
#
...
...
tools/pre-commit/requirements.txt
View file @
0a8888d5
pre-commit==3.7.1
pre-commit==3.7.1
docutils==0.
21.2
docutils==0.
16
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