first cut at turnon scripts for EasyTimer v2
[fw/altos] / src / stm / ao_arch_funcs.h
index 9922513be007bf005c19c9d9d1cd5021e3266300..0f2f36a6e40aa0a6a64b147c02508ade2d2e380c 100644 (file)
@@ -34,8 +34,9 @@
 #define _AO_SPI_SPEED_62500Hz  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 >= 4000000) return _AO_SPI_SPEED_4MHz;
        if (hz >= 2000000) return _AO_SPI_SPEED_2MHz;
        if (hz >= 1000000) return _AO_SPI_SPEED_1MHz;