components/esp32-owb/CMakeLists.txt

Mon, 24 Jun 2024 20:55:35 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 24 Jun 2024 20:55:35 +0200
branch
idf 5.1
changeset 131
d0a74a6a9a02
parent 129
31f9d3e4a85f
permissions
-rw-r--r--

IDF code size optimisations, reduced binary 157.379 bytes. Now it fits in the partitions.

if (NOT IDF_VERSION_MAJOR)
  set(IDF_VERSION_MAJOR 3)
endif()

if (IDF_VERSION_MAJOR LESS 5)
    message(FATAL_ERROR "Can't build: requires ESP-IDF version 5.0 or above.")
endif()

set(COMPONENT_ADD_INCLUDEDIRS include)
set(COMPONENT_SRCS "owb.c" "owb_gpio.c" "owb_rmt.c")
set(COMPONENT_REQUIRES "soc" "driver" "esp_rom")
register_component()

mercurial