ed0b51dbff
Restore the original I2c{Read,Write}() implementations to make the communication between keyboard halves fully functional again. Fixes#8.
László Monda
2016-12-09 22:24:15 +01:00
6c6afd6395
Make comments more explicit.
László Monda
2016-12-09 21:59:19 +01:00
71e0ae79d7
Merge branch 'master' of github.com:UltimateHackingKeyboard/firmware
László Monda
2016-12-09 21:44:31 +01:00
c47105afd3
Change I2cRead() and I2cWrite() to more closely resemble I2C_MasterReadBlocking() and I2C_MasterWriteBlocking() respectively. This way, we should be able to figure out the root cause of the communication error regarding the blink script more easily.
László Monda
2016-12-09 21:44:03 +01:00
a8b19750a9
Update README.md
László Monda
2016-11-20 18:30:41 +01:00
eff18c176d
Update README.md
László Monda
2016-11-20 18:26:24 +01:00
5b19c60f87
Update README.md
László Monda
2016-11-20 18:26:09 +01:00
c18d36e31b
Merge pull request #6 from xdever/modifier_mask
László Monda
2016-11-14 22:55:04 +01:00
f2c750cdf9
Refactoring
Robert Csordas
2016-11-14 22:41:39 +01:00
5cf1da0cfe
Fixes the bug of additional characters when mod key is released before the other key
Robert Csordas
2016-11-14 22:09:33 +01:00
75b87be468
Merge pull request #5 from xdever/i2c_fix
László Monda
2016-11-13 21:12:57 +01:00
1d2f35dfe9
Fix i2c hangs when disconnecting the left half.
Robert Csordas
2016-11-13 18:35:22 +01:00
dbb30ef861
Merge pull request #4 from xdever/simple_keymap
László Monda
2016-11-13 17:45:09 +01:00
93752a7347
CPU suspend for left half
Robert Csordas
2016-11-13 15:56:31 +01:00
fc434c7857
Remove keyboard scanning from USB interrupt. Fix initial blink of LEDs when initializing. Coding style fixes.
Robert Csordas
2016-11-13 15:50:49 +01:00
f2d3963b14
Remove eclipse's bullshit.
Robert Csordas
2016-11-13 11:29:02 +01:00
190d555221
Refactoring and bugfixes.
Robert Csordas
2016-11-13 11:25:29 +01:00
b3bc436bbb
Fix typo+basic power management
Robert Csordas
2016-11-12 20:31:59 +01:00
d232e774b7
Fixes+mod keys
Robert Csordas
2016-11-12 20:25:15 +01:00
6dc6c43238
Able to type.
Robert Csordas
2016-11-12 19:07:39 +01:00
907e0a352e
Merge branch 'master' of github.com:UltimateHackingKeyboard/firmware
László Monda
2016-11-10 21:05:32 +01:00
809b7bf659
Use HTTPS instead of SSH for submodules.
László Monda
2016-11-08 16:45:23 +01:00
4e456fb3f9
Update README.md
László Monda
2016-10-22 17:17:49 +02:00
05359dc320
Add back the code of the old KeyMatrix functions via ifdefs.
László Monda
2016-10-20 20:54:14 +02:00
a08bdbf124
Reverse the diodes and optimize key scanning as much as possible.
László Monda
2016-10-20 19:29:36 +02:00
f961260443
Expose ISO jumper state over USB.
László Monda
2016-10-20 00:14:01 +02:00
7a6e5523fb
Make bidirectional communication work between the keyboard halves. Make the set test LED USB command set the test LED of the left half, too.
László Monda
2016-10-19 19:39:00 +02:00
1286d9cfc3
Remove dead code.
László Monda
2016-10-18 21:46:04 +02:00
5a32ff743c
Expose the LED jumper via USB.
László Monda
2016-10-18 18:58:00 +02:00
0ed30b4591
Expose the merge sensor via USB.
László Monda
2016-10-17 23:21:37 +02:00
2d31c3e5ce
Add API for the merge sensor.
László Monda
2016-10-17 23:06:09 +02:00
cb7c4d68dd
Fix indentation.
László Monda
2016-10-17 22:54:06 +02:00
3bd2c7f18e
Extract RESET_BUTTON_IS_PRESSED
László Monda
2016-10-17 22:51:17 +02:00
ab3d8b92f0
Remove commented out code.
László Monda
2016-10-17 22:47:45 +02:00
32b5484b31
Fix TEST_LED_{ON,OFF} macros to function as they should. Enable the test LEDs of both halves by default.
László Monda
2016-10-15 00:41:37 +02:00
4929e38dce
Pull up the SDB of the left LED driver.
László Monda
2016-10-14 19:04:00 +02:00
9436be444c
Implement read EEPROM and write EEPROM USB commands.
László Monda
2016-10-12 12:51:22 +02:00
80ddf397fd
Make the left keyboard half send the state of the keys to the right half via I2C and make the right half send the relevant scancodes to the host via USB.
László Monda
2016-10-12 03:03:59 +02:00
cbe8c953a0
Remove unused variable.
László Monda
2016-10-12 00:27:58 +02:00
d65e846502
Add lots of useful comments about I2C addresses.
László Monda
2016-10-12 00:24:28 +02:00
2dd260e84b
Fix and use KeyMatrix_Scan()
László Monda
2016-10-11 21:56:24 +02:00
7d3abdffef
Don't send erroneous scancodes to the host by including delays for the pins to stabilize. Thanks @santiagogf89 for the idea!
László Monda
2016-10-11 20:47:56 +02:00
6885bf0449
Extract test LED specific code to test_led.[ch]
László Monda
2016-10-11 03:00:24 +02:00
09e6314770
Replace clock_config.[ch] with the much shorter init_clock.[ch]
László Monda
2016-10-11 02:41:29 +02:00
4771b80817
Add "shared" include path and let Eclipse make some other changes to its files.
László Monda
2016-10-11 02:23:38 +02:00
49497c1d41
Scan key matrix.
László Monda
2016-10-11 02:23:06 +02:00
fbfb744fa4
Reduce the number of false positive keystroke registrations by setting output logic right... Hopefully.
László Monda
2016-10-10 23:26:55 +02:00
c8284fcd6f
Add KeyMatrix_Scan() although don't use it yet. Send every detected scancode to the host of which there are false positives for some reason.
László Monda
2016-10-10 22:39:22 +02:00
56b8609187
Let KDS update org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR
László Monda
2016-10-10 17:39:38 +02:00
5588aecb78
Extract KeyMatrix_Init() and create related typedefs.
László Monda
2016-10-10 17:33:11 +02:00
188faacdb2
Replace the KSDK_2.0_FRDM-K22F submodule with KSDK_2.0_MK22FN512xxx12.
László Monda
2016-10-06 21:47:24 +02:00
0ca817e4b5
Let Eclipse slightly update the launch configuration.
László Monda
2016-10-06 20:35:57 +02:00
89c7f8f5d9
Set the multiplexing of the LED pin properly. Mad props to @santiagogf89 for the fix!
László Monda
2016-10-06 20:31:52 +02:00
dd7b38b38f
Remove the now unused KSDK_1.3_FRDM-KL03Z submodule.
László Monda
2016-10-06 18:12:08 +02:00
5f131eb599
Loosely port the firmware of the left keyboard half to KSDK 2.0
László Monda
2016-10-06 18:00:05 +02:00
4742a0c661
Initialize clocks where they're actually needed.
László Monda
2016-10-05 23:12:22 +02:00
4830c98d50
Initialize the I2C bus of the EEPROM. Organize related macros neatly.
László Monda
2016-10-05 21:27:49 +02:00
f0b63a6f7b
Add reset_button.c and test_led.c. Clean up init_peripherials.c
László Monda
2016-10-05 02:05:05 +02:00
5936129ebc
Remove the include directory. Add init_clock.[ch]
László Monda
2016-10-04 18:36:01 +02:00
f4f7fd72d9
Move the lufa directory one level upwards.
László Monda
2016-10-04 17:29:06 +02:00
db8f1ff691
Rename include/usb to ksdk_usb.
László Monda
2016-10-04 17:12:34 +02:00
5f1c85147b
Remove pin_mux.[ch], add init_peripherials.[ch], add reset_button.h which I forgot to add previously.
László Monda
2016-10-04 17:02:46 +02:00
0550c19cf5
Delete board.[ch]. Add reset_button.h
László Monda
2016-10-04 16:44:16 +02:00
9172493642
Rename TEST_RED_* to TEST_LED_*
László Monda
2016-10-04 16:21:19 +02:00
2bf3e033d0
Make the firmware of the left keyboard half build successfully.
László Monda
2016-10-04 01:40:33 +02:00
e2944663bf
Scan the keyboard matrix and output scan codes over USB accordingly.
László Monda
2016-10-03 23:34:38 +02:00
2ed34073fc
Add rows and columns for the right keyboard matrix.
László Monda
2016-10-03 23:03:36 +02:00
ab22637f1e
Key scanning fixed by @santiagogf89
László Monda
2016-10-01 02:32:25 +02:00
f92cf981dc
Trying to scan SW11 of the keyboard matrix.
László Monda
2016-10-01 01:06:14 +02:00
77f41c1655
Make WriteLedDriver() only send the payload to the target LED driver.
László Monda
2016-09-27 22:55:01 +02:00
b519cd412d
Implement the write LED driver protocol command.
László Monda
2016-09-27 02:03:43 +02:00
7855fa3f87
Add system properties.
László Monda
2016-09-27 01:42:28 +02:00
13a71ea826
Extract dedicated protocol handler functions per command.
László Monda
2016-09-27 00:11:26 +02:00
9e29018ff7
Move the USB protocol handler into its own file.
László Monda
2016-09-26 23:49:50 +02:00
d2b810a3cf
Explode GenericHidBuffer[2] as GenericHidInBuffer and GenericHidOutBuffer.
László Monda
2016-09-26 23:32:13 +02:00
7b3178a10a
Generalize LED driver functions by adding I2C address parameters.
László Monda
2016-09-26 21:37:29 +02:00
7b1f6a37ff
Add LED driver related macros instead of using magic numbers.
László Monda
2016-09-26 21:19:35 +02:00
36bb5fabba
Rename the toplevel include directory to shared. Add it to the project workspace. Include led_driver.h from main.c
László Monda
2016-09-26 20:36:49 +02:00
2dd9aa87b0
Name a couple of I2C related variables more intuitively.
László Monda
2016-09-26 20:33:03 +02:00
b280fde8a5
Extract LED driver related functions to led_driver.[ch]
László Monda
2016-09-26 20:28:12 +02:00
9e3d512e89
Put the files that contain the usb descriptors into the newly created usb_descriptors directory.
László Monda
2016-09-26 18:54:16 +02:00
77f956d5bb
Put usb_device_{dci,khci}.[ch] directly under the newly created usb virtual folder.
László Monda
2016-09-26 18:46:37 +02:00
8a396446a6
Unlink even more USB related redundant files.
László Monda
2016-09-26 08:57:48 +02:00
6e400246ad
Unlink redundant USB related files.
László Monda
2016-09-26 08:55:40 +02:00
11401a6448
Make less use of linked files and folders for better long-term maintainability by moving the source files under the newly created src directory and only linking that directory to the workspace.
László Monda
2016-09-26 08:45:59 +02:00
3f7c911f33
Arrange project files into groups.
László Monda
2016-09-26 07:34:14 +02:00
42c40a6cbc
Remove unused dependencies from CMakeLists.txt
László Monda
2016-09-26 07:28:47 +02:00
a72d66b0ec
Unlink file: fsl_smc.h
László Monda
2016-09-26 07:22:30 +02:00
0f3382c7e0
Remove additional linked files. This time for UART.
László Monda
2016-09-26 07:17:43 +02:00
251d27b15d
Remove unused linked files.
László Monda
2016-09-26 07:16:33 +02:00
390197e59c
Branch on a per command basis based on the first byte of the USB payload.
László Monda
2016-09-26 02:37:31 +02:00
5d21312a0c
Don't initialize OpenSDA because it's not used anymore.
László Monda
2016-09-26 02:05:06 +02:00
7f002cf2b4
Interpret 0 and 1 instead of their ASCII counterparts.
László Monda
2016-09-26 01:55:58 +02:00
962d65589c
Extract test LED macros to test_led.h
László Monda
2016-09-26 01:20:36 +02:00
c1c6301ce3
Remove unused code, mostly board macros and BOARD_InitDebugConsole()
László Monda
2016-09-26 01:00:14 +02:00
4d3d8db40f
Remove the KBOOT_2.0.0 submodule as it turns out it won't be needed.
László Monda
2016-09-26 00:37:04 +02:00
b0dcb52966
Add KBOOT 2.0.0 as a Git submodule.
László Monda
2016-09-26 00:02:38 +02:00
d055e0411f
Expose the test LED via generic HID. Update USB VID and PID. Remove the macros of green and blue LEDs.
László Monda
2016-09-25 01:49:27 +02:00
124c88afed
Update USB manufacturer name, product name, and VID.
László Monda
2016-09-24 23:16:13 +02:00