File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 50
50
51
51
#else
52
52
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
58
58
59
59
#define PORT_SPI_MISO PINB
60
60
#define BIT_SPI_MISO 4
Original file line number Diff line number Diff line change 33
33
34
34
#include <avr/pgmspace.h>
35
35
36
+ // SPI CC1101 interface
37
+ #define CC1101_SPI_SS 10 // PB2 = SPI_SS
38
+ #define CC1101_GDO0 2 // PD2 = INT0
39
+
36
40
#define NUM_DIGITAL_PINS 20
37
41
#define NUM_ANALOG_INPUTS 6
38
42
#define analogInputToDigitalPin (p ) ((p < 6) ? (p) + 14 : -1)
You can’t perform that action at this time.
0 commit comments