cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
set(COMPONENTS main)
set(PROJECT_VER "1.1.0")
project(machine_status_collector)
# IDF PCNT's signed 32-bit overflow accumulator is intentionally read modulo
# 2^32 and extended to uint64 by our 5 ms loop. Define signed wrap behavior in
# that driver as well, so continuous 1 kHz operation beyond 24.8 days is valid.
idf_component_get_property(pcnt_component esp_driver_pcnt COMPONENT_LIB)
target_compile_options(${pcnt_component} PRIVATE -fwrapv)
