The
@assert
s were removed and changed to conditionals. This modification can change the behavior of the code in some corner cases. However, the code is more robust.IOCTL calls were not working with structures (pointers), leading to problems when using SPI.
The transfers using SPI do not allocate anymore if the in-place version
spi_transfer!
is used, and if the number of messages is lower thanBaremetalPi._SPI_BUFFER_SIZE
. This constant is currently set to 16.The transfers using I2C (read and write) do not allocate anymore if the in-place version of the functions are used (
i2c_smbus_*!
).
- Initial version.