esp-idf-lib/devtools/cmake-get-requires/CMakeLists.txt

Wed, 12 Apr 2023 16:23:02 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 12 Apr 2023 16:23:02 +0200
changeset 24
74609f70411e
parent 1
1c9894662795
permissions
-rw-r--r--

Reduced I2C master speed from 400 to 100 Khz. Hope to get power-on init for BMP280 more reliable. Added warnings for I2C devices that are missing. Some logmessages reduced to debug log messages. Added extra 10 mSec delays before read shunt voltage in the INA219 task. Removed and reduced log levels in the MQTT task. Show received data events. Remove WiFi total time debug logging, it's ok now.

# a script to parse CMakeLists.txt of a component, print REQUIRES.
#
# usage:
# cmake -DCOMPONENT_NAME:STRING=framebuffer .  >/dev/null
#
# output in stderr:
# REQUIRES:log;color

cmake_minimum_required(VERSION 3.5)

# mock idf_component_register()
function(idf_component_register)
    set(multiValueArgs REQUIRES)
    cmake_parse_arguments(MY "" "" "${multiValueArgs}" ${ARGN})

    # print REQUIRES argument to stderr. MY_REQUIRES is a semicolon separated
    # string, such as `foo;bar`
    message(NOTICE "REQUIRES:${MY_REQUIRES}")
endfunction()

include(${CMAKE_CURRENT_SOURCE_DIR}/../../components/${COMPONENT_NAME}/CMakeLists.txt)

project(ProjectName)

mercurial