X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fstm32l0%2Fao_arch_funcs.h;h=5f0f07dea9ed0d7a6ce3ce2a67170beebf55c7d9;hb=d2216717adac7f7e917e13085de6ce8118023d5f;hp=385fe0e32b192d6c815ec0fd32bdb96f8d69abe0;hpb=3fdf2f80ccf3a2b148b63f5fd5de198957719075;p=fw%2Faltos diff --git a/src/stm32l0/ao_arch_funcs.h b/src/stm32l0/ao_arch_funcs.h index 385fe0e3..5f0f07de 100644 --- a/src/stm32l0/ao_arch_funcs.h +++ b/src/stm32l0/ao_arch_funcs.h @@ -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;