mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-07-12 09:47:54 +00:00
Rename CS pin
This commit is contained in:
parent
fd57eff99b
commit
026c40384e
@ -206,7 +206,7 @@ void setup()
|
|||||||
//select the counter clock.
|
//select the counter clock.
|
||||||
start_timer2();//0.5us
|
start_timer2();//0.5us
|
||||||
#else
|
#else
|
||||||
DDRD = (1<<CS_pin)|(1<<SDI_pin)|(1<<SCLK_pin)|(1<<CS_pin)|(1<< CC25_CSN_pin);
|
DDRD = (1<<CS_pin)|(1<<SDI_pin)|(1<<SCLK_pin)|(1<<A7105_CS_pin)|(1<< CC25_CSN_pin);
|
||||||
DDRC = (1<<CTRL1_pin)|(1<<CTRL2_pin); //output
|
DDRC = (1<<CTRL1_pin)|(1<<CTRL2_pin); //output
|
||||||
DDRC |= (1<<CYRF_RST_pin);//RST pin A5(C5) CYRF output
|
DDRC |= (1<<CYRF_RST_pin);//RST pin A5(C5) CYRF output
|
||||||
DDRB = _BV(0)|_BV(1);
|
DDRB = _BV(0)|_BV(1);
|
||||||
@ -221,7 +221,7 @@ void setup()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Set Chip selects
|
// Set Chip selects
|
||||||
CS_on;
|
A7105_CS_on;
|
||||||
CC25_CSN_on;
|
CC25_CSN_on;
|
||||||
NRF_CSN_on;
|
NRF_CSN_on;
|
||||||
CYRF_CSN_on;
|
CYRF_CSN_on;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user