Skip to content

Commit 4a7ab89

Browse files
committed
Preparing for new versions of AVR
1 parent 1f5d340 commit 4a7ab89

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

cores/panstamp/simplespi.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@
5050

5151
#else
5252

53-
#define SPI_SS 10 // PB2 = SPI_SS
54-
#define SPI_MOSI 11 // PB3 = MOSI
55-
#define SPI_MISO 12 // PB4 = MISO
56-
#define SPI_SCK 13 // PB5 = SCK
57-
#define GDO0 2 // PD2 = INT0
53+
#define SPI_SS CC1101_SPI_SS // PB2 = SPI_SS
54+
#define SPI_MOSI MOSI // PB3 = MOSI
55+
#define SPI_MISO MISO // PB4 = MISO
56+
#define SPI_SCK SCK // PB5 = SCK
57+
#define GDO0 CC1101_GDO0 // PD2 = INT0
5858

5959
#define PORT_SPI_MISO PINB
6060
#define BIT_SPI_MISO 4

variants/panstamp/pins_arduino.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333

3434
#include <avr/pgmspace.h>
3535

36+
// SPI CC1101 interface
37+
#define CC1101_SPI_SS 10 // PB2 = SPI_SS
38+
#define CC1101_GDO0 2 // PD2 = INT0
39+
3640
#define NUM_DIGITAL_PINS 20
3741
#define NUM_ANALOG_INPUTS 6
3842
#define analogInputToDigitalPin(p) ((p < 6) ? (p) + 14 : -1)

0 commit comments

Comments
 (0)