X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm%2Fao_arch_funcs.h;h=ad46ef32babf9fd52b0f9d58f08fd09e6f534275;hb=HEAD;hp=9922513be007bf005c19c9d9d1cd5021e3266300;hpb=2ea3f551b3c4649320efe2fd999f01012bca03bd;p=fw%2Faltos diff --git a/src/stm/ao_arch_funcs.h b/src/stm/ao_arch_funcs.h index 9922513b..0f2f36a6 100644 --- a/src/stm/ao_arch_funcs.h +++ b/src/stm/ao_arch_funcs.h @@ -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;