cub-uanic / tmk_keyboard

keyboard controller firmware for Atmel AVR USB family
158 stars 157 forks source link

Allow keyboard to wake computer from sleep #23

Open DDRBoxman opened 9 years ago

DDRBoxman commented 9 years ago

Pull request for @tulth 's diff file in issue #21

squarefrog commented 8 years ago

Tried this on my fork, works well with OS X! :+1:

wobbol commented 8 years ago

This is a hack. Upstream(tmk) would not be a smart guy to merge this.

A cursory glance at the LUFA library docs tells me that USB_DeviceState holds one of enum USB_Device_States_t of which DEVICE_STATE_Configured is a member.

DEVICE_STATE_Configured roughly means the device has been enumerated and is ready.

In english I read power_down(uinit8_t) as:

I do not understand this logic. If anyone has leads on this I would be gad to hear them.