zephyr/samples/drivers/spi_lsm9ds0
Dan Kalowsky 10a442824a samples : incorrectly addressing SPI port
Correcting the discovery method for SPI port.  The current method is based
 upon knowledge of a specific port and a *_DRV_NAME value.  Instead this
 should be based upon the use of the device_get_binding() for SPI_0.

Change-Id: I250f5dddf2a2e79c4714addf647b0c74bd79ec5a
Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
2016-02-12 01:43:39 +00:00
..
src
Makefile
README
prj.conf

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  |
|             |	pin		   |
|-------------+--------------------|
| VIN         | VDD_HDR_3P3        |
| CS_G        | GPIO24_SPI0_M_nCS0 |
| CS_XM       | VDD_HDR_3P3        |
| SCL         | GPIO24_SPI0_M_SCLK |
| SDO_G       | GPIO24_SPI0_M_MISO |
| SDO_XM      | Ground             |
| SDA         | GPIO24_SPI0_M_MISO |
| GND         | Ground             |