Skip to content

Commit cb7df72

Browse files
committed
Adapts RFM69 to be used with SAMD
1 parent ce89e8e commit cb7df72

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

variants/mysensors_gw/variant.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,10 @@ static const uint8_t ATN = PIN_ATN;
142142
#define USR_SPI_MISO (48u)
143143
#define USR_SPI_MOSI (47u)
144144
#define USR_SPI_SCK (49u)
145-
/*
145+
146+
146147
static const uint8_t SS = PIN_A2 ; // SERCOM4 last PAD is present on A2 but HW SS isn't used. Set here only for reference.
147-
static const uint8_t MOSI = PIN_SPI_MOSI ;
148+
/*static const uint8_t MOSI = PIN_SPI_MOSI ;
148149
static const uint8_t MISO = PIN_SPI_MISO ;
149150
static const uint8_t SCK = PIN_SPI_SCK ;
150151
*/
@@ -194,6 +195,9 @@ static const uint8_t SCK = PIN_SPI_SCK ;
194195
#define MY_HW_ERR_LED_PIN LED_RED
195196
#define MY_HW_RX_LED_PIN LED_YELLOW
196197
#define MY_HW_TX_LED_PIN LED_GREEN
198+
#define MY_RF69_SPI_CS 22
199+
#define MY_RF69_IRQ_PIN 2
200+
#define MY_RF69_IRQ_NUM 3
197201

198202
/*----------------------------------------------------------------------------
199203
* Arduino objects - C++ only

0 commit comments

Comments
 (0)