Archiviato
1
0
Grafico dei commit

453 Commit

Autore SHA1 Messaggio Data
Jacob Alexander
ca4271b6ff Renaming Input Club keyboard Scan Modules
- Should make it easier to follow (originally the keyboards didn't have names hence the code-names)
- See https://github.com/kiibohd/KiiConf/issues/45

MD1     -> Infinity_60%
MD1.1   -> Infinity_60%_LED
MDErgo1 -> Infinity_Ergodox
KType   -> K-Type
2016-07-17 13:09:57 -07:00
Jacob Alexander
a07ccdd608 Moving defaultMap.kll to scancode_map.kll (less confusing)
- Changing default name from defaultMap.kll to scancode_map.kll
- Old name of defaultMap.kll will still work (and is the final fallback)
- Updated all the main projects to use the new name
- Updated BETKB (not entirely finished, but mostly complete)
- Added sub-use of interconnect scancode cache for converters
- Added infinity_led.bash

No behaviour changes, just restructuring.
2016-07-06 09:03:23 -07:00
Jacob Alexander
ed19e92ead Updating MBC-55X scan module 2016-06-12 15:53:25 -07:00
Jacob Alexander
358d480ea9 Major USB update, fixes most (if not all) known issues
USB - General
- Refactored descriptors
- Enabled/Disable USB endpoints
- Added debug flags for special features
- Code cleanup
- Interface count calculation based off of enabled endpoints
- Delayed wTotalLength calculation to simplify descriptor offsets
- Re-ordered endpoints and interfaces
- Added more debug output
- Added usbInitTime to show how long keyboard initialization took
  (Useful when debugging bad init sequences)
- Added function for usb_resume() which takes care of the resume sequence
  * Resume is now only called if packets are starting to timeout

USB - Special Options
- Added enableDeviceRestartOnUSBTimeout
  * A last resort hammer for bad USB Chipsets/OSs, don't use if you can help it
  * Disabled
- Added enableUSBResume
  * Enables host resume wake-up signalling, required to wake a computer from sleep
  * Enabled
- Added enableUSBLowPowerNegotiation
  * Enables power negotiation hack
  * Required to use firmware with an IPad and other hard-limit low-power USB hosts
  * Hasn't been tested with the recent changes
  * Disabled
- Added enableUSBSuspend
  * Enables power down events on host USB bus suspend
  * Enabled

USB - Keyboard
- Attempted to cleanup HID SET_REPORT
  * Works much better
  * Still has an issue under Linux which generates *a lot* of NAKs (initializes quickly regardless)
    + Not present on other keyboards
    + SETUP -> OUT -> IN : This sequence is the problem
    + Specifically during the OUT phase
- Enabled

USB - CDC Virtual Serial Port
- Code cleanup
- Added convenience struct USBCDCLineCoding for easier debugging
- Attempted to cleanup CDC_SET_LING_CODING
  * Works much better
  * Still has an issue under Linux which generates *a lot* of NAKs (initializes quickly regardless)
    + SETUP -> OUT -> IN : This sequence is the problem
    + Specifically during the OUT phase
    + Likely the same issues as HID SET_REPORT
- Enabled

USB - Mouse
- Enabled

USB - Joystick
- Disabled

USB - RawIO
- Initial code, API not used yet
- Disabled

DFU
- Updated load script, now faster
2016-05-31 00:40:10 -07:00
Jacob Alexander
8a96e70b4b Fixed udev and added TODO comment 2016-05-29 10:27:21 -07:00
Jacob Alexander
92b3b5081b Adding auto-restart support whenever USB gets into an odd state
- Somewhat aggresive, may cause restarts if the keyboard/OS hasn't fully intialized the keyboard
- Added GET_IDLE handling and correct usage of SET_IDLE
- Initial implementation of idle send, commented out as it causes issues on Mac OSX for sleeping
  (keyboard has been working without it)
- MacOSX seems to have some sort of data corruption on the USB link, not sure why (other OSs have no issues)
- Cleaned up some code
- Added a longer sleep after the resume sequence to prevent possible issues sending keys too soon
  (may need to be increased more)

Ipad support now seems flaky, though Mac, Windows seems solid.
Init sequence on Linux seems slow, even though there are no errors.
2016-05-27 01:26:04 -07:00
Jacob Alexander
9a7364b14a Merge pull request #120 from jlsalvador/feature-toggle-keyboard-protocol
Adding toggleKbdProtocol capability
2016-05-26 11:13:35 -07:00
José Luis Salvador Rufo
0174e1e6ab
Adding toggleKbdProtocol capability 2016-05-26 13:06:12 +02:00
Jacob Alexander
caa01dbf50 Merge pull request #119 from bburky/keyboards-gitignore
Ignore BuildPath directories
2016-05-23 17:19:21 -07:00
Blake Burkhart
13e65cc0ac Ignore BuildPath directories
Ignore all the default BuildPath directories created by the bash scripts
via cmake.bash.
2016-05-23 18:52:09 -05:00
Jacob Alexander
38f6c832cf Merge pull request #118 from cryham/ghostfix
Fixed ghosting matrix check (ok now)
2016-05-17 01:35:23 -07:00
CryHam
f36a09a97a fix ghost vars, ifdef 2016-05-17 10:30:07 +02:00
CryHam
e6506ee5bf Fixed ghosting matrix check (did send bad keys on release), now using also ghost_old state 2016-05-17 10:29:16 +02:00
Jacob Alexander
ba58010a75 Adding proper remote wake-up support
- Maintains a sleep state variable (may be able to use as a signal in the future)
- On the first keypress, hold the RESUME signal for 10 ms (spec says between 1 and 15 ms)
- Removed some messages that were affecting sleep state
2016-05-17 01:18:14 -07:00
Jacob Alexander
8fbc8d535f Adding missing GET_PROTOCOL handling
- Odd that this went unnoticed for sooooo long
- Fixes Mac OSX issue where keyboard freezes/hangs on a reboot
- Also adding missing code for usbMuxUart
2016-05-16 23:25:08 -07:00
Jacob Alexander
044f14a52b Merge pull request #114 from kiibohd/revert-113-ghost_fix
Revert "Fixed ghosting matrix check (did send bad keys on release), now using…"
2016-05-13 14:38:46 -07:00
Jacob Alexander
44215ade18 Revert "Fixed ghosting matrix check (did send bad keys on release), now using…" 2016-05-13 14:38:05 -07:00
Jacob Alexander
0525796808 Merge pull request #113 from cryham/ghost_fix
Fixed ghosting matrix check (did send bad keys on release), now using…
2016-05-13 11:37:39 -07:00
Jacob Alexander
6a22bb2790 Initial refactoring of PartialMap for supporting custom Triggers
- Requires a recent KLL
- Functionality wise, nothing has changed
2016-05-08 18:50:28 -07:00
CryHam
6efcef28b0 Fixed ghosting matrix check (did send bad keys on release), now using also ghost_old state 2016-05-08 09:38:00 +02:00
Jacob Alexander
5eb4ebf02e Disable command list when using configurator 2016-05-05 12:57:30 -07:00
Jacob Alexander
bfaed8f58c Move matrix information to a cli command 2016-03-22 19:51:43 -07:00
Jacob Alexander
18aef02a1f Adding relative movement mouse key support
- Still very basic (lots of room for improvement)
- Capability format will likely change at some point
- 16 bit movement control, however repeat rate limits usability (will need KLL 0.4 to make better)
2016-03-21 23:05:41 -07:00
Jacob Alexander
3c9a97d51a Adding basic mouse button support
- Full Mouse support will have to wait for KLL 0.6
  * This will include dynamic HID descriptor generation for many wheels and axis depending on the KLL needs
- HID descriptor is currently limited to 8 buttons
- Technically mouse movement also works (tested by accident), but it's disable for now (needs some API thought)

- Adding additional udev rules
- Added KRO mode default define
2016-03-21 00:51:51 -07:00
Jacob Alexander
0102d05c86 Fixing clang compilation and supporting clang-tidy
- clang.c includes necessary functions to make clang compiler work (tested on teensy 3.1)
- Added support code to generate a compile_commands.json for clang-tidy
  * Updates the symlink whenever cmake or make is called (Unix OSs only)
2016-03-04 00:38:06 -08:00
Jacob Alexander
c5aed6cb17 Adding convenience symlinks to the udev rules 2016-03-03 20:40:23 -08:00
Jacob Alexander
8e3f155189 Merge pull request #95 from cryham/master
Fixes in CK3 (ghosting matrix), working version on full keyboard.
2016-03-02 11:07:10 -08:00
Jacob Alexander
074134c474 Fixing potential WF LED issue
- Added fix for USB Current Change
  * If called during interrupt, could hang the I2C bus
  * Delaying I2C writes till scan loop
2016-03-01 20:29:11 -08:00
CryHam
602b482538 Updated CK3 with Scan_currentChange (copy from MD1). 2016-03-01 21:00:23 +01:00
CryHam
a848a6bc79 Merge branch 'master' of github.com:kiibohd/controller 2016-03-01 19:40:00 +01:00
CryHam
88670ac72f Changed CK3 matrix scan to Config_Pullup, inverted rows and columns
Added STROBE_DELAY define in matrix.h
All keys scan codes now in defaultMap.kll
2016-03-01 19:38:43 +01:00
Jacob Alexander
f57e069bb9 As per request of original author, updating license to MIT 2016-02-23 14:36:41 -08:00
Jacob Alexander
46765e85c5 Adding dynamic USB power support
- Each scan module now has a current change callback which passes the available current as a parameter
- No longer attempts to use the max 500 mA immediately, starts with 100 mA then goes to 500 mA after enumeration
- If enumeration fails due to bMaxPower of 500 mA, then attempt again at 100 mA (might also be possible to go even lower to 20 mA in certain cases)
- Now working with the Apple Ipad (no over-power messages)
- Fixed Wake-up behaviour on Apple Ipad (and likely other iOS devices)
- More effecient set_feature/clear_feature handling (device handler)
- Initial power handling via Interconnect (still needs work to get it more dynamic)
2016-02-21 19:56:52 -08:00
Jacob Alexander
e761960aca Setting bootloader max power to 100 mA
- This amount of current is guaranteed by the USB spec before enumeration
- Generally the bootloader doesn't need nearly this much, but to be safe
2016-02-21 14:19:52 -08:00
Jacob Alexander
47ec39da8e Merge branch 'master' of github.com:kiibohd/controller 2016-02-20 13:28:16 -08:00
Jacob Alexander
8dbba83942 Debug code for interconnect cable debugging 2016-02-20 13:27:49 -08:00
Jacob Alexander
4f372c1909 Merge pull request #93 from cryham/master
Added support for ghosting matrices and code for elimination.
2016-02-20 12:13:02 -08:00
CryHam
57a75851e2 Minor styling fixes.
Renamed define to GHOSTING_MATRIX.
Deleted unused files from CK3.
2016-02-20 08:33:39 +01:00
CryHam
6687470ae7 Added support for ghosting matrices and code for elimination.
To use define GHOST in matrix.h, see example in Scan/CK3
2016-02-19 18:10:25 +01:00
Jacob Alexander
1fd19c48ea Changed name from MD1_1 to MD1.1 2016-02-11 22:56:25 -08:00
Jacob Alexander
5f530b5248 Update README.markdown 2016-02-08 08:28:38 -08:00
Jacob Alexander
6343edbfdc Merge pull request #78 from kevinfrei/infiniteLoops
Fix a handful of infinite loops that occur with more than 254 macros
2016-02-06 18:23:34 -08:00
Jacob Alexander
05e8c7d733 Merge pull request #90 from ryansb/fix/specialCharDirectories
Ensure directories can only be made with printable characters
2016-02-06 18:21:17 -08:00
Jacob Alexander
75832a17b7 Initial code for MD1_1
- IC60 /w Single color LEDs
 - Requires a different matrix configuration so it's incompatible with the old IC60 layout
2016-02-06 18:06:37 -08:00
Ryan S. Brown
b1dec67823 Ensure directories can only be made with printable characters
In situations where `ls` colors directories incorrectly, the `$module`
variable contains unprintable characters. This causes directories to be
impossible to `cd` into normally, and is generally a pain.
2016-02-06 21:06:08 -05:00
Jacob Alexander
8c858e4483 Setting WhiteFox LEDs as defaulting to on 2016-01-27 20:41:15 -08:00
Jacob Alexander
52c8ffc964 Updating README for Teensy 3.2 support 2016-01-13 15:04:45 -08:00
Jacob Alexander
4312ae50af Merge branch 'master' of github.com:kiibohd/controller 2016-01-13 15:03:50 -08:00
Jacob Alexander
e6437d603f Adding comment for the Teensy 3.2 2016-01-13 15:03:29 -08:00
Jacob Alexander
7c10ab1d60 Merge pull request #81 from dankm/not-linux
Get build working on FreeBSD
2016-01-05 10:31:36 -08:00