RTEMS | stm32h7/spi-support: correct bugs and improve safety in SPI HAL (!1162)
Kinsey Moore (@opticron)
gitlab at rtems.org
Mon Mar 30 14:11:10 UTC 2026
Kinsey Moore started a new discussion on bsps/arm/stm32h7/spi/spi-support.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1162#note_147453
> if (speed_hz < (ctx->bus.max_speed_hz / 128)) {
> /* clock rate request too low */
> return 1;
> }
The first added check below is redundant. This guarantees that speed_hz cannot be 0.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1162#note_147453
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260330/35aa8173/attachment-0001.htm>
More information about the bugs
mailing list