Hello.
Seems you have typo in prototype of function TM_SPI_Send16 in Library 05- SPI for STM32F4. You have:
static __INLINE uint16_t TM_SPI_Send16(SPI_TypeDef* SPIx, uint8_t data)
We are trying to send 16-bit data, so uint8_t is wrong type here. Correct:
static __INLINE uint16_t TM_SPI_Send16(SPI_TypeDef* SPIx, uint16_t data)
Bug introduced in ec852fe6aaa7a3b9785dc1e41825a1be74843cfa
Hello. Seems you have typo in prototype of function TM_SPI_Send16 in Library 05- SPI for STM32F4. You have:
static __INLINE uint16_t TM_SPI_Send16(SPI_TypeDef* SPIx, uint8_t data)
We are trying to send 16-bit data, so uint8_t is wrong type here. Correct:static __INLINE uint16_t TM_SPI_Send16(SPI_TypeDef* SPIx, uint16_t data)
Bug introduced in ec852fe6aaa7a3b9785dc1e41825a1be74843cfa