diff Output/pjrcUSB/arm/usb_keyboard.c @ 326:05a09eda53fb

Inital Remote Wakeup Support Not working yet...
author Rowan Decker <Smasher816@gmail.com>
date Sun, 08 Mar 2015 22:35:55 -0700
parents e946656696f2
children 9ac304aa1ab5
line wrap: on
line diff
--- a/Output/pjrcUSB/arm/usb_keyboard.c	Sun Mar 08 17:33:29 2015 -0700
+++ b/Output/pjrcUSB/arm/usb_keyboard.c	Sun Mar 08 22:35:55 2015 -0700
@@ -76,6 +76,13 @@
 	uint32_t wait_count = 0;
 	usb_packet_t *tx_packet;
 
+	if (remote_wakeup_enabled) {
+		USB0_CTL |= USB_CTL_RESUME;
+		_delay_ms(5); //wait 1 to 15ms
+		USB0_CTL &= ~USB_CTL_RESUME;
+		_delay_ms(5);
+	}
+
 	// Wait till ready
 	while ( 1 )
 	{