Mercurial > louis > kiibohd-controller
comparison 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 |
comparison
equal
deleted
inserted
replaced
306:f158dfa0fa85 | 326:05a09eda53fb |
---|---|
73 // send the contents of keyboard_keys and keyboard_modifier_keys | 73 // send the contents of keyboard_keys and keyboard_modifier_keys |
74 void usb_keyboard_send() | 74 void usb_keyboard_send() |
75 { | 75 { |
76 uint32_t wait_count = 0; | 76 uint32_t wait_count = 0; |
77 usb_packet_t *tx_packet; | 77 usb_packet_t *tx_packet; |
78 | |
79 if (remote_wakeup_enabled) { | |
80 USB0_CTL |= USB_CTL_RESUME; | |
81 _delay_ms(5); //wait 1 to 15ms | |
82 USB0_CTL &= ~USB_CTL_RESUME; | |
83 _delay_ms(5); | |
84 } | |
78 | 85 |
79 // Wait till ready | 86 // Wait till ready |
80 while ( 1 ) | 87 while ( 1 ) |
81 { | 88 { |
82 if ( !usb_configuration ) | 89 if ( !usb_configuration ) |