altos/drivers: Increase SPI speed of CC115L to 6MHz
authorKeith Packard <keithp@keithp.com>
Sat, 7 Feb 2015 09:05:03 +0000 (01:05 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 7 Feb 2015 09:05:03 +0000 (01:05 -0800)
The datasheet says that the maximum for back-to-back data is 6.5MHz.

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

index 6b76e7d353cedec160839a0e3a1f20432a8ffe1a..0246ba02ddfce5a4f5925a2ac080fbbcb9bad563 100644 (file)
@@ -38,7 +38,7 @@ static uint8_t ao_radio_abort;                /* radio operation should abort */
 
 #define FOSC   26000000
 
 
 #define FOSC   26000000
 
-#define ao_radio_select()      ao_spi_get_mask(AO_CC115L_SPI_CS_PORT,(1 << AO_CC115L_SPI_CS_PIN),AO_CC115L_SPI_BUS,AO_SPI_SPEED_1MHz)
+#define ao_radio_select()      ao_spi_get_mask(AO_CC115L_SPI_CS_PORT,(1 << AO_CC115L_SPI_CS_PIN),AO_CC115L_SPI_BUS,AO_SPI_SPEED_6MHz)
 #define ao_radio_deselect()    ao_spi_put_mask(AO_CC115L_SPI_CS_PORT,(1 << AO_CC115L_SPI_CS_PIN),AO_CC115L_SPI_BUS)
 #define ao_radio_spi_send(d,l) ao_spi_send((d), (l), AO_CC115L_SPI_BUS)
 #define ao_radio_spi_send_fixed(d,l) ao_spi_send_fixed((d), (l), AO_CC115L_SPI_BUS)
 #define ao_radio_deselect()    ao_spi_put_mask(AO_CC115L_SPI_CS_PORT,(1 << AO_CC115L_SPI_CS_PIN),AO_CC115L_SPI_BUS)
 #define ao_radio_spi_send(d,l) ao_spi_send((d), (l), AO_CC115L_SPI_BUS)
 #define ao_radio_spi_send_fixed(d,l) ao_spi_send_fixed((d), (l), AO_CC115L_SPI_BUS)