Skip to content

Commit 87d70e4

Browse files
committed
start defining some wifi pads
1 parent 74fc71a commit 87d70e4

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

variants/pyportal_m4/variant.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ const PinDescription g_APinDescription[]=
113113
{ PORTA, 24, PIO_COM , PIN_ATTR_NONE , No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE }, // USB D-
114114
{ PORTA, 25, PIO_COM , PIN_ATTR_NONE , No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_NONE }, // USB D+
115115

116-
// 50..51 TFT alt WR lines for testing
117-
{ PORTB, 17, PIO_DIGITAL , PIN_ATTR_PWM_E , No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_1 }, // TFT_WR3, CCL/OUT[3]
116+
// 50..51
117+
{ PORTB, 17, PIO_DIGITAL , PIN_ATTR_PWM_E , No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_1 }, // ESP RTS
118118
{ PORTB, 23, PIO_DIGITAL , PIN_ATTR_PWM_E , No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_7 }, // TFT_WR4, CCL/OUT[0]
119119

120120
} ;

variants/pyportal_m4/variant.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,21 @@ static const uint8_t DAC0 = PIN_DAC0;
123123
#define PIN_ATN (39ul) // ???
124124
static const uint8_t ATN = PIN_ATN;
125125

126+
/* WiFi interfaces */
127+
#define SerialNina Serial1
128+
#define NINA_GPIO0 6
129+
#define NINA_RESETN 7
130+
126131
/*
127132
* Serial interfaces
128133
*/
129134

130135
// Serial1
131136
#define PIN_SERIAL1_RX (0ul)
132137
#define PIN_SERIAL1_TX (1ul)
133-
#define PAD_SERIAL1_TX (UART_TX_PAD_0)
134138
#define PAD_SERIAL1_RX (SERCOM_RX_PAD_1)
139+
#define PAD_SERIAL1_TX (UART_TX_PAD_0)
140+
135141

136142
/*
137143
* SPI Interfaces

0 commit comments

Comments
 (0)