Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add serialEventUSB to USART0_Handler #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions variants/arduino_due_x/variant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ USARTClass Serial3(USART3, USART3_IRQn, ID_USART3, &rx_buffer4, &tx_buffer4);
void serialEvent3() __attribute__((weak));
void serialEvent3() { }

void serialEventUSB() __attribute__((weak));
void serialEventUSB() { }

// IT handlers
void USART0_Handler(void)
{
Expand All @@ -359,6 +362,7 @@ void serialEventRun(void)
if (Serial1.available()) serialEvent1();
if (Serial2.available()) serialEvent2();
if (Serial3.available()) serialEvent3();
if (SerialUSB.available()) serialEventUSB();
}

// ----------------------------------------------------------------------------
Expand Down