mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-07-03 12:07:52 +00:00
Fix avr compiler warning
This commit is contained in:
parent
d279ef7490
commit
cdcaa70235
@ -174,7 +174,7 @@ struct PPM_Parameters
|
|||||||
#define SDI_pin 5 //D5 = PD5
|
#define SDI_pin 5 //D5 = PD5
|
||||||
#endif
|
#endif
|
||||||
#define SCLK_pin 4 //D4 = PD4
|
#define SCLK_pin 4 //D4 = PD4
|
||||||
#define A7105_CS_pin 2 //D2 = PD2
|
#define CS_pin 2 //D2 = PD2
|
||||||
#define SDO_pin 6 //D6 = PD6
|
#define SDO_pin 6 //D6 = PD6
|
||||||
#define CC25_CSN_pin 7 //D7 = PD7
|
#define CC25_CSN_pin 7 //D7 = PD7
|
||||||
#define NRF_CSN_pin 0 //D8 = PB0
|
#define NRF_CSN_pin 0 //D8 = PB0
|
||||||
@ -195,11 +195,11 @@ struct PPM_Parameters
|
|||||||
#endif
|
#endif
|
||||||
//
|
//
|
||||||
#ifdef XMEGA
|
#ifdef XMEGA
|
||||||
#define A7105_CS_on PORTD.OUTSET = _BV(4) //D4
|
#define CS_on PORTD.OUTSET = _BV(4) //D4
|
||||||
#define A7105_CS_off PORTD.OUTCLR = _BV(4) //D4
|
#define CS_off PORTD.OUTCLR = _BV(4) //D4
|
||||||
#else
|
#else
|
||||||
#define A7105_CS_on PORTD |= _BV(2) //D2
|
#define CS_on PORTD |= _BV(2) //D2
|
||||||
#define A7105_CS_off PORTD &= ~_BV(2) //D2
|
#define CS_off PORTD &= ~_BV(2) //D2
|
||||||
#endif
|
#endif
|
||||||
//
|
//
|
||||||
#ifdef XMEGA
|
#ifdef XMEGA
|
||||||
|
Loading…
x
Reference in New Issue
Block a user