X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstmf0%2Fao_arch_funcs.h;fp=src%2Fstmf0%2Fao_arch_funcs.h;h=953a0c00c2a69ad107124a91b337bb04ed05256e;hb=1311eba0bbe32bc1759a3b11b00c78774843383c;hp=1a9f28e30ef0b68d4f7ac69fe846e16dea915bb5;hpb=7b2588ee723827b9be2a2d5f287afb1b5d351b23;p=fw%2Faltos diff --git a/src/stmf0/ao_arch_funcs.h b/src/stmf0/ao_arch_funcs.h index 1a9f28e3..953a0c00 100644 --- a/src/stmf0/ao_arch_funcs.h +++ b/src/stmf0/ao_arch_funcs.h @@ -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;