Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Hardware section if it is not relevant to the PR.

## Code Style

- C++20 standard
- C++23 standard
- Follow `.clang-format` for formatting
- Use `espp` namespace
- Follow the patterns of existing components for logging (`espp::Logger`), configuration structs (`Config`), and task usage
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/desktop_tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Desktop host + web tests

# The desktop component's host-side checks: the C++ codec / model test
# (components/desktop/test, built with g++ -std=c++20), the web app's node
# (components/desktop/test, built with g++ -std=c++23), the web app's node
# codec test against the same golden vectors, the dispatcher web-app lints
# (module-id resolution, app registry) and the headless-Chrome smoke test of
# desktop.html (file:// load with / without ?autoconnect and the ?selftest=1
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
working-directory: components/desktop/test
run: |
g++ --version | head -1
g++ -std=c++20 -Wall -Wextra -I../include -I../../stream_frame/include \
g++ -std=c++23 -Wall -Wextra -I../include -I../../stream_frame/include \
desktop_host_test.cpp -o desktop_host_test
./desktop_host_test desktop_vectors.txt

Expand Down
2 changes: 1 addition & 1 deletion components/adc/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(adc_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/adrc/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ set(

project(adrc_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/ads1x15/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(ads1x15_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/ads7138/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(ads7138_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/adxl345/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(adxl345_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/as5600/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(as5600_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/at581x/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(at581x_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/aw9523/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(aw9523_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/basicmicro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ duty-cycle ramp on motor 1 with encoder readback, and stop.
The wire core is host-buildable and unit-tested without ESP-IDF:

```sh
c++ -std=c++20 -I include -o /tmp/bm_test test/basicmicro_host_test.cpp && /tmp/bm_test
c++ -std=c++23 -I include -o /tmp/bm_test test/basicmicro_host_test.cpp && /tmp/bm_test
```
2 changes: 1 addition & 1 deletion components/basicmicro/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ set(

project(basicmicro_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/basicmicro/test/basicmicro_host_test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Host-buildable unit tests for the Basicmicro (MCP / RoboClaw-family) packet
// serial wire core. Build & run with:
// c++ -std=c++20 -I../include -I../../motor_controller/include \
// c++ -std=c++23 -I../include -I../../motor_controller/include \
// basicmicro_host_test.cpp -o test && ./test
// (the -I../../motor_controller/include is for the shared BasicmicroCommand table)
//
Expand Down
2 changes: 1 addition & 1 deletion components/bdc_driver/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ set(

project(bdc_driver_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/binary-log/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(binary_log_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/bldc_current_sense/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(bldc_current_sense_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/bldc_motor/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(bldc_motor_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/ble_gatt_server/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ set(

project(ble_gatt_server_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/bm8563/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(bm8563_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/bmi270/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(bmi270_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/bq27220/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(bq27220_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/button/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(button_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/byte90/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(byte90_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/canopen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SDO transactions are blocking with a configurable timeout; `process_frame()`
must be called from a different task than the one performing SDO transfers
(automatic with `espp::Twai`, whose `on_receive` runs in its own task).

The wire core (`include/detail/canopen_core.hpp`) is host-buildable pure C++20
The wire core (`include/detail/canopen_core.hpp`) is host-buildable pure C++23
with no ESP dependencies, and is covered by golden-frame unit tests in
`test/canopen_host_test.cpp`.

Expand Down
2 changes: 1 addition & 1 deletion components/canopen/can_bridge_example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ set(

project(can_bridge_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/canopen/can_bridge_example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ The node is host-buildable and unit-tested against the `canopen` component's
client-side frame builders / parsers:

```
cd test && c++ -std=c++20 -I../../include -I../main simulated_node_host_test.cpp -o test && ./test
cd test && c++ -std=c++23 -I../../include -I../main simulated_node_host_test.cpp -o test && ./test
```

The simulation has no bit timing, so the baudrate is only reported; in
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Host-buildable tests for the bridge example's simulated CiA 402 node
// (main/simulated_ds402_node.hpp). Build & run with:
// c++ -std=c++20 -I../../include -I../main simulated_node_host_test.cpp -o test && ./test
// c++ -std=c++23 -I../../include -I../main simulated_node_host_test.cpp -o test && ./test
//
// The node is driven with the canopen component's client-side frame builders
// / parsers, so a passing run means espp::CanopenClient / Ds402Drive (and the
Expand Down
2 changes: 1 addition & 1 deletion components/canopen/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(canopen_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/canopen/test/canopen_host_test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Host-buildable unit tests for the CANopen (CiA 301) wire core and the
// CiA 402 statusword decoding. Build & run with:
// c++ -std=c++20 -I../include canopen_host_test.cpp -o test && ./test
// c++ -std=c++23 -I../include canopen_host_test.cpp -o test && ./test
//
// These tests exercise espp::detail::canopen / espp::detail::ds402 directly so
// they need no ESP-IDF headers.
Expand Down
2 changes: 1 addition & 1 deletion components/chsc6x/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(chsc6x_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/cli/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(cli_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/cobs/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(cobs_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/color/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(color_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/controller/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(controller_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/cst816/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(cst816_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/csv/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(csv_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/desktop/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.20)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)

# This example needs the managed `espressif/esp_tinyusb` component (required by
# usb_device) and `joltwallet/littlefs` (required by file_system). It supports
Expand Down
2 changes: 1 addition & 1 deletion components/desktop/test/desktop_host_test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Host-buildable unit tests for the espp desktop wire codec
// (include/detail/desktop_protocol.hpp) and the ESP-free desktop model
// (include/detail/desktop_model.hpp). Build & run from this directory with:
// c++ -std=c++20 -I../include -I../../stream_frame/include desktop_host_test.cpp -o test &&
// c++ -std=c++23 -I../include -I../../stream_frame/include desktop_host_test.cpp -o test &&
// ./test
//
// The golden vectors live in desktop_vectors.txt (shared with the web app's
Expand Down
2 changes: 1 addition & 1 deletion components/dispatcher/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ reported as a warning, not refused.
## Host tests

```
c++ -std=c++20 -Werror -I components/dispatcher/include -I components/stream_frame/include \
c++ -std=c++23 -Werror -I components/dispatcher/include -I components/stream_frame/include \
components/dispatcher/test/dispatcher_host_test.cpp -o test && ./test
node components/dispatcher/web/test/resolve_module_id_test.js # the consoles' shared discovery helpers
node components/dispatcher/web/test/apps_registry_test.js # app metadata, registry generator, hub app matching
Expand Down
2 changes: 1 addition & 1 deletion components/dispatcher/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(dispatcher_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/dispatcher/test/dispatcher_host_test.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Host-buildable unit tests for espp::Dispatcher (v2). Build & run with:
// c++ -std=c++20 -Werror -I components/dispatcher/include \
// c++ -std=c++23 -Werror -I components/dispatcher/include \
// -I components/stream_frame/include \
// components/dispatcher/test/dispatcher_host_test.cpp -o test && ./test
//
Expand Down
2 changes: 1 addition & 1 deletion components/display_drivers/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(display_drivers_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/dns_server/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(dns_server_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/drv2605/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(drv2605_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/encoder/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(encoder_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/esp-box/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(esp_box_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/esp32-ethernet-kit/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(esp32_ethernet_kit_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/esp32-p4-eth/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ set(

project(esp32_p4_eth_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(esp32_p4_function_ev_board_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/esp32-p4-nano/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ set(

project(esp32_p4_nano_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/esp32-timer-cam/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ set(

project(esp_timer_cam_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)

# The mDNS component (espressif/mdns from the registry, or the vendored copy)
# trips -Werror=stringop-truncation under the ESP-IDF v6 toolchain (GCC 15). It
Expand Down
2 changes: 1 addition & 1 deletion components/ethernet/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(ethernet_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/event_manager/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(event_manager_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/expressive_eyes/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(expressive_eyes_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/file_system/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(file_system_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/filters/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(filters_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/ft5x06/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(ft5x06_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/ftp/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ set(

project(ftp_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
2 changes: 1 addition & 1 deletion components/gfps_service/example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ set(

project(gfps_service_example)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD 23)
Loading
Loading