powerpods/main/CMakeLists.txt
simon 47c75110c9 Stream slave accel via ESP-NOW with master snapshot cache.
Slaves push BMA456 samples at 16ms when enabled; the master caches per
client and exposes ACCEL_SNAPSHOT and ACCEL_STREAM over UART. goTool adds
dashboard stream controls, HTTP accel-stream routes, and an external
WebSocket API with per-connection receive/interval and slave stream commands.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-29 19:11:36 +02:00

62 lines
1.2 KiB
CMake

execute_process(
COMMAND git -C ${CMAKE_CURRENT_LIST_DIR}/.. rev-parse --short=8 HEAD
OUTPUT_VARIABLE POWERPOD_GIT_HASH
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_QUIET)
if(NOT POWERPOD_GIT_HASH)
set(POWERPOD_GIT_HASH "unknown")
endif()
idf_component_register(
SRCS
"powerpod.c"
"led_ring.c"
"uart.c"
"uart_proto.c"
"uart_cmd.c"
"cmd/cmd_handler.c"
"cmd/cmd_version.c"
"cmd/cmd_client_info.c"
"cmd/cmd_accel_deadzone.c"
"cmd/cmd_accel_snapshot.c"
"cmd/cmd_accel_stream.c"
"cmd/cmd_espnow_unicast_test.c"
"cmd/cmd_espnow_find_me.c"
"cmd/cmd_restart.c"
"pod_reboot.c"
"cmd/cmd_led_ring.c"
"cmd/cmd_ota.c"
"cmd/cmd_ota_slave_progress.c"
"ota_uart.c"
"ota_espnow.c"
"client_registry.c"
"esp_now_comm.c"
"esp_now_proto.c"
"bosch456.c"
"board_input.c"
"pod_settings.c"
"proto/uart_messages.pb.c"
"proto/esp_now_messages.pb.c"
"proto/pb_encode.c"
"proto/pb_decode.c"
"proto/pb_common.c"
INCLUDE_DIRS
"."
"cmd"
"proto"
REQUIRES
esp_wifi
esp_netif
esp_event
nvs_flash
PRIV_REQUIRES
esp_driver_gpio
esp_driver_uart
esp_driver_i2c
esp_adc
app_update
bma456)
target_compile_definitions(${COMPONENT_LIB}
PRIVATE "POWERPOD_GIT_HASH=\"${POWERPOD_GIT_HASH}\"")