Interrupt on Serial (USB) receive

Status
Not open for further replies.

Siridakis

Member
Hello there.

I have a Teensy 3.6 and I'd like to know if there's any way to prompt an interrupt everytime I receive something through the Serial (USB). I've been searching about it but only seem to find an interrupt for USART (Serial1, Serial2, ...).
 
What is the larger context? What do you want to do in the interrupt handler?

Locate "serialEvent" in the Teensyduino source code. You'll find it in <arduino-ide-app>/Contents/Java/hardware/teensy/avr/cores/teensy3/usb_serial.h. Would using serialEvent be sufficient for your needs?
 
Status
Not open for further replies.
Back
Top