1. 05 Feb, 2016 1 commit
    • Marcelo Aquino's avatar
      add static initialization for pthread mutexes · e204656c
      Marcelo Aquino authored
      The documentation says:
      "In cases where default mutex attributes are appropriate, the macro
      PTHREAD_MUTEX_INITIALIZER can be used to initialize mutexes that are
      statically allocated. The effect shall be equivalent to dynamic
      initialization by a call to pthread_mutex_init() with parameter attr
      specified as NULL, except that no error checks are performed."
      e204656c
  2. 27 Jan, 2016 1 commit
  3. 25 Jan, 2016 1 commit
  4. 23 Jan, 2016 1 commit
  5. 10 Jan, 2016 2 commits
  6. 07 Jan, 2016 10 commits
  7. 29 Dec, 2015 1 commit
  8. 28 Dec, 2015 1 commit
    • TMRh20's avatar
      Fix per #183 · 9e68f9e1
      TMRh20 authored
      - Update scanner examples to use channels 0-125
      - Update documentation indicating channels 0-125 only
      - Per datasheet radio only has 126 channels
      9e68f9e1
  9. 24 Dec, 2015 1 commit
  10. 23 Dec, 2015 2 commits
  11. 21 Dec, 2015 3 commits
    • TMRh20's avatar
      Add 'static' to void in spi.h · ed9ae08d
      TMRh20 authored
      ed9ae08d
    • TMRh20's avatar
      Fixes for last commit · a57fafe0
      TMRh20 authored
      - SPI_HAS_TRANSACTION define was not being picked up properly: add
      define to RF24_arch_config.h
      - Fix beginTransaction call using RF_SPI_SPEED instead of RF24_SPI_SPEED
      - Change beginTransaction to use SPISettings object
      -
      a57fafe0
    • TMRh20's avatar
      Minor chgs to mirror Arduino SPI transaction API · f285fde2
      TMRh20 authored
      - Bring beginTransaction inline with Arduino API
      - #define SPI_HAS_TRANSACTION in SPI.h
      - #define the spi speed on both Arduino and RPi/Linux using
      RF24_SPI_SPEED instead of different vars
      - Chg beginTransaction to use bitOrder & mode instead of CSN
      - Add delay directly to chipSelect function (helps ensure pin is active
      before beginning SPI transactions)
      
      #173
      f285fde2
  12. 20 Dec, 2015 2 commits
  13. 19 Dec, 2015 6 commits
    • TMRh20's avatar
      Update RPi call_response_int2 example · bf06db96
      TMRh20 authored
      - Fix blank response detect & remove wait
      bf06db96
    • TMRh20's avatar
      Move interrupt examples, add new int examples · 2c4d1991
      TMRh20 authored
      - Create interrupts folder for RPi examples
      - Add new examples
      - Update Makefile
      2c4d1991
    • TMRh20's avatar
      Bugfix: Deadlocks due to RPi SPI mutex code · 9a5ea80c
      TMRh20 authored
      - SPI transfern function calls transfernb function so a deadlock was
      occurring when a lock was attempted prior to the call
      - Thread should be unlocked before returning if bcm2835_init() fails
      9a5ea80c
    • TMRh20's avatar
      Mutex handling for interrupts on RPi · 243e25f2
      TMRh20 authored
      - Create separate mutex for SPI vs User data handling
      Problems:
      A: Memory/Data conflicts became apparent after time without thread-safe
      queues
      B: Without implementing locking at the SPI level, even simple code
      examples (rx_transfer.cpp) would hang if a write was done out of sync
      with reads
      
      Solutions:
      A: Keep initial locking mechanism for users
      B: Implement separate automatic mutex and locking mechanism for SPI
      
      #172 #173
      243e25f2
    • TMRh20's avatar
      Add mutex locking to SPI functions for RPi · 715edc5e
      TMRh20 authored
      per #172 #173
      
      - Add mutex locking to SPI for RPi interrupt usage
      - Leave rfInterrupts() rfNoInterrupts() functions for testing purposes
      715edc5e
    • TMRh20's avatar
      Merge pull request #173 from Oitzu/master · a381194b
      TMRh20 authored
      Using interrupts on RPi
      a381194b
  14. 17 Dec, 2015 3 commits
  15. 14 Dec, 2015 1 commit
  16. 13 Dec, 2015 2 commits
  17. 11 Dec, 2015 1 commit
  18. 26 Nov, 2015 1 commit