Arduino M0, interrupt, serialUSB()

Hello
I`m just testing the Arduino M0 board. I have two inquiries.

  1. Does SerialUSB() also have an interrupt vector? As follows "serialEvent()"

  2. Where can I find the BootCode of the Arduino M0 board?

Please, feedback .... Thank you.

serialEvent is not an interrupt. it is a code> if (SerialUSB.available()) serialEvent(); <code just after loop()

the bootloader’s source is installed with the boards package in ‘arduino15’ folder located in user’s home folder (different location on different OS)

packages/arduino/hardware/samd/1.8.4/bootloaders/mzero/Bootloader_D21/src

Thank you for answers.

When using the serialUSB() object, is there a similar function that has the same functionality as the "serialEvent()" function?

arthurmoon:
Thank you for answers.

When using the serialUSB() object, is there a similar function that has the same functionality as the "serialEvent()" function?

I don't know. forget serialEvent. it has no value. read again the first part of my previous comment