altos: Increase CC1200 SPI data rate to 8MHz
authorKeith Packard <keithp@keithp.com>
Sun, 26 Oct 2014 04:14:25 +0000 (21:14 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 26 Oct 2014 04:14:25 +0000 (21:14 -0700)
This got set to 125kHz to make debugging with a logic analyzer easier
and never changed back to a reasonable speed.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_cc1200.c

index a3c1cbd4f92d390d556da7e43bdf86e2bdffe1ac..fdaa6754bfabc640b925c3fd8528276a1b293086 100644 (file)
@@ -37,7 +37,7 @@ extern const uint32_t ao_radio_cal;
 
 #define FOSC   40000000
 
-#define ao_radio_select()      ao_spi_get_mask(AO_CC1200_SPI_CS_PORT,(1 << AO_CC1200_SPI_CS_PIN),AO_CC1200_SPI_BUS,AO_SPI_SPEED_125kHz)
+#define ao_radio_select()      ao_spi_get_mask(AO_CC1200_SPI_CS_PORT,(1 << AO_CC1200_SPI_CS_PIN),AO_CC1200_SPI_BUS,AO_SPI_SPEED_8MHz)
 #define ao_radio_deselect()    ao_spi_put_mask(AO_CC1200_SPI_CS_PORT,(1 << AO_CC1200_SPI_CS_PIN),AO_CC1200_SPI_BUS)
 #define ao_radio_spi_send(d,l) ao_spi_send((d), (l), AO_CC1200_SPI_BUS)
 #define ao_radio_spi_send_fixed(d,l) ao_spi_send_fixed((d), (l), AO_CC1200_SPI_BUS)