aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core/common
Commit message (Collapse)AuthorAgeFilesLines
* Integrating Peter Fleury's HD44780 LCD library (#3209)Max Audron2018-07-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | * integrated Peter Fleury's LCD library for HD44780 LCDs * fixed typo * cleanup finished * add documentation * added HD44780 documentation * removed keyboard from .gitmodules * resolved merge conflict * removed edit of kira75s rules.mk made by merge * moved hd44780 to drivers/avr * Added licence info to hd44780 files * Added link to hd44780 docs.
* Diagonal micro move fixEvgeniy Petukhov2018-06-281-0/+2
|
* Make sure that both RGBLIGHT_ENABLE is defined, for RGBLIGHT_SLEEPDrashna Jaelre2018-06-281-3/+3
|
* Disable JTAG in keyboard initDrashna Jaelre2018-06-281-1/+6
| | | | So that all boards, present and future will have JTAG disabled, even if using a custom matrix
* Make sure the timer wraps around correctly independent of the os tick frequencyFred Sundvik2018-06-281-14/+28
|
* Add Suspend functions (#3112)Drashna Jaelre2018-06-033-0/+71
| | | | | | | | | | | | | | | | | | | | | | | | * Add suspend functions * Disable RGB code if it's disabled * Add suspend code to ChibiOS for future compatibility * Add keyboard_init functions * Change where references so it will compile * Wrong command chained in wake up kb function * Fix non-feature file changes * Add documentation * Re-add matrix init docs * add rgblight code to example * Remove keyboard init stuff for separate PR
* Add and fix _noeeprom functions to many of the RGB Underglow functions (#3070)Drashna Jaelre2018-05-291-2/+2
| | | | | | | | | | | | | | * And and fix _noeeprom functions to many of the RGB Underglow functions * Many functions are unnecessarily calling the eeprom write code. The toggle/enable is command is especially guilty of this, as it writes to EEPROM 3 times. But rgb mode writes twice, every time it's called. And init resets the rgb eeprom range and then writes back to it twice! * Fixed the rgblight_sethsv_noeeprom to work as expected, by moving a lot of the code to a helper function. * Added a noeeprom function for mode, enable, disable, and toggle functions. (didn't bother for increase/decrease stuff, and didn't add new keycodes) * Add to predefined colors list * Add new functions to manual/docs * Update RGB Sleep feature to use _noeeprom Because that's exactly what it should be doing, actually!
* Fix dead link to USB keycodes doc (#3050)Leo Wzukw2018-05-261-1/+2
| | | | | | | | | | | | * Fix dead link to USB keycodes doc Link was dead and the fresher version I could find on usb.org is still older than this one. Thus, WaybackMachine seems the best option. * Fix dead link to USB keycodes doc, with 2 options Give the WaybackMachine link (fresher and for reference of the content of the original link) and the usb.org one (older)
* Fix compile issues for atmega328pDrashna Jaelre2018-05-201-4/+4
|
* Allow one-shot modifiers to be chainedGergely Nagy2018-05-141-3/+3
| | | | | | | | | | | | | | | | | | | Many a times one would want to use multiple modifiers with the same key, preferably without having to hold anything, like `Ctrl+Shift+C` or `Ctrl+Shift+V` to copy/paste in GNOME Terminal. To make this possible, we need to be able to chain one-shot modifiers, so that we can have multiple of them active at the same time. The easiest way to accomplish this is that whenever we activate a one-shot modifier, we apply it on top of the existing set, instead of re-setting the state. When deactivating, either due to an interrupt, or due to a timeout, we deactivate all oneshots anyway, so the clearing part is covered. When we turn the one-shot modifier into a toggle, that will also clear all one-shot modifiers first, so we covered that case too. Fixes #2796, #1580, and #856. Signed-off-by: Gergely Nagy <qmk@gergo.csillger.hu>
* enable eeprom for rgb matrixJack Humbert2018-05-081-1/+1
|
* Fix RGB Sleep codeU-LANDSRAAD\drashna2018-03-281-1/+1
|
* Generate API docs from source code comments (#2491)skullydazed2018-03-2223-64/+616
| | | | | | | | | | | | | | | | | | * Generate api docs from source code * Add a bunch of doxygen comments * more doxygen comments * Add the in-progress api docs * script to generate docs from travis * Add doc generation to the travis job * make travis_docs.sh commit the work it does * make sure the docs script exits cleanly
* [Proposal?] Allow RGB Underglow to turn off when host is idle/asleep (#2104)Drashna Jaelre2018-03-191-1/+15
| | | | | | | | | | * Add RGB Underglow Sleeping * Add RGBLIGHT_SLEEP to toggle/control RGB light behavior * Update rgb docs * Update for RGB disable command
* Add CMD and WIN aliases for KC_GUI, GUI(kc), GUI_T(kc), etc.fauxpark2018-03-161-0/+5
|
* Fix swap-hands tapping.Joe Wasson2018-03-164-9/+50
| | | | This is an inelegant hack for #2522 but makes things work. Basically we give `action.c` a chance to handle the hold event early so that we can swap the keyboard for later keys. Later, to allow the hold to happen again quickly we nuke the key record so that tapping is reset. I tried to find a cleaner way, honestly.
* Rename ONEHAND_ENABLE to SWAP_HANDS_ENABLE for consistencyJoe Wasson2018-03-162-4/+4
|
* Fix reset for STM32 devicesFred Sundvik2018-02-101-17/+17
|
* Merge ChibiOS and LUFA descriptor support (#2362)fredizzimo2018-02-083-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move lufa descriptor to protocol/usb_descriptor * Try to compile usb_descriptor on ChibiOS * Add lufa_utils for ChibiOS Lufa USB descriptors for ChibiOS * More lufa_util compatibility fixes * First compiling version of shared USB descriptor * Send the usb descriptors * Fix the CONSOLE output on ChibiOS * Add errors for unsupported interfaces * Enable support for vitual serial port USB descriptors * Implement virtual serial port for ChibiOS * Cleanup the lufa_utils Use the default lufa header files * Add raw hid support for ChibiOS This is completely untested * Enable midi compilation on ChibiOS * Move midi functionality out of lufa.c * Don't register sysex callback when not needed * ChibiOS compilation fixes * Update ChibiOS submodule * Fix the Midi USB descriptor It didn't work properly when both Midi and Virtual serial port was enabled. * Add MIDI support for ChibiOS * Fix USB descriptor strings on ChibiOS * Use serial usb driver for raw hid * Generalize the ChibiOS stream like drivers This makes the initialization much more simple and eliminates a lot of the code duplication. * Convert console output to chibios stream driver * Fixes for ChibiOS update * Update the ChibiOS contrib submodule To include the usb data toggle synchronization fixes * Fix duplicate reset enumeration on ChibiOS * Add missing include * Add number of endpoints check for ChibiOS * Enable serial USB driver on all keyboards * Add missing includes when API is enabled withot midi * Add another missing inlcude
* Revert back to normal sleeping wait behaviour for STM32Fred Sundvik2018-01-211-7/+2
|
* Backlighting for JJ40 and underglow initialisation code (#2260)Kenneth Aloysius2018-01-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Cleanup Mechmini keymap. Once the custom RGB function is defined, there is no need to manually handle RGB code. * Change default to KEYMAP_MIT, not KEYMAP_OFFSET * Add custom RGB code for JJ40 * Reset Mechmini advertised power draw to 500. Will have to test actual maximum power draw later. * RGB working on JJ40. * Fix: saturation increase/decrease flipped * Add new directory for my custom keymap with RGB keycodes * Swap LAlt and LGUI * Update JJ40 max power draw with measured value * Update: fun40 rules.mk to enable underglow; earlier failed Travis CI * Fix: init RGB LEDs on boot. Also added HHKB-like keymap for XD60. * Super rudimentary backlight test, init RGB LEDs on boot * Backlighting works - stays on for now * Toggling working * Now can override backlight.c functions. Problem was functions in backlight.c weren't called before due to a lack of matrix_scan_quantum() in matrix.c * Timers not working * Delete global.h * Cleanup * Compiles * Good sign: LEDs stop working again * Handle timer1 overflow * Progress: fix: forgot to init * Backlighting fully working now except breathing. * Revert keymap to original keycodes * Update XD60 keymap README * Update JJ40 keymap with backlight toggles * Breathing working just fine. * Update references * Add backlight_set() call * Cleanup code to disable backlight * Fix: does not compile * Fix: missing call to rgblight_task. * Testing with BACKLIGHT_BREATHING * Cleanup * Cleanup comments * More commenting cleanup. * Do not enable BACKLIGHT_BREATHING by default
* backlight breathing overhaul (#2187)Balz Guenat2018-01-013-5/+14
| | | | | | | | | | | | | | | | | | | | * add breathing to bananasplit * backlight breathing overhaul * fix the backlight_tick thing. * fix for vision_division backlight * fix a few keymaps and probably break breathing for some weirdly set-up boards. * remove BL_x keycodes because they made unreasonable assumptions * some fixes for BL keycodes * integer cie lightness scaling * use cie lightness for non-breathing backlight and make breathing able to reach true max brightness
* Unsign key argument in add_key_to_reportfauxpark2017-12-192-3/+3
|
* make 'layer_state_set' visible to user codeColin T.A. Gray2017-12-152-6/+13
|
* fixes 'layer_state_cmp' when layer is '1' (aka layer 0, aka layer 1<<0)Colin T.A. Gray2017-12-151-2/+2
|
* helper to compare current layer_state to user layerColin T.A. Gray2017-12-082-0/+12
| | | | | Performs the same bit comparison that the layer_move functions perform
* Updates bootloader settings, adds file size check (#2029)Jack Humbert2017-11-272-91/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * pull fuse settings for bootloader jump * fix 32a chips * make automatic bootloader selection optional * quantify bootloaders * fixs #164, speeds up dfu reset * fix for chips w/o usb * missing an n * fix bootloader sizes, use words for addresses * fix bmini, pearl, and [[ issue, make things quiet * ignore avr errors on arm for now * update settings for the light * document bootloader stuff * add bootloader title
* I found a typo!Colin T.A. Gray2017-11-221-1/+1
|
* Allow multiple process_record() calls per scanSeebs2017-11-211-0/+11
| | | | | | | | | | | | | This is particularly relevant for, e.g., the ergodox EZ and other keyboards with slow scan rates. Without changing the API or behavior of individual process_record() calls, we allow a configuration flag to make multiple calls in a single scan. This will probably have miniscule effects on non-steno users, and it's not enabled by default for any keyboards. Added note about it to ergodox README. Signed-off-by: seebs <seebs@seebs.net>
* add pgm_read_dword for Infinity ErgoDoxTakayuki Matsubara2017-11-061-0/+1
| | | | | | | | avoid the following error when `UNICODEMAP_ENABLE = yes`: ``` quantum/process_keycode/process_unicodemap.c:52:21: error: implicit declaration of function 'pgm_read_dword' ```
* adds per-layer rgb color option to ezJack Humbert2017-11-062-1/+8
|
* RETRO_TAPPING (#1922)tsankuanglee2017-10-312-3/+38
| | | | | | | | | | | | * add RETRO_TAP: tap anyway, even after TAP_TERM, if no interruption * consistent variable name * add option doc * change name for consistency * make RETRO_TAPPING default to off
* #1792 added in waits from tmk for locking switchesJoe Martin2017-10-101-0/+3
| | | | fixes #1792
* Generic Pointing Device (#1767)Snipeye2017-10-061-0/+10
|
* Don't process keycodes on the slaveFred Sundvik2017-09-301-28/+35
|
* Clueboard 60% support (#1746)skullydazed2017-09-293-7/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | * initial clueboard_60 support * LED lighting support * fix the clueboard->clueboard_66 rename * Add layout support to clueboard_60 * Fix the 60_iso layout so it's actually iso * add a default keymap for AEK layout * fix clueboard_17 * Fixup the ISO layouts * Fix the `wait_ms()/wait_us()` definitions for chibios * Fix up the wait_ms/wait_us hack. Reduce stack size. * Add a missing #include "wait.h" * commit files that should have already been comitted
* Fix compilation error when NO_ACTION_LAYER is defined.Joe Wasson2017-08-201-1/+1
|
* some major steps toward making the usb-usb converter workBalz Guenat2017-08-151-0/+8
|
* Remove floating point calculation in mouse move. Saves approx 650 bytes if ↵Martin Sandiford2017-08-151-3/+11
| | | | no other floating point used.
* Added "EECONFIG_HANDEDNESS" to the eeconfig.h , because when RGB was enabled ↵That-Canadian2017-08-131-0/+2
| | | | | | | | it was overwritting the old EECONFIG_HANDEDNESS address (10), so it is now on a non-conflicting addres (14). Updated MiniDox split_util.h and eeprom files to reflect this change. I recommend adding this to any split board that used these files, my changes will not effect them currently.
* Add support for GeminiPR steno protocol.Joe Wasson2017-07-273-0/+10
| | | | This protocol breaks out "duplicate" keys into their own entry in the packet so that more complicated logic can be done on the software side, including support for additional languages and alternative theories.
* Add wait support for testsFred Sundvik2017-07-082-3/+9
|
* Add basic timing support, and SFT_T testsFred Sundvik2017-07-081-8/+9
| | | | Also expose some bugs...
* Merge pull request #1405 from cquiroz/oneshot-mods-timeoutJack Humbert2017-06-201-1/+3
|\ | | | | Oneshot mods timeout
| * Remove noisy debug lineCarlos Quiroz2017-06-181-1/+0
| |
| * Deactivate oneshot mods once timedoutCarlos Quiroz2017-06-181-0/+3
| |
* | Add todo to timer.cFred Sundvik2017-06-191-0/+3
| |
* | Fix problems with undefined inlines in debug modeFred Sundvik2017-06-181-0/+4
| |
* | Move functions for adding keys from to reports to report.hFred Sundvik2017-06-184-35/+45
| |
* | Move functionality from action_util to reportFred Sundvik2017-06-184-173/+192
| | | | | | | | | | The functions also takes report_kebyoard_t parameters, so that they can be used elsewhere.