Questions tagged [inline]

2 questions
4
votes
1 answer

What is the logic behind Arduino inlining `HardwareSerial::_rx_complete_irq()` for receiving serial data (but NOT `_tx_udr_empty_irq()`)?

Q: What is the logic behind Arduino inlining HardwareSerial::_rx_complete_irq() for receiving serial data (but NOT _tx_udr_empty_irq()), and when is it advisable? From the bottom of the HardwareSerial class in HardwareSerial.h: // Interrupt handlers…
Gabriel Staples
  • 1,385
  • 11
  • 27
1
vote
3 answers

Is it necessary to set a function with always_inline attribution when the function would work maybe once?

I'm going through a library for the ILI9488 running by SPI and want to copy this library in my version. In the beginning of the source file, there's a guard for the SPI_HAS_TRANSACTION that if the library would run in Arduino compiler then it would…
R1S8K
  • 283
  • 3
  • 21