diff options
author | Timofey Titovets <nefelim4ag@gmail.com> | 2025-01-30 21:24:16 +0100 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2025-02-06 12:10:29 -0500 |
commit | fec3e685c92ef263a829a73510c74245d7772c03 (patch) | |
tree | 44cdce952c07b91140e242c336677ca68e62bbed /src/stm32/gpio.h | |
parent | b16cb6575d69aa4fd1737e42f19d28aec1fcad89 (diff) | |
download | kutter-fec3e685c92ef263a829a73510c74245d7772c03.tar.gz kutter-fec3e685c92ef263a829a73510c74245d7772c03.tar.xz kutter-fec3e685c92ef263a829a73510c74245d7772c03.zip |
stm32: h7 spi support reload mode & frequency
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
Diffstat (limited to 'src/stm32/gpio.h')
-rw-r--r-- | src/stm32/gpio.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/stm32/gpio.h b/src/stm32/gpio.h index 78f567b8..96105e9b 100644 --- a/src/stm32/gpio.h +++ b/src/stm32/gpio.h @@ -38,7 +38,13 @@ void gpio_adc_cancel_sample(struct gpio_adc g); struct spi_config { void *spi; - uint32_t spi_cr1; + union { + uint32_t spi_cr1; + struct { + uint8_t div; + uint8_t mode; + }; + }; }; struct spi_config spi_setup(uint32_t bus, uint8_t mode, uint32_t rate); void spi_prepare(struct spi_config config); |