X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fdrivers%2Fao_cc115l.c;h=dc8e9ff315ad303df49ee0b1ccc151767e8c842e;hb=341157c7415fcf879696c9d8167722a0c5ff264c;hp=2b5fd3fd9313ffaf636b78649752ed74a42a05f3;hpb=c11427819ca24bb77523496309b5b6f699d126c5;p=fw%2Faltos diff --git a/src/drivers/ao_cc115l.c b/src/drivers/ao_cc115l.c index 2b5fd3fd..dc8e9ff3 100644 --- a/src/drivers/ao_cc115l.c +++ b/src/drivers/ao_cc115l.c @@ -39,6 +39,8 @@ static uint8_t ao_radio_abort; /* radio operation should abort */ #define FOSC 26000000 +#define AO_CC115L_SPI_SPEED ao_spi_speed(6500000) /* for back-to-back access */ + #define ao_radio_select() ao_spi_get_mask(AO_CC115L_SPI_CS_PORT,(1 << AO_CC115L_SPI_CS_PIN),AO_CC115L_SPI_BUS,AO_CC115L_SPI_SPEED) #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)