MaJerle / stm32f429

Keil projects and libraries for STM32F4xx devices
https://stm32f4-discovery.net
2.16k stars 1.32k forks source link

Bug in TM_SPI_Send16 prototype #8

Closed PoZitron closed 7 years ago

PoZitron commented 7 years ago

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

MaJerle commented 7 years ago

True.