Skip to content

Commit

Permalink
Preparing for new versions of AVR
Browse files Browse the repository at this point in the history
  • Loading branch information
dberenguer committed Jul 30, 2015
1 parent 1f5d340 commit 4a7ab89
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cores/panstamp/simplespi.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@

#else

#define SPI_SS 10 // PB2 = SPI_SS
#define SPI_MOSI 11 // PB3 = MOSI
#define SPI_MISO 12 // PB4 = MISO
#define SPI_SCK 13 // PB5 = SCK
#define GDO0 2 // PD2 = INT0
#define SPI_SS CC1101_SPI_SS // PB2 = SPI_SS
#define SPI_MOSI MOSI // PB3 = MOSI
#define SPI_MISO MISO // PB4 = MISO
#define SPI_SCK SCK // PB5 = SCK
#define GDO0 CC1101_GDO0 // PD2 = INT0

#define PORT_SPI_MISO PINB
#define BIT_SPI_MISO 4
Expand Down
4 changes: 4 additions & 0 deletions variants/panstamp/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@

#include <avr/pgmspace.h>

// SPI CC1101 interface
#define CC1101_SPI_SS 10 // PB2 = SPI_SS
#define CC1101_GDO0 2 // PD2 = INT0

#define NUM_DIGITAL_PINS 20
#define NUM_ANALOG_INPUTS 6
#define analogInputToDigitalPin(p) ((p < 6) ? (p) + 14 : -1)
Expand Down

0 comments on commit 4a7ab89

Please sign in to comment.