Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions apps/rockets/cloudburst/prj.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# Enable simulated sensors for native_sim
CONFIG_SIM_SENSORS=y

# Enable individual simulated sensors
CONFIG_SIM_BARO=y
CONFIG_SIM_ACCEL=y
CONFIG_SIM_GYRO=y
CONFIG_SIM_SDMMC=y
CONFIG_SIM_PYRO=y

# Enable fake sensors for native_sim
CONFIG_EMUL=y
CONFIG_SPI_EMUL=n
CONFIG_SENSOR_SHELL=y

# Enable the random number generator for native_sim
Expand Down
5 changes: 4 additions & 1 deletion drivers/sensor/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
add_subdirectory_ifdef(CONFIG_MS5611 ms5611)

add_subdirectory_ifdef(CONFIG_SIM_SENSORS sim_common)
add_subdirectory_ifdef(CONFIG_SIM_BARO sim_baro)
add_subdirectory_ifdef(CONFIG_SIM_ACCEL sim_accel)
add_subdirectory_ifdef(CONFIG_SIM_GYRO sim_gyro)
add_subdirectory_ifdef(CONFIG_SIM_SDMMC sim_sdmmc)
add_subdirectory_ifdef(CONFIG_SIM_SDMMC sim_sdmmc)
add_subdirectory_ifdef(CONFIG_SIM_PYRO sim_pyro)
2 changes: 2 additions & 0 deletions drivers/sensor/Kconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
if SENSOR
rsource "ms5611/Kconfig"
rsource "sim_common/Kconfig"
rsource "sim_baro/Kconfig"
rsource "sim_accel/Kconfig"
rsource "sim_gyro/Kconfig"
rsource "sim_sdmmc/Kconfig"
rsource "sim_pyro/Kconfig"
endif # SENSOR
5 changes: 4 additions & 1 deletion drivers/sensor/sim_baro/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
zephyr_library()
zephyr_library_sources_ifdef(CONFIG_SIM_BARO sim_baro.c)
zephyr_library_sources_ifdef(CONFIG_SIM_BARO sim_baro.c)

zephyr_include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../sim_common)
zephyr_library_sources(${CMAKE_CURRENT_SOURCE_DIR}/../sim_common/sim_csv.c)
Loading