mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-07-06 05:47:52 +00:00
Chip select based on pin definition
This commit is contained in:
parent
bf5598515e
commit
11650450c8
@ -235,17 +235,17 @@ void setup()
|
|||||||
// outputs
|
// outputs
|
||||||
SDI_output;
|
SDI_output;
|
||||||
SCLK_output;
|
SCLK_output;
|
||||||
#ifdef A7105_INSTALLED
|
#ifdef A7105_CSN_pin
|
||||||
A7105_CSN_output;
|
A7105_CSN_output;
|
||||||
#endif
|
#endif
|
||||||
#ifdef CC2500_INSTALLED
|
#ifdef CC25_CSN_pin
|
||||||
CC25_CSN_output;
|
CC25_CSN_output;
|
||||||
#endif
|
#endif
|
||||||
#ifdef CYRF6936_INSTALLED
|
#ifdef CYRF_CSN_pin
|
||||||
CYRF_RST_output;
|
CYRF_RST_output;
|
||||||
CYRF_CSN_output;
|
CYRF_CSN_output;
|
||||||
#endif
|
#endif
|
||||||
#ifdef NRF24L01_INSTALLED
|
#ifdef NRF_CSN_pin
|
||||||
NRF_CSN_output;
|
NRF_CSN_output;
|
||||||
#endif
|
#endif
|
||||||
PE1_output;
|
PE1_output;
|
||||||
@ -268,16 +268,16 @@ void setup()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Set Chip selects
|
// Set Chip selects
|
||||||
#ifdef A7105_INSTALLED
|
#ifdef A7105_CSN_pin
|
||||||
A7105_CSN_on;
|
A7105_CSN_on;
|
||||||
#endif
|
#endif
|
||||||
#ifdef CC2500_INSTALLED
|
#ifdef CC25_CSN_pin
|
||||||
CC25_CSN_on;
|
CC25_CSN_on;
|
||||||
#endif
|
#endif
|
||||||
#ifdef CYRF6936_INSTALLED
|
#ifdef CYRF_CSN_pin
|
||||||
CYRF_CSN_on;
|
CYRF_CSN_on;
|
||||||
#endif
|
#endif
|
||||||
#ifdef NRF24L01_INSTALLED
|
#ifdef NRF_CSN_pin
|
||||||
NRF_CSN_on;
|
NRF_CSN_on;
|
||||||
#endif
|
#endif
|
||||||
// Set SPI lines
|
// Set SPI lines
|
||||||
|
Loading…
x
Reference in New Issue
Block a user