Kristian Sloth Lauszus
|
ac75d0ca8b
|
Merge commit 'b68c6bed184f5da12f00c173e23b07c4428be661' into dev
|
2018-04-08 20:28:02 +02:00 |
|
Kristian Sloth Lauszus
|
10beb751ac
|
Fixed compiler warning in KSDK
See: https://github.com/UltimateHackingKeyboard/KSDK_2.0_MK22FN512xxx12/pull/2
|
2018-04-08 20:04:25 +02:00 |
|
Kristian Sloth Lauszus
|
e0528e1714
|
Fix linker error on newer compilers by just declaring the two usb sections after the .bss section
See: https://community.nxp.com/thread/449264
|
2018-04-08 19:52:03 +02:00 |
|
Kristian Sloth Lauszus
|
ab24e78a5b
|
Wake up the keyboard if there is any activity on the bus
This fixes: https://github.com/UltimateHackingKeyboard/firmware/pull/97#issuecomment-372091423
|
2018-03-11 20:05:10 +01:00 |
|
Kristian Sloth Lauszus
|
c10d6440ce
|
Merge branch 'dev' into sleep
# Conflicts:
# right/src/timer.c
# right/src/timer.h
# right/src/usb_report_updater.c
|
2018-03-11 19:34:21 +01:00 |
|
Kristian Sloth Lauszus
|
c109a9e202
|
The layer keys can now also wake up the computer
|
2018-03-11 19:29:24 +01:00 |
|
Kristian Sloth Lauszus
|
5d59540c51
|
Updated submodule after https://github.com/UltimateHackingKeyboard/KSDK_2.0_MK22FN512xxx12/pull/1 was merged
|
2018-03-11 19:26:04 +01:00 |
|
Kristian Sloth Lauszus
|
e12e219b4e
|
Various fixes and improvements (#96)
* Global variables shared between an interrupt and the main code should be volatile
See: https://www.embedded.com/electronics-blogs/beginner-s-corner/4023801/Introduction-to-the-Volatile-Keyword
* There is no reason to change the active report if it has not changed
* Declare local functions and variables static
This both helps the compiler and the programmer
|
2018-03-11 19:19:15 +01:00 |
|
Kristian Sloth Lauszus
|
3ab2ac18fc
|
The keyboard can now wake up the computer from sleep
|
2018-03-11 19:00:46 +01:00 |
|
Kristian Sloth Lauszus
|
6e2eca7829
|
Changed CurrentTime to a static variable and added function for getting the current time instead
Global variables are really bad practice and should be avoided
|
2018-03-11 17:59:23 +01:00 |
|
Kristian Sloth Lauszus
|
8f4fc1da8e
|
Merge branch 'fixes' into sleep
|
2018-03-11 17:56:07 +01:00 |
|
Kristian Sloth Lauszus
|
5de0e5ac60
|
Turn LEDs, backlight and display off when sleeping
Fixes #83
|
2018-03-11 05:26:51 +01:00 |
|
Kristian Sloth Lauszus
|
13a718f871
|
Declare local functions and variables static
This both helps the compiler and the programmer
|
2018-03-11 02:38:23 +01:00 |
|
Kristian Sloth Lauszus
|
15d09552a4
|
There is no reason to change the active report if it has not changed
|
2018-03-11 02:37:59 +01:00 |
|
Kristian Sloth Lauszus
|
0b100feb32
|
Global variables shared between an interrupt and the main code should be volatile
See: https://www.embedded.com/electronics-blogs/beginner-s-corner/4023801/Introduction-to-the-Volatile-Keyword
|
2018-03-11 02:37:59 +01:00 |
|
Kristian Sloth Lauszus
|
1742437f8b
|
Replace HID_KEYBOARD_SC_MENU scancode with HID_KEYBOARD_SC_APPLICATION (#95)
Fixes https://github.com/UltimateHackingKeyboard/agent/issues/563
|
2018-03-11 02:31:40 +01:00 |
|
Kristian Sloth Lauszus
|
33bbf44199
|
Fix system keyboard descriptor, so it is byte-aligned (#93)
I have verified that the descriptor shows up correctly on Windows 7 and macOS
The descriptor is based on the two following pages: https://github.com/Microsoft/Windows-driver-samples/tree/master/hid/hidusbfx2 and https://docs.microsoft.com/en-us/windows-hardware/drivers/gpiobtn/hid-button-report-descriptors
Fixes #76
|
2018-02-14 00:27:53 +01:00 |
|
Kristian Sloth Lauszus
|
fa8c9dc907
|
Logical maximum is wrongly assumed to be an unsigned integer, thus 0xFF is interpreted as -1 and not 255 (#92)
Simply setting the number of bits to 16 solves this
|
2018-02-12 04:51:59 +01:00 |
|
Kristian Sloth Lauszus
|
1af28a79db
|
Detect Caps Lock state and set the LED accordingly (#91)
Fixes #65
|
2018-02-11 12:45:46 +01:00 |
|