Skip to content

Commit a75594a

Browse files
authored
Merge branch 'master' into rgbWrite_change
2 parents dd6d597 + cd3d0bf commit a75594a

File tree

12 files changed

+35
-17
lines changed

12 files changed

+35
-17
lines changed

.github/scripts/tests_run.sh

+4
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ while [ ! -z "$1" ]; do
132132
-W )
133133
shift
134134
wokwi_timeout=$1
135+
if [[ -z $WOKWI_CLI_TOKEN ]]; then
136+
echo "Wokwi CLI token is not set"
137+
exit 1
138+
fi
135139
platform="wokwi"
136140
;;
137141
-o )

cores/esp32/esp32-hal-timer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ uint64_t timerReadMicros(hw_timer_t *timer) {
242242
return timer_val * 1000000 / frequency;
243243
}
244244

245-
uint64_t timerReadMilis(hw_timer_t *timer) {
245+
uint64_t timerReadMillis(hw_timer_t *timer) {
246246
if (timer == NULL) {
247247
log_e("Timer handle is NULL");
248248
return 0;

cores/esp32/esp32-hal-timer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void timerWrite(hw_timer_t *timer, uint64_t val);
4242

4343
uint64_t timerRead(hw_timer_t *timer);
4444
uint64_t timerReadMicros(hw_timer_t *timer);
45-
uint64_t timerReadMilis(hw_timer_t *timer);
45+
uint64_t timerReadMillis(hw_timer_t *timer);
4646
double timerReadSeconds(hw_timer_t *timer);
4747

4848
uint32_t timerGetFrequency(hw_timer_t *timer);

docs/en/api/timer.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,14 @@ This function is used to read counter value in microseconds of the timer.
119119

120120
This function will return ``counter value`` of the timer in microseconds.
121121

122-
timerReadMilis
123-
**************
122+
timerReadMillis
123+
***************
124124

125125
This function is used to read counter value in milliseconds of the timer.
126126

127127
.. code-block:: arduino
128128
129-
uint64_t timerReadMilis(hw_timer_t * timer);
129+
uint64_t timerReadMillis(hw_timer_t * timer);
130130
131131
* ``timer`` timer struct.
132132

docs/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
esp-docs>=1.4.0
22
sphinx-copybutton==0.5.0
33
sphinx-tabs==3.2.0
4+
numpydoc==1.5.0

platform.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,14 @@ compiler.warning_flags.default=
4646
compiler.warning_flags.more=-Wall
4747
compiler.warning_flags.all=-Wall -Wextra
4848

49+
# Additional flags specific to Arduino (not based on IDF flags).
50+
# Update tools/platformio-build.py when changing these flags.
51+
compiler.common_werror_flags=-Werror=return-type
52+
4953
# Compile Flags
5054
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"
51-
compiler.c.flags="@{compiler.sdk.path}/flags/c_flags" {compiler.warning_flags} {compiler.optimization_flags}
52-
compiler.cpp.flags="@{compiler.sdk.path}/flags/cpp_flags" {compiler.warning_flags} {compiler.optimization_flags}
55+
compiler.c.flags="@{compiler.sdk.path}/flags/c_flags" {compiler.warning_flags} {compiler.optimization_flags} {compiler.common_werror_flags}
56+
compiler.cpp.flags="@{compiler.sdk.path}/flags/cpp_flags" {compiler.warning_flags} {compiler.optimization_flags} {compiler.common_werror_flags}
5357
compiler.S.flags="@{compiler.sdk.path}/flags/S_flags" {compiler.warning_flags} {compiler.optimization_flags}
5458
compiler.c.elf.flags="@{compiler.sdk.path}/flags/ld_flags" "@{compiler.sdk.path}/flags/ld_scripts"
5559
compiler.c.elf.libs="@{compiler.sdk.path}/flags/ld_libs"

tests/requirements.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cryptography==42.0.7
22
--only-binary cryptography
33
pytest-cov==5.0.0
4-
pytest-embedded-serial-esp==1.11.0
5-
pytest-embedded-arduino==1.11.0
6-
pytest-embedded-wokwi==1.11.0
7-
pytest-embedded-qemu==1.11.0
4+
pytest-embedded-serial-esp==1.11.5
5+
pytest-embedded-arduino==1.11.5
6+
pytest-embedded-wokwi==1.11.5
7+
pytest-embedded-qemu==1.11.5
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
def test_cfg(dut):
2-
dut.expect("Hello cfg!")
2+
dut.expect_exact("Hello cfg!")
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
def test_hello_world(dut):
2-
dut.expect("Hello Arduino!")
2+
dut.expect_exact("Hello Arduino!")

tests/validation/nvs/test_nvs.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
def test_nvs(dut):
2-
dut.expect("Current counter value: 0")
3-
dut.expect("Current counter value: 1")
4-
dut.expect("Current counter value: 2")
2+
dut.expect_exact("Current counter value: 0")
3+
dut.expect_exact("Current counter value: 1")
4+
dut.expect_exact("Current counter value: 2")

tools/platformio-build.py

+9
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,15 @@ def add_tinyuf2_extra_image():
164164
)
165165
)
166166

167+
#
168+
# Additional flags specific to Arduino core (not based on IDF)
169+
#
170+
171+
env.Append(
172+
CFLAGS=["-Werror=return-type"],
173+
CXXFLAGS=["-Werror=return-type"],
174+
)
175+
167176
#
168177
# Target: Build Core Library
169178
#

tools/pre-commit/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
pre-commit==3.7.1
2-
docutils==0.21.2
2+
docutils==0.16

0 commit comments

Comments
 (0)