Skip to content

Commit

Permalink
tests: temperature tests on simulator board
Browse files Browse the repository at this point in the history
Use mock temperature pal when no temp sensor in dts

Signed-off-by: Krzysztof Taborowski <[email protected]>
  • Loading branch information
ktaborowski committed Dec 18, 2024
1 parent 8a4a223 commit dd5e6a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions subsys/sal/sid_pal/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ zephyr_library_sources_ifdef(CONFIG_SIDEWALK_CRITICAL_REGION sid_critical_region

zephyr_library_sources_ifdef(CONFIG_SIDEWALK_GPIO sid_gpio.c sid_gpio_utils.c)

if(CONFIG_SOC_SERIES_NRF53X)
if(CONFIG_HAS_HW_NRF_TEMP)
zephyr_library_sources_ifdef(CONFIG_SIDEWALK_TEMPERATURE sid_temperature.c)
else()
zephyr_library_sources_ifdef(CONFIG_SIDEWALK_TEMPERATURE sid_temperature_mock.c)
message("Note: Sidewalk uses MOCK temperature implementation")
else()
zephyr_library_sources_ifdef(CONFIG_SIDEWALK_TEMPERATURE sid_temperature.c)
endif() # CONFIG_SOC_SERIES_NRF53X

zephyr_library_sources_ifdef(CONFIG_SIDEWALK_SW_INTERRUPTS sid_sw_interrupts.c)
Expand Down
2 changes: 2 additions & 0 deletions tests_new/integration/temperature/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ tests:
sysbuild: true
tags: Sidewalk
platform_allow:
- native_sim
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l15dk/nrf54l15/cpuapp/ns
- nrf54l15dk/nrf54l10/cpuapp
integration_platforms:
- native_sim
- nrf52840dk/nrf52840
- nrf5340dk/nrf5340/cpuapp
- nrf54l15dk/nrf54l15/cpuapp
Expand Down

0 comments on commit dd5e6a8

Please sign in to comment.