adjustements

This commit is contained in:
lilian 2016-11-26 12:26:42 +01:00
parent 71bce674a0
commit f19fdc37be

View file

@ -337,7 +337,7 @@ static inline void spi_set_address(uint8_t bus,uint8_t bits, uint32_t data)
* \param bits Number of bits * \param bits Number of bits
* \param pos Address to send for each transfert. * \param pos Address to send for each transfert.
*/ */
static inline void spi_set_dummy_bits(uint8_t bus, uint8_t bits,bool pos) static inline void spi_set_dummy_bits(uint8_t bus, uint8_t bits, bool pos)
{ {
if(!bits) return ; if(!bits) return ;
if(pos) { SPI(bus).USER0 |= SPI_USER0_MISO; } // Dummy bit will be between Dout and Din data if set if(pos) { SPI(bus).USER0 |= SPI_USER0_MISO; } // Dummy bit will be between Dout and Din data if set