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
026c40384e
commit
d13817c2a3
@ -182,7 +182,7 @@ struct PPM_Parameters
|
||||
#define SDI_pin 5 //D5 = PD5
|
||||
#endif
|
||||
#define SCLK_pin 4 //D4 = PD4
|
||||
#define CS_pin 2 //D2 = PD2
|
||||
#define A7105_CS_pin 2 //D2 = PD2
|
||||
#define SDO_pin 6 //D6 = PD6
|
||||
#define CC25_CSN_pin 7 //D7 = PD7
|
||||
#define NRF_CSN_pin 0 //D8 = PB0
|
||||
@ -203,8 +203,8 @@ struct PPM_Parameters
|
||||
#endif
|
||||
//
|
||||
#ifdef XMEGA
|
||||
#define CS_on PORTD.OUTSET = _BV(4) //D4
|
||||
#define CS_off PORTD.OUTCLR = _BV(4) //D4
|
||||
#define A7105_CS_on PORTD.OUTSET = _BV(4) //D4
|
||||
#define A7105_CS_off PORTD.OUTCLR = _BV(4) //D4
|
||||
#else
|
||||
#define CS_on PORTD |= _BV(2) //D2
|
||||
#define CS_off PORTD &= ~_BV(2) //D2
|
||||
|
Loading…
x
Reference in New Issue
Block a user