summaryrefslogtreecommitdiff
path: root/src/easymega-v2.0/ao_easymega.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-10-13 09:43:25 -0700
committerKeith Packard <keithp@keithp.com>2018-10-19 08:38:32 -0700
commitf49763bf4a6cd8b2a47abfbec7ef3d8c8c029b8f (patch)
tree8f1895ac14de3f39a57d04f722f1997594b1776c /src/easymega-v2.0/ao_easymega.c
parent6fdc392ef1b624c06e26e7a053c3579435c455d5 (diff)
altos/easymega-v2.0: Add adxl375, replace mpu6000 with 9250 [v2]
Should reflect current hardware design now. v2: Use SPI mode 3 for ADXL375 Invert ADXL375 values Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/easymega-v2.0/ao_easymega.c')
-rw-r--r--src/easymega-v2.0/ao_easymega.c23
1 files changed, 6 insertions, 17 deletions
diff --git a/src/easymega-v2.0/ao_easymega.c b/src/easymega-v2.0/ao_easymega.c
index 9848c367..bb2e7cfd 100644
--- a/src/easymega-v2.0/ao_easymega.c
+++ b/src/easymega-v2.0/ao_easymega.c
@@ -17,9 +17,9 @@
*/
#include <ao.h>
-#include <ao_hmc5883.h>
-#include <ao_mpu6000.h>
-#include <ao_mma655x.h>
+#include <ao_ms5607.h>
+#include <ao_mpu9250.h>
+#include <ao_adxl375.h>
#include <ao_log.h>
#include <ao_exti.h>
#include <ao_companion.h>
@@ -43,7 +43,7 @@ main(void)
#endif
ao_task_init();
- ao_led_init(LEDS_AVAILABLE);
+ ao_led_init();
ao_led_on(LEDS_AVAILABLE);
ao_timer_init();
@@ -53,23 +53,12 @@ main(void)
ao_exti_init();
ao_adc_init();
-#if HAS_BEEP
ao_beep_init();
-#endif
ao_cmd_init();
-#if HAS_MS5607
ao_ms5607_init();
-#endif
-#if HAS_HMC5883
- ao_hmc5883_init();
-#endif
-#if HAS_MPU6000
- ao_mpu6000_init();
-#endif
-#if HAS_MMA655X
- ao_mma655x_init();
-#endif
+ ao_mpu9250_init();
+ ao_adxl375_init();
ao_eeprom_init();
ao_storage_init();