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

full UART IDF functionality (UART-ISR) in Arduino #7714

Unanswered
kendo55 asked this question in Q&A
Discussion options

Is there a way to use the full UART IDF functionality (UART-ISR) in Arduino.
As is possible e.g. in the Arduino Pico core, with full SDK functionality

You must be logged in to vote

Replies: 4 comments 4 replies

Comment options

What functionality are you missing? HardwareSerial uses the IDF, but hides a lot of the complexity. You can also get direct access to IDF functions by compiling "Arduino as IDF component", but that's difficult to build correctly.

You must be logged in to vote
0 replies
Comment options

P1: Rx- and Tx-Interrupt
P2: RTS and CTS

You must be logged in to vote
1 reply
Comment options

P1: Rx- and Tx-Interrupt

See Serial.onReceive()
#6134

P2: RTS and CTS

You are correct. I don't see that option in this repository.

Comment options

thanks for info about Serial.onReceive()

Is there an option Serial.onEndTx()
I need an Int "EndOfTx" after each char who was transmitted.

Have you an idea what we can do to realise RTS/CTS

You must be logged in to vote
3 replies
Comment options

// negative Pin value will keep it unmodified
void HardwareSerial::setPins(int8_t rxPin, int8_t txPin, int8_t ctsPin, int8_t rtsPin)
{
 if(_uart == NULL) {
 log_e("setPins() shall be called after begin() - nothing done");
 return;
 }
 uartSetPins(_uart, rxPin, txPin, ctsPin, rtsPin);
}

I haven't used RTS/CTS.

Comment options

HardwareSerial::setHwFlowCtrlMode()

Comment options

I don't see an interrupt for TX. You could: 1) set TX buffer size to 1. 2) Use void HardwareSerial::flush(bool txOnly) 3) Use size_t HardwareSerial::write(uint8_t c) to write one character at a time. Sounds inefficient.

Comment options

Thanks for the HardwareSerial::setHwFlowCtrlMode() infos.

Tx-IRQ is really needed!

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

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