2022-09-05 02:21 PM
2022-09-06 08:04 PM
This has nothing to do with STM32 and even MCUs in general. Only learning the C language can help:
2022-09-06 10:24 PM
The latter allows you to change mind and switch to a different SPI painlessly (this may be arguably rare).
JW
2022-09-07 11:24 AM
#define SPI_MOTOR SPI2
SPI_MOTOR->SR;
This will do the same.