altos: Add SPI bus parameter to ao_spi_speed
[fw/altos] / src / stmf0 / ao_arch_funcs.h
index 1a9f28e30ef0b68d4f7ac69fe846e16dea915bb5..953a0c00c2a69ad107124a91b337bb04ed05256e 100644 (file)
@@ -36,8 +36,9 @@
 #define _AO_SPI_SPEED_187500Hz STM_SPI_CR1_BR_PCLK_256
 
 static inline uint32_t
-ao_spi_speed(uint32_t hz)
+ao_spi_speed(int index, uint32_t hz)
 {
+       (void) index;
        if (hz >=24000000) return _AO_SPI_SPEED_24MHz;
        if (hz >=12000000) return _AO_SPI_SPEED_12MHz;
        if (hz >= 6000000) return _AO_SPI_SPEED_6MHz;