zephyr/samples
Martí Bolívar 24260e6c3a samples: bme280: enable the appropriate bus by default
I personally don't find it very useful to have to maintain prj.conf
and prj_spi.conf for this sample. The information we need to make
this application "just work" with regards to the bus is available in
the devicetree, and Kconfig can now access it using
dt_compat_on_bus().

Do so, enabling I2C and SPI appropriately when a sensor of the right
type is on either of those buses.

If no sensors are enabled, the user gets the build-time error message
in main.c about no devices being found.

This approach is prone to the "stuck symbol" Kconfig problem covered
in our documentation, so a pristine build is necessary to change the
default settings from a previous build.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-04-14 10:38:10 -05:00
..
application_development boards: nrf52_pca10040: Rename to nrf52dk_nrf52832 2020-04-06 13:09:07 +02:00
basic boards: nucleo_h743zi: add pwm support 2020-04-04 15:00:11 +02:00
bluetooth boards: arm: nrf5340_dk_nrf5340: rename target to nrf5340pdk_nrf5340 2020-04-06 15:21:45 +02:00
boards samples: mec15xxevb_assy6853/pm: shorten wait after deep sleep 2020-04-10 07:48:33 -04:00
cpp_synchronization kernel/timeout: Make timeout arguments an opaque type 2020-03-31 19:40:47 -04:00
display timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
drivers boards: adafruit_feather_stm32f405: Add SPI flash 2020-04-13 11:53:59 -05:00
hello_world cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
mpu cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
net kernel: remove unused offload workqueue option 2020-04-12 18:42:27 -04:00
nfc/nfc_hello timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
philosophers samples: philosophers: Fix extra_args not used 2020-04-14 08:00:12 -04:00
portability samples: philosophers: Fix extra_args not used 2020-04-14 08:00:12 -04:00
posix cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
scheduler kernel/timeout: Make timeout arguments an opaque type 2020-03-31 19:40:47 -04:00
sensor samples: bme280: enable the appropriate bus by default 2020-04-14 10:38:10 -05:00
shields coccinelle: re-run timeout conversion semantic patch 2020-04-02 19:47:51 +03:00
smp cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
subsys cmake: fixed issue with invalid usage of APPLICATION_SOURCE_DIR 2020-04-09 16:57:30 +02:00
synchronization timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
testing/integration cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
userspace cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
video sample: video: capture: video software generator fallback 2020-04-07 09:44:14 -05:00
classic.rst
index.rst samples: Add MetaIRQ dispatch sample 2020-02-06 23:06:28 -05:00