From a9982beacf184ccdc4bf1221852c900b0809537d Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 7 Aug 2017 11:33:31 -0400 Subject: sched: Introduce sched_wake_tasks() function to wake up tasks Add function to indicate when tasks need to be run. This will allow the scheduler code to know if there are any tasks that need to be processed. Signed-off-by: Kevin O'Connor --- lib/README | 4 +++- lib/pjrc_usb_serial/usb_serial.c | 12 +++++++++-- lib/pjrc_usb_serial/usb_serial.patch | 39 +++++++++++++++++++++++++++++++++--- 3 files changed, 49 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/README b/lib/README index 90c38ede..e6bdb7fd 100644 --- a/lib/README +++ b/lib/README @@ -3,7 +3,9 @@ This directory contains external library code. The pjrc_usb_serial directory contains code from: http://www.pjrc.com/teensy/usb_serial.html version 1.7 (extracted on 20160605). It has been modified to compile -on recent versions of gcc. See usb_serial.patch for the modifications. +on recent versions of gcc, to support asynchronous notification of +incoming data, and to not use SOF interrupts. See usb_serial.patch for +the modifications. The cmsis-sam3x8e directory contains code from the Arduino project: https://www.arduino.cc/ diff --git a/lib/pjrc_usb_serial/usb_serial.c b/lib/pjrc_usb_serial/usb_serial.c index ac5bc8a2..0c2488d5 100644 --- a/lib/pjrc_usb_serial/usb_serial.c +++ b/lib/pjrc_usb_serial/usb_serial.c @@ -325,7 +325,7 @@ void usb_init(void) UDCON = 0; // enable attach resistor usb_configuration = 0; cdc_line_rtsdtr = 0; - UDIEN = (1<