zephyr/samples/drivers/spi_lsm9ds0
David B. Kinder ac74d8b652 license: Replace Apache boilerplate with SPDX tag
Replace the existing Apache 2.0 boilerplate header with an SPDX tag
throughout the zephyr code tree. This patch was generated via a
script run over the master branch.

Also updated doc/porting/application.rst that had a dependency on
line numbers in a literal include.

Manually updated subsys/logging/sys_log.c that had a malformed
header in the original file.  Also cleanup several cases that already
had a SPDX tag and we either got a duplicate or missed updating.

Jira: ZEP-1457

Change-Id: I6131a1d4ee0e58f5b938300c2d2fc77d2e69572c
Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-01-19 03:50:58 +00:00
..
src license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
Makefile samples: tests: remove obsolete KERNEL_TYPE and kernel variables 2016-11-04 15:47:25 -04:00
README samples: Add wiring info for Quark D2000 CRB 2016-02-20 14:57:45 +00:00
prj.conf move driver samples to samples/drivers 2016-02-11 13:08:44 -05:00
sample.tc samples/drivers/spi_lsm9ds0: don't run on QEMUs or FRDMs 2016-10-19 17:56:48 +00:00

README

SPI Test Application

This application just retrieves the 'WHO AM I' register from the
Accelerometer from a LSM9DS0 connected via API.

The device datasheet can be found here:
https://www.adafruit.com/datasheets/LSM9DS0.pdf

Wiring information:

| LSM9DS0 pin | Quark SE Devboard  | Quark D2000 CRB |
|             | pin                | pin             |
|-------------+--------------------+-----------------|
| VIN         | VDD_HDR_3P3        | J25 pin 1       |
| CS_G        | GPIO24_SPI0_M_nCS0 | SS0             |
| CS_XM       | VDD_HDR_3P3        | J25 pin 1       |
| SCL         | GPIO24_SPI0_M_SCLK | CLK             |
| SDO_G       | GPIO24_SPI0_M_MISO | MISO            |
| SDO_XM      | Ground             | J25 pin 2       |
| SDA         | GPIO24_SPI0_M_MOSI | MOSI            |
| GND         | Ground             | J25 pin 2       |