Permalink
Commits on Sep 6, 2016
  1. Merge pull request #18 from pelwell/master

    Fix CS handling, MFRC522 works again
    committed on GitHub Sep 6, 2016
  2. Fix CS handling, MFRC522 works again

    Normally CS is asserted between messages then deasserted after the final
    one. Setting cs_change to 1 deasserts CS between messages, but if set on
    the final message it causes CS to remain asserted until the next transfer.
    Counterintuitively, in the single message case, setting cs_change to 1
    prevents CS from changing, while setting it to 0 allows it to change after
    each message/transfer.
    
    Some device, like the MFRC522 rely on a change of CS for synchronisation,
    and you wouldn't want to leave multiple devices selected simultaneously,
    so cs_change should be zero.
    
    This issue was previously masked by the use of the BCM2835 hardware chip
    selects, which don't allow CS to remain asserted between transfers.
    
    See: raspberrypi/linux#1547
         #17
    pelwell committed on GitHub Sep 6, 2016
Commits on Oct 11, 2015
  1. Merge pull request #13 from msedv/patch-2

    Test script for multi-SPI
    committed Oct 11, 2015
  2. Merge pull request #12 from msedv/patch-1

    Handling multiple SPI devices
    committed Oct 11, 2015
Commits on Oct 10, 2015
  1. Test script for multi-SPI

    Revised version of the test script with handling return value fd
    msedv committed Oct 10, 2015
  2. Rename spi.c to spi_multi.c

    My version of spi.c in which openSPI returns the file descriptor which then must be given to transfer and closeSPI. A little bit of a hack but works like a charm.
    
    Problem: calls not compatible - additional parameter "fd" needed.
    msedv committed Oct 10, 2015
Commits on Sep 21, 2015
  1. Merge pull request #10 from franckinux/master

    make the extension compatible with Python3
    committed Sep 21, 2015
Commits on Oct 31, 2013
  1. Merge pull request #7 from blark/master

    Fixed bug that prevented SPI transmissions larger than 255 bytes.
    committed Oct 31, 2013
  2. Fixed bug that prevented SPI transmissions larger than 255 bytes.

    Fixed a bug that prevented SPI transmissions larger than 255 bytes. The i variable was uint8_t, changing it to a uint16_t solves the issue.
    blark committed Oct 31, 2013
Commits on Jul 18, 2013
  1. Merge pull request #5 from EricPobot/master

    added commonly expected meta-data
    committed Jul 18, 2013
Commits on Apr 16, 2013
  1. Merge pull request #3 from mhord/master

    Fixed CS remaining low after transfer complete
    committed Apr 16, 2013
Commits on Mar 28, 2013
  1. Fixed CS remains low after xfer

    Added cs_change = 1 to the transfer structure-
    this tells the SPI peripheral to release CS after
    transfer is complete, which is good practice to
    prevent spurious writes to the slave.
    Jingfeng Liu committed Mar 28, 2013
Commits on Mar 25, 2013
  1. Merge pull request #2 from fake-name/master

    Minor changes, and a fix to the license
    committed Mar 25, 2013
Commits on Mar 23, 2013
  1. Original source (spi.c) was GPL licensed. That means that this has to…

    … *also* be GPL licensed, converting to CC-BY-SA is of dubious legal validity.
    
    See http://wiki.creativecommons.org/GPL_compatibility_use_cases
    As such, I'm updating the readme.
    fake-name committed Mar 23, 2013
  2. Minor patching, mostly switching a printf to a pabort, so it correctl…

    …y exits if you pass bad parameters. Also, added a newline to one of the debug statements.
    fake-name committed Mar 23, 2013
Commits on Mar 17, 2013
  1. Merge pull request #1 from fake-name/master

    Lots of code cleanup, some enhancements, commenting.
    committed Mar 17, 2013
  2. Lots of cleanup for the SPI library, proper variable-length transacti…

    …on support, etc..
    
    Removed build directories (really?)
    fake-name committed Mar 17, 2013
Commits on Jan 17, 2013
Commits on Jan 7, 2013
Commits on Jan 6, 2013
  1. Create README.md

    committed Jan 6, 2013
Commits on Jan 5, 2013
  1. a sample Arduino sketch

    lthiery committed Jan 5, 2013
  2. First upload

    committed Jan 5, 2013