altos/cc1200: Adjust bit-sync configuration
[fw/altos] / src / drivers / ao_cc115l.c
index 9e116d62b91601e961bc6a9c8e7c25fae58c4721..0246ba02ddfce5a4f5925a2ac080fbbcb9bad563 100644 (file)
@@ -38,7 +38,7 @@ static uint8_t ao_radio_abort;                /* radio operation should abort */
 
 #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)
@@ -515,7 +515,13 @@ static uint8_t     ao_radio_configured = 0;
 #if HAS_RADIO_POWER
 #define RADIO_POWER    ao_config.radio_power
 #else
-#define RADIO_POWER    0xc0
+
+#if 0
+#define RADIO_POWER    0x03    /* -31.75dBm on the test board */
+#endif
+
+#define RADIO_POWER    0xc0    /* full power */
+
 #endif
 
 static void