MaJerle / stm32f429

Keil projects and libraries for STM32F4xx devices

Home Page:https://stm32f4-discovery.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug in TM_SPI_Send16 prototype

PoZitron opened this issue · comments

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

True.