altos: Add SPI bus parameter to ao_spi_speed
authorKeith Packard <keithp@keithp.com>
Fri, 26 Jan 2024 19:07:55 +0000 (11:07 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 1 Feb 2024 01:50:19 +0000 (17:50 -0800)
commitd2216717adac7f7e917e13085de6ce8118023d5f
tree7060aa96150847da7abddc9409d2e040501aa8b5
parent3fdf2f80ccf3a2b148b63f5fd5de198957719075
altos: Add SPI bus parameter to ao_spi_speed

The stm32f1 series has two SPI busses and they operate from different
base clocks, so the computation of the clock divider to get a
particular frequency depends upon which SPI bus is being used.

Signed-off-by: Keith Packard <keithp@keithp.com>
20 files changed:
src/drivers/ao_adxl375.c
src/drivers/ao_bmi088.c
src/drivers/ao_bmx160.c
src/drivers/ao_cc1120.c
src/drivers/ao_cc115l.c
src/drivers/ao_cc1200.c
src/drivers/ao_companion.c
src/drivers/ao_m25.c
src/drivers/ao_mma655x.c
src/drivers/ao_mmc5983.c
src/drivers/ao_mpu6000.c
src/drivers/ao_mpu9250.c
src/drivers/ao_ms5607.c
src/drivers/ao_st7565.h
src/lpc/ao_arch.h
src/samd21/ao_arch_funcs.h
src/snekboard/snekboard.c
src/stm/ao_arch_funcs.h
src/stm32l0/ao_arch_funcs.h
src/stmf0/ao_arch_funcs.h