Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: spi0_adiAdxl362_config.c
- Branch:
- v2.0
- Revision:
- 29:57edca10d78c
- Parent:
- 27:567abf893938
- Child:
- 31:de49744b57a6
--- a/spi0_adiAdxl362_config.c Mon Mar 26 20:28:05 2018 +0100
+++ b/spi0_adiAdxl362_config.c Tue May 22 13:45:24 2018 +0100
@@ -55,36 +55,6 @@
.cycleInterval = 1000000,
},
.channels = {
- [ADI_SENSE_1000_CHANNEL_ID_CJC_0] = {
- .enableChannel = false,
- },
- [ADI_SENSE_1000_CHANNEL_ID_CJC_1] = {
- .enableChannel = false,
- },
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_0] = {
- .enableChannel = false,
- },
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_1] = {
- .enableChannel = false,
- },
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_2] = {
- .enableChannel = false,
- },
- [ADI_SENSE_1000_CHANNEL_ID_SENSOR_3] = {
- .enableChannel = false,
- },
- [ADI_SENSE_1000_CHANNEL_ID_VOLTAGE_0] = {
- .enableChannel = false,
- },
- [ADI_SENSE_1000_CHANNEL_ID_CURRENT_0] = {
- .enableChannel = false,
- },
- [ADI_SENSE_1000_CHANNEL_ID_I2C_0] = {
- .enableChannel = false,
- },
- [ADI_SENSE_1000_CHANNEL_ID_I2C_1] = {
- .enableChannel = false,
- },
[ADI_SENSE_1000_CHANNEL_ID_SPI_0] = {
/* Accelerometer X-Axis (and common settings for physical channel) */
.enableChannel = true,
@@ -96,11 +66,7 @@
.lowThreshold = -6.0,
.highThreshold = 6.0,
.spiChannelConfig = {
- .sensor = ADI_SENSE_1000_SPI_SENSOR_ACCELEROMETER_ADI_ADXL362,
- .configurationCommand = {
- .command = { 0x0A, 0x2C, 0x83 }, /* +/-8G range */
- .commandLength = 3,
- },
+ .sensor = ADI_SENSE_1000_SPI_SENSOR_ACCELEROMETER_A_DEF_L1,
},
},
[ADI_SENSE_1000_CHANNEL_ID_SPI_1] = {