F4 Series SPI HAL Data Size Bug
I am getting a warning during compile of an incompatible pointer type when I call the SPI TransmitReceive function as shown below.
Compiler warning
I am passing the function an unsigned 16 bit integer array. I have configured the SPI to use 16 data bits, as shown below in CubeMX.
.
While digging into the HAL functions, I noticed that all the Transmit and Receive functions were expecting a pointer to an unsigned 8 bit value, shown below. If the SPI peripheral is suppose to be able to accept either 8 or 16 data bits, wouldn't the expected type be the maximum size it can accept or two different sets of functions for either 8 data bits or 16 data bits?

