summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b215bed)
Replacce the mma655x driver with the adxl375 driver
Signed-off-by: Keith Packard <keithp@keithp.com>
ao_kalman.h \
ao_product.h \
ao_ms5607.h \
ao_kalman.h \
ao_product.h \
ao_ms5607.h \
ao_cc1200_CC1200.h \
ao_profile.h \
ao_task.h \
ao_cc1200_CC1200.h \
ao_profile.h \
ao_task.h \
ao_fec_rx.c \
ao_data.c \
ao_ms5607.c \
ao_fec_rx.c \
ao_data.c \
ao_ms5607.c \
ao_adc_stm.c \
ao_beep_stm.c \
ao_storage.c \
ao_adc_stm.c \
ao_beep_stm.c \
ao_storage.c \
#define HAS_HIGHG_ACCEL 1
#define HAS_HIGHG_ACCEL 1
+/* ADXL375 */
+
+#define HAS_ADXL375 1
+#define AO_ADXL375_SPI_INDEX (AO_SPI_1_PB3_PB4_PB5 | AO_SPI_MODE_3)
+#define AO_ADXL375_CS_PORT (&stm_gpiob)
+#define AO_ADXL375_CS_PIN 9
+#define AO_ADXL375_SPI_SPEED AO_SPI_SPEED_4MHz
-#define HAS_MMA655X 1
-#define AO_MMA655X_SPI_INDEX AO_SPI_1_PB3_PB4_PB5
-#define AO_MMA655X_CS_PORT (&stm_gpiob)
-#define AO_MMA655X_CS_PIN 9
-#define AO_MMA655X_INVERT 1
+#define AO_ADXL375_AXIS x
+#define AO_ADXL375_INVERT 1
#include <ao.h>
#include <ao_ms5607.h>
#include <ao.h>
#include <ao_ms5607.h>
#include <ao_log.h>
#include <ao_exti.h>
#include <ao_packet.h>
#include <ao_log.h>
#include <ao_exti.h>
#include <ao_packet.h>
ao_exti_init();
ao_adc_init();
ao_exti_init();
ao_adc_init();
-#endif
-#if HAS_MMA655X
- ao_mma655x_init();
-#endif