Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4b24b9d

Browse files
sandeepmistryfacchinm
authored andcommitted
Disable h/w flow control on UART, set RTS to LOW on init
It’s not supported by the SARA-R410M
1 parent 249cd86 commit 4b24b9d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎variants/mkrnbiot1500/variant.cpp‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ void initVariant() {
233233
// put SARA modem in reset on start to conserve power if it's not used
234234
pinMode(SARA_RESETN, OUTPUT);
235235
digitalWrite(SARA_RESETN, HIGH);
236+
237+
// set RTS to LOW
238+
pinMode(SARA_RTS, OUTPUT);
239+
digitalWrite(SARA_RTS, LOW);
236240
}
237241

238242
// Serial1
@@ -244,7 +248,7 @@ void SERCOM5_Handler()
244248
}
245249

246250
// SerialSARA
247-
Uart Serial2(&sercom2, PIN_SERIAL2_RX, PIN_SERIAL2_TX, PAD_SERIAL2_RX, PAD_SERIAL2_TX, PIN_SERIAL2_RTS, PIN_SERIAL2_CTS);
251+
Uart Serial2(&sercom2, PIN_SERIAL2_RX, PIN_SERIAL2_TX, PAD_SERIAL2_RX, PAD_SERIAL2_TX);
248252

249253
void SERCOM2_Handler()
250254
{

‎variants/mkrnbiot1500/variant.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ extern Uart Serial1;
162162
extern Uart Serial2;
163163
#define PIN_SERIAL2_RX (27ul)
164164
#define PIN_SERIAL2_TX (26ul)
165-
#define PAD_SERIAL2_TX (UART_TX_RTS_CTS_PAD_0_2_3)
165+
#define PAD_SERIAL2_TX (UART_TX_PAD_0)
166166
#define PAD_SERIAL2_RX (SERCOM_RX_PAD_1)
167167
#define PIN_SERIAL2_RTS (28u)
168168
#define PIN_SERIAL2_CTS (29u)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /