From: Keith Packard Date: Thu, 7 Apr 2022 06:20:03 +0000 (-0700) Subject: easymotor-v3: Increase ADXL spi speed back to normal, remove delay X-Git-Tag: 1.9.12~1^2~17^2~4 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=72d0c00a063338642a3448f39b0308751285e5ee easymotor-v3: Increase ADXL spi speed back to normal, remove delay All done debugging, it seems to work on EasyMotor now. Signed-off-by: Keith Packard --- diff --git a/src/drivers/ao_adxl375.c b/src/drivers/ao_adxl375.c index be9be79c..9e5666cc 100644 --- a/src/drivers/ao_adxl375.c +++ b/src/drivers/ao_adxl375.c @@ -26,7 +26,7 @@ #define PRINTD(l,...) #endif -#define AO_ADXL375_SPI_SPEED ao_spi_speed(100000) +#define AO_ADXL375_SPI_SPEED ao_spi_speed(5000000) struct ao_adxl375_sample ao_adxl375_current; @@ -222,7 +222,6 @@ ao_adxl375_setup(void) static void ao_adxl375(void) { - ao_delay(AO_SEC_TO_TICKS(5)); ao_adxl375_setup(); for (;;) { ao_adxl375_value(&ao_adxl375_current); diff --git a/src/easymotor-v3/ao_pins.h b/src/easymotor-v3/ao_pins.h index 2db8a422..c54c7f0e 100644 --- a/src/easymotor-v3/ao_pins.h +++ b/src/easymotor-v3/ao_pins.h @@ -45,11 +45,6 @@ #define PACKET_HAS_SLAVE 0 #define HAS_SERIAL 0 -#define USE_SERIAL_0_STDIN 1 -#define SERIAL_0_18_19 1 -#define SERIAL_0_14_15 0 -#define SERIAL_0_17_18 0 -#define SERIAL_0_26_27 0 #define AO_CONFIG_DEFAULT_FLIGHT_LOG_MAX (1984 * 1024) #define AO_CONFIG_MAX_SIZE 1024