Skip to content

Commit

Permalink
remove useless Due config file #752
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Mar 23, 2021
1 parent 4fbf77b commit 9adccec
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 43 deletions.
15 changes: 8 additions & 7 deletions RF24.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,15 @@ class RF24 {
*
* See [Related Pages](pages.html) for device specific information <br>
*
* @note Users can specify default SPI speed by modifying `#define RF24_SPI_SPEED` in RF24_config.h <br>
* For Arduino, SPI speed will only be properly configured this way on devices supporting SPI TRANSACTIONS <br>
* Older/Unsupported Arduino devices will use a default clock divider & settings configuration <br>
* Linux: The old way of setting SPI speeds using BCM2835 driver enums has been removed <br>
*
* @param _cepin The pin attached to Chip Enable on the RF module
* @param _cspin The pin attached to Chip Select
* @param _spispeed The SPI speed in Hz ie: 1000000 == 1Mhz
* @param _cspin The pin attached to Chip Select (often labeled CSN) on the radio module.
* <br><br>For the Arduino Due board, the [Arduino Due extended SPI feature](https://www.arduino.cc/en/Reference/DueExtendedSPI)
* is not supported. This means that the Due's pins 4, 10, or 52 are not mandated options (can use any digital output pin) for the radio's CSN pin.
* @param _spispeed The SPI speed in Hz ie: 1000000 == 1Mhz <br><br>Users can specify default SPI speed by modifying
* `#define RF24_SPI_SPEED` in RF24_config.h
* - For Arduino, the default SPI speed will only be properly configured this way on devices supporting SPI TRANSACTIONS
* - Older/Unsupported Arduino devices will use a default clock divider & settings configuration
* - For Linux: The old way of setting SPI speeds using BCM2835 driver enums has been removed as of v1.3.7
*/
RF24(uint16_t _cepin, uint16_t _cspin, uint32_t _spispeed = RF24_SPI_SPEED);

Expand Down
9 changes: 7 additions & 2 deletions RF24_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
/*
Copyright (C)
2011 J. Coliz <maniacbug@ymail.com>
2015-2019 TMRh20
2015-2019 TMRh20
2015 spaniakos <spaniakos@gmail.com>
2015 nerdralph
2015 zador-blood-stained
2016 akatran
2017-2019 Avamander <avamander@gmail.com>
2017-2019 Avamander <avamander@gmail.com>
2019 IkpeohaGodson
2021 2bndy5
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -91,6 +92,10 @@
#define _SPI SoftSPI<SOFT_SPI_MISO_PIN, SOFT_SPI_MOSI_PIN, SOFT_SPI_SCK_PIN, SPI_MODE>
#define RF24_SPI_PTR

#elif defined (ARDUINO_SAM_DUE)
#include <SPI.h>
#define _SPI SPI

#else // !defined (SPI_UART) && !defined (SOFTSPI)
#include <SPI.h>
#define _SPI SPIClass
Expand Down
34 changes: 0 additions & 34 deletions utility/Due/RF24_arch_config.h

This file was deleted.

0 comments on commit 9adccec

Please sign in to comment.