From afc3148e2341e4be982cdb628543e30923cfdaf7 Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 26 Mar 2013 16:55:45 +0900 Subject: Add supsend and wakeup to pjrc stack --- protocol/pjrc/usb.c | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'protocol/pjrc/usb.c') diff --git a/protocol/pjrc/usb.c b/protocol/pjrc/usb.c index f4c6f81f5c..a9fbc4638e 100644 --- a/protocol/pjrc/usb.c +++ b/protocol/pjrc/usb.c @@ -33,6 +33,8 @@ #include "usb_extra.h" #include "print.h" #include "util.h" +#include "sleep_led.h" +#include "suspend.h" /************************************************************************** @@ -595,7 +597,8 @@ void usb_init(void) USB_CONFIG(); // start USB clock UDCON = 0; // enable attach resistor usb_configuration = 0; - UDIEN = (1<