dfb240f37c
This sample reports the I2C configuration of the selected I2C node from the board DTS : bitrate property of the I2C node In case of I2C V2, it also gives the TIMINGS which has to be written in the DTS <timings> property of the I2C V2 node. Uses the i2c_get_config function with CONFIG_I2C_STM32_V2_TIMING. Signed-off-by: Francois Ramu <francois.ramu@st.com>
9 lines
227 B
CMake
9 lines
227 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(i2c_timing)
|
|
|
|
FILE(GLOB app_sources src/*.c)
|
|
target_sources(app PRIVATE ${app_sources})
|