diff options
| author | Dario Binacchi <[email protected]> | 2026-02-25 17:16:57 +0100 |
|---|---|---|
| committer | Patrice Chotard <[email protected]> | 2026-04-30 08:01:11 +0200 |
| commit | dd5002856ad7b1caaa5d8f6831ca90a214601baf (patch) | |
| tree | 46b52eeaeda779367d39ef9f115e1170489db772 /include/cpu_func.h | |
| parent | 17c022271d9c6c09ee435aedd155c0b67d128c54 (diff) | |
spi: stm32: add stm32_spi_is_enabled() helper
Add a helper to check the SPE (SPI Enable) bit and replace the
open-coded bitwise check in stm32_spi_stopxfer() with this helper to
improve readability and consistency.
This is also a preparatory step for future driver updates that require
checking the SPI enable state across different code paths.
Signed-off-by: Dario Binacchi <[email protected]>
Reviewed-by: Patrice Chotard <[email protected]>
Diffstat (limited to 'include/cpu_func.h')
0 files changed, 0 insertions, 0 deletions
