Skip to content
  1. Aug 08, 2016
    • Gregory Nutt's avatar
      STM32 and EFM32 SPI drivers adopted an incompatible conventions somewhere... · 7d4cb73b
      Gregory Nutt authored
      STM32 and EFM32 SPI drivers adopted an incompatible conventions somewhere along the line.  The set the number of bits to negative when calling SPI_SETBITS which had the magical side-effect of setting LSB first order of bit transmission.  This is not only a hokey way to pass control information but is supported by no other SPI drivers.
      
      This change three things:  (1) It adds HWFEAT_LSBFIRST as a new H/W feature.  (2) It changes the implementations of SPI_SETBITS in the STM32 and EFM32 derivers so that negated bit numbers are simply errors and it adds the SPI_HWFEATURES method that can set the LSB bit order, and (3) It changes all calls with negative number of bits from all drivers: The number of bits is now always positive and SPI_HWFEATUREs is called with HWFEAT_LSBFIRST to set the bit order.
      7d4cb73b
  2. Aug 07, 2016
  3. Aug 06, 2016
  4. Aug 05, 2016
  5. Aug 04, 2016
  6. Aug 03, 2016