altos: Add SPI bus parameter to ao_spi_speed
[fw/altos] / src / stm32l0 / ao_arch_funcs.h
index 385fe0e32b192d6c815ec0fd32bdb96f8d69abe0..5f0f07dea9ed0d7a6ce3ce2a67170beebf55c7d9 100644 (file)
@@ -36,8 +36,9 @@
 /* Companion bus wants something no faster than 200kHz */
 
 static inline uint32_t
-ao_spi_speed(uint32_t hz)
+ao_spi_speed(int index, uint32_t hz)
 {
+       (void) index;
        if (hz >= 4000000) return _AO_SPI_SPEED_4MHz;
        if (hz >= 2000000) return _AO_SPI_SPEED_2MHz;
        if (hz >= 1000000) return _AO_SPI_SPEED_1MHz;