summaryrefslogtreecommitdiff
path: root/tmk_core/protocol
AgeCommit message (Collapse)Author
2019-12-11Remove mbed files (#7605)Joel Challis
* Remove mbed files * Remove mbed files - fix comment * Remove mbed logic blocks
2019-12-11Use `clock_prescale_set()` from avr-libc (#7540)fauxpark
* Use `clock_prescale_set()` from avr-libc * Remove outdated FAQ info
2019-12-08Set proper ASCII character for KC_NUHS in iWRAP code (#7434)fauxpark
2019-11-25Remove vusb 'reset to bootloader' hid message due to security implications ↵Joel Challis
(#7456)
2019-11-17Run clang-format manually to fix recently changed fileszvecr
2019-11-15Add support for configurable polling interval and power usage o… (#7336)fauxpark
* Add support for custom polling interval and power usage on V-USB boards * Use 1ms as default for now
2019-11-10Fix chibios when mouse and nkro disabled (#7312)Joel Challis
2019-11-07ARM - ws2812 bitbang (#7173)Joel Challis
* Initial ARM bitbang ws2812 driver * Unify chibios platform to run rgblight_task * Remove 'avr only' comments from ws2812 docs * Remove 'avr only' comments from ws2812 docs * Unify chibios platform to run rgblight_task - review comments * Remove debug flags from keymap * Add comments from review * Add defines for STM32L0XX * Attempt to get arm ws2812 working on multiple gcc versions
2019-11-04Un-clang-format usb_descriptor.h (#7216)fauxpark
Preserves readability of the file, making it easier to understand and modify.
2019-11-05Fixes #7256: USB descriptor to identify correctly as MIDI device. (#7258)Christopher
2019-10-30rgblight_task logic fixes (#7214)Joel Challis
2019-10-29 Refactor ps2avrgb i2c ws2812 to core (#7183)Joel Challis
* Refactor ps2avrgb i2c ws2812 to core * Refactor jj40 to use ws2812 i2c driver * Refactor ps2avrgb template to use ws2812 i2c driver * Add ws2812 stub files * clang-format and driver config * Add ws2812 driver docs * Fix default config values * Update tmk_core/protocol/vusb/main.c Co-Authored-By: Drashna Jaelre <drashna@live.com>
2019-10-08Reorder Raw HID interface to match what the USB spec expects (#6801)fauxpark
2019-09-07Adafruit BLE: Set SPI2X bit only when F_CPU is 8MHz (#6671)fauxpark
2019-09-06Make USB polling rate configurable with a define (#6668)fauxpark
2019-09-04Fix battery level code in adafruit_ble.cpp (#6648)bwhelm
* Fix battery level code in adafruit_ble.cpp The code in tsk_core/protocol/lufa/adafluit_ble.cpp that polls the battery level for the Adafruit feather BLE controller reads the regulated voltage, not the raw voltage coming from the battery. To do that, the Adafruit Feather docs say you should read from pin A9: https://learn.adafruit.com/adafruit-feather-32u4-basic-proto/power-management#measuring-battery-4-9. (See also https://learn.adafruit.com/adafruit-feather-32u4-bluefruit-le/pinouts#logic-pins-2-9.) I'm not sure why, but analogRead(9); doesn't read the correct pin. Checking all available analog pins experimentally, it turns out that analogRead(7); returns the correct value. So the code above should read: state.vbat = analogRead(7); * Update tmk_core/protocol/lufa/adafruit_ble.cpp Co-Authored-By: Drashna Jaelre <drashna@live.com> * Remove old comment * Fix linking error * Remove `#ifdef` around `#include analog.h`. * Really fix linking error
2019-08-30clang-format changesskullY
2019-08-30Fix the LUFA lib to use a submodule instead of just files (#6245)Drashna Jaelre
* Remove LUFA files * Update descriptions for newer version of LUFA * Create PR6245.md * Fix CDC(Serial) type errors * Fix missed merge conflict for AUDIO_DTYPE_CSInterface
2019-08-30Fix vusb compiling after clang-formatskullY
2019-08-30LUFA USB descriptor cleanup (#4871)fauxpark
* Fix indentation * Fix braces * Expand descriptor headers * Align descriptor elements * Nicer formatting * Tidy up preprocessor statements * Remove VERSION_BCD redefine - LUFA_VERSION_INTEGER is currently 0x170418 * Tidy up comments * Tweak ordering of HID report elements (no functional changes) * We don't need all of these newlines * Move default USB_MAX_POWER_CONSUMPTION closer to where it makes sense * Ask nicely * Add some more comments * Change indentation back to 4 spaces * Add changelog entry
2019-08-25Added OLED Display autoscroll during periods of OLED data inactivity (#6546)XScorpion2
* Added OLED Display autoscroll during periods of OLED data inactivity. * Fixing compile errors * Feedback from review
2019-07-31Removed print call to resolve #6364 (#6413)Jake Grossman
* Change print to dprintf to avoid buffer overflow * Add stdio header for dprintf * Fix included headers
2019-06-03Fixes compile errors for massdrop keyboardsChris Dosé
2019-05-10Cleanup/rgb matrix (#5811)XScorpion2
* clean up rgb matrix extern usage Moved rgb matrix boiler plate into macros Rebased onto typing heatmap pr * Fixing the reversed frame buffer access in digital rain * Fixing digital rain & typing heatmap if keyreactive effects are not enabled * Apply suggestions from code review Co-Authored-By: Drashna Jaelre <drashna@live.com> * Adding parenthesizes to DRIVER_LED_TOTAL where necessary * Updated docs * added notes about parentheses
2019-05-07rgb_led struct conversion (aka: Per led (key) type rgb matrix effects - part ↵XScorpion2
2) (#5783) * Initial conversion of the rgb_led struct * Converting last keyboard & updating effects to take advantage of the new structure * New struct should not be const * Updated docs * Changing define ___ for no led to NO_LED * Missed converting some keymap usages of the old struct layout
2019-04-29Updated rgb_led struct field modifier to flags (#5619)XScorpion2
Updated effects to test led flags Updated massdrop to use new flags field for led toggle
2019-04-12Max out range for max compatibilityDrashna Jaelre
2019-04-12Fix ATSAM's USB HID descriptor to support higher heycodesDrashna Jaelre
Assuming I understand this correctly, this should set the max scancode to E7 (RGUI), which is the last listed code in the main list (everything else use for internal QMK/TMK stuff).
2019-04-07Remove keyboard description from Adafruit BLE device namefauxpark
2019-04-03RGB Matrix support for Massdrop CTRL/ALT (#5328)Daniel Prilik
* port Massdrop CTRL/ALT to use RGB Matrix Co-authored-by: Matt Schneeberger <helluvamatt@gmail.com> * Massdrop lighting support working This commit is to get the Massdrop lighting code working again through use of the compilation define USE_MASSDROP_CONFIGURATOR added to a keymap's rules.mk. Added keymaps for both CTRL and ALT named default_md and mac_md. These should be used if the Massdrop style lighting is desired. * Updating config based on testing results with patrickmt & compile errors * Updates for PR5328 For CTRL and ALT: Moved location of new RGB Matrix macros from config_led.h to config.h. Added RGB_MATRIX_LED_FLUSH_LIMIT (time between flushes) to config.h for correct LED driver update timing. Re-added missing breathing code for when Massdrop configurator mode is defined. * remove prilik keymap form PR
2019-03-12Add new keyboard Plaid and ATMEGA328p support (#5379)Takuya Urakawa
* add plaid * Change usb vid/pid to free id from vusb Trivial fix for vusb core * update readme * update info.json default keymap * fix typo * Replace copyright
2019-02-14Add kb and user level keyboard initialization functions (#3113)Drashna Jaelre
* Add suspend functions * Disable RGB code if it's disabled * 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 suspend code * Clean up docs * Fix docs * Fix suspend code * more doc fixes * change function to startup_* rather than keyboard_init_ * fix spelling error * fix up docs to finish removing keyboard_init * Use Pre and Post init functions * Update Documenation * Remove changes to my keymap and userspace code * Cleanup * Revert changes to extra files * Forgot a semicolon * Make sure all protocols call keyboard_setup * Cleanup functions * Unset startup_user * Remove changes from division keyboard * Readd startup_user function * Remove all to startup_user * Update docs/custom_quantum_functions.md Co-Authored-By: drashna <drashna@live.com> * Update docs/custom_quantum_functions.md Co-Authored-By: drashna <drashna@live.com> * Add suggestion line * Rebase fixes * Update documentation to be more useful/accurate * Cleanup of documentation * Fix spacing inconsistency * Revert unexpected change to keymap
2019-02-06Remove unnecessary IS_COMMAND definitions from recently added keyboards (#5065)Konstantin Đorđević
2019-01-28arm_atsam ADC0 factory calibration correctionpatrickmt
Factory calibration data was not being loaded properly for ADC0, which affects the accuracy of 5V readings.
2019-01-27Fix Command feature: use get_mods() instead of keyboard_report->mods (#4955)Konstantin Đorđević
* Remove unnecessary IS_COMMAND definition in clueboard/66/rev4 * Replace keyboard_report->mods with get_mods() in IS_COMMAND definitions * Update docs to use get_mods() instead of keyboard_report->mods * Replace keyboard_report->mods with get_mods() in tmk_core/protocol/usb_hid/test For some reason, this occurrence used KB_LSHIFT and KB_RSHIFT, which don't exist * Replace keyboard_report->mods with get_mods() in Massdrop keyboards (as per @patrickmt)
2019-01-25Circular animation (#4796)Drashna Jaelre
* Add ability to animate arm_atsam led matrix from the center of a circle * Make arm_atsam led matrix circular animation circular rather than obloid * Fix indentation in tmk_core led_matrix.c
2019-01-22Always read two bytes from the endpoint if we have two bytes to readfauxpark
When this if statement is false, it will cause the report ID to be read as the LED state. We already know there are two bytes in the endpoint, which is a reasonably good indicator that it contains a report ID, so we should always read both.
2019-01-11Improved fix for __always_inline redefinition bugJames Churchill
Instead of changing based on the version of GCC, check for the presence of the macro instead.
2019-01-11Fix Caps Lock LEDs once and for all (#4824)fauxpark
* Check the size of the SET_REPORT packet If we have two bytes, that probably means the first is a report ID. The 6KRO interface may or may not have one, but the NKRO interface always does, so we need to check this regardless of whether KEYBOARD_SHARED_EP is defined. * Fix indentation
2019-01-07Update to arm_atsam wait and timer routinespatrickmt
Microsecond (us) delays are now handled by a busy wait loop according to MCU frequency. This replaces the system counter method which had an overhead of around 12us. TC5 device and supporting routines removed as it was the old us delay counter. wait_ms is now properly a macro to CLK_delay_ms. wait_us is now properly a macro to CLK_delay_us. Removed CLK_get_us as it has no use. All calls to CLK_get_ms() have been replaced by timer_read64() with corrected typing. All calls to CLK_delay_ms() have been replaced by wait_ms(). All calls to CLK_delay_us() have been replaced by wait_us() and timings verified or updated as needed after review on scope. Corrected typing of variables using 64bit ms timer readings if needed.
2019-01-07Fix indentation in tmk_core led_matrix.cIan O'Dea
2019-01-07Make arm_atsam led matrix circular animation circular rather than obloidIan O'Dea
2019-01-07Add ability to animate arm_atsam led matrix from the center of a circleIan O'Dea
2019-01-06Final HS60v2 changes. (#4790)yiancar
* initial commit, this now mostly works - RGB controls work - Dynamic keymap still broken due to eeprom - Via works * STM32 eeprom update - Update EEPROM emulation library to handle 8bit data like AVR. - This library also allows for multiple page pairs resulting in greater EEPROM size flexibility * hs60 changes * HS60 hhkb added * Update keyboards/hs60/v2/config.h Co-Authored-By: yiancar <yiangosyiangou@cytanet.com.cy>
2018-12-14Fix macro redefinition for GNUC compilers > 6patrickmt
GNUC compilers greater than version 6 already have the macro __always_inline defined. This fix checks GNUC version before defining the macro itself.
2018-12-10Bringing Massdrop keyboard hardware configuration to keyboard level (#4593)patrickmt
MCU Pins for debugging, LED, boot tracing, and shift registers are now configurable at keyboard level. Macros led_* replaced by DBG_LED_* Macros m15_* replaced by DBG_1_* Macros m27_* replaced by DBG_2_* Macros m28_* replaced by DBG_3_* For CTRL and ALT keyboards, debug boot tracing pin default now set to pad M27 instead of M28 since although M28 is not being used, it is technically a signal for USB port detection. m15_print(...) renamed to dbg_print(...) to get away from hard coded port names. dbg_print function now follows similar pattern to debug led output.
2018-12-06Vertical animation support for arm_atsam led_matrix (#4538)Ian O'Dea
* Add initial support for vertically-oriented animations * DRY up vertical animation support * Fix animation code for arm_atsam led_matrix to work in all directions * Adjust py calculation to base off bottom rather than top
2018-12-05Only try to read the report ID from SetReport when the keyboard is part of ↵fauxpark
the shared EP Fixes #4471 Fixes #4517
2018-11-27fixed misplaced paranthesis in arm usb mouse send function (#4478)Christon DeWan
bug was causing lots of dropped events for me.
2018-11-21Fix raw hid define for chibios (#4460)yiancar