Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 28cbc3c

Browse files
committed
Add defines for Nina module
1 parent cdb7571 commit 28cbc3c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

variants/uno2018/pins_arduino.h

+11
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,17 @@ static const uint8_t A5 = PIN_A5;
123123
static const uint8_t A6 = PIN_A6;
124124
static const uint8_t A7 = PIN_A7;
125125

126+
#define PINS_COUNT (38u)
127+
128+
//NINA
129+
#define NINA_GPIO0 (28u)
130+
#define NINA_RESETN (29u)
131+
#define NINA_ACK (36u)
132+
133+
#define SPIWIFI_SS (35u)
134+
#define SPIWIFI_ACK NINA_ACK
135+
#define SPIWIFI_RESET (~NINA_RESETN)
136+
126137
#ifdef ARDUINO_MAIN
127138

128139
// On the Arduino board, digital pins are also used

variants/uno2018/variant.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ FORCE_INLINE bool isDoubleBondedActive(uint8_t pin) {
8282
/* Check if TWI is operating on double bonded pin (Master Enable is high
8383
in both Master and Slave mode for bus error detection, so this can
8484
indicate an active state for Wire) */
85-
if(((pin == PIN_A4) || (pin == PIN_A5)) && (TWI0.MCTRLA & TWI_ENABLE_bm)) return true;
85+
//if(((pin == PIN_A4) || (pin == PIN_A5)) && (TWI0.MCTRLA & TWI_ENABLE_bm)) return true;
8686

8787
/* Special check for SPI_SS double bonded pin -- no action if SPI is active
8888
(Using SPI Enable bit as indicator of SPI activity) */

0 commit comments

Comments
 (0)