Commit Graph
100 Commits
Author SHA1 Message Date
Fred SundvikandJack Humbert c5db272c91 Make sure the timer wraps around correctly independent of the os tick frequency 2018-06-28 08:51:30 -04:00
fredizzimoandJack Humbert e9d32b60b7 Add a custom USB driver for ARM (#2750)
* Copy Chibios serial_usb_driver into the chibios/protocol

It's renamed to usb_driver to avoid name conflicts

* Make the usb driver compile

* Disable ChibiOS serial usb driver for all keyboards

* Change usb_main to use QMKUSBDriver

* Initialize the usb driver buffers

* Add support for fixed size queues

* Fix USB driver initialization

* Don't transfer an empty packet for fixed size streams
2018-04-15 20:42:53 -04:00
Fred SundvikandJack Humbert 25c7533092 Change the CDC_NOTIFICATION_EPSIZE back to 8 from 32 2018-02-12 15:48:44 -05:00
Fred SundvikandJack Humbert 50038882e0 Set unused USB serial buffer to 1 byte to save memory 2018-02-12 15:48:44 -05:00
Fred SundvikandJack Humbert 8c2ae4a470 Fix reset for STM32 devices 2018-02-10 17:13:38 -05:00
fredizzimoandJack Humbert 53ff8a31b6 Merge ChibiOS and LUFA descriptor support (#2362)
* 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
2018-02-08 15:07:46 -05:00
Fred SundvikandJack Humbert 30b90de7c9 Send usb wakeup through ChibiOS 2018-02-07 17:16:01 -05:00
Fred SundvikandJack Humbert 30e413f985 Update Chibios Contrib with 17.6.3 support 2018-02-07 17:16:01 -05:00
Fred SundvikandJack Humbert 6a9617b1c6 Update ChibiOS to 17.6.3 2018-02-07 17:16:01 -05:00
Fred SundvikandJack Humbert e7bb975482 Fix .editorconfig to not mess with line endings 2018-02-03 15:20:44 -05:00
Fred Sundvikandskullydazed 894fa0902f Enable FPU on Clueboard60 2018-01-21 01:10:16 -08:00
Fred Sundvikandskullydazed a14d539ad6 Revert back to normal sleeping wait behaviour for STM32 2018-01-21 01:10:16 -08:00
Fred Sundvikandskullydazed 510a8d3339 Fix compiler settings for MCUs with floating point 2018-01-21 01:10:16 -08:00
Fred SundvikandJack Humbert 67eeb889ba Fix dynamic macros on ChibiOS keyboards 2017-09-30 06:22:24 -10:00
Fred SundvikandJack Humbert 25285a1c5a Don't process keycodes on the slave 2017-09-30 06:22:02 -10:00
Fred SundvikandJack Humbert a5b0f4de35 Add SRC and OPT_DEFS when building tests 2017-07-20 10:17:31 -04:00
Fred SundvikandJack Humbert 20696a9efe Fix building of multiple test directories 2017-07-20 10:17:31 -04:00
Fred Sundvik b7d8dec7dc Fix printf error in make output on msys2 2017-07-12 13:04:50 +03:00
Fred Sundvik 7f67abd7d7 Fix bitfield problem when compiling in native mingw 2017-07-11 22:05:01 +03:00
Fred Sundvik 78545b9509 Fix unreferenced errors with mingw compiler and unit tests 2017-07-11 19:41:04 +03:00
Fred Sundvik 5a25d50168 Add more dependencies, everything can be compiled now 2017-07-11 18:51:52 +03:00
Fred Sundvik 5c3fd67198 Add tools to the path 2017-07-11 17:55:03 +03:00
Fred Sundvik 0d9e7f635e Extract flip 2017-07-11 17:32:58 +03:00
Fred Sundvik 76bd0d3e18 Install arm toolchain 2017-07-11 17:18:24 +03:00
Fred Sundvik b8c363099b Download and extract avr tools 2017-07-11 16:44:46 +03:00
Fred Sundvik b85ce4ce22 Fix overlong lines, and a few spelling errors 2017-07-11 16:26:29 +03:00
Fred Sundvik d47db637ed Use home directory for download on msys2 2017-07-11 16:11:37 +03:00
Fred Sundvik 32fc4da4a7 Install unzip 2017-07-10 18:16:35 +03:00
Fred Sundvik 861087096b Add symlinks only on WSL 2017-07-10 18:05:32 +03:00
Fred Sundvik 7bedf8f4f2 Fix launch of qmk_driver_installer on msys2 2017-07-10 17:51:59 +03:00
Fred Sundvik a2d3fc98b8 Initial structure for shared msys2 and wsl installation 2017-07-10 17:31:58 +03:00
Fred SundvikandJack Humbert 10546665f4 Fix uninitialized backlight_level in the Visualizer 2017-07-10 09:02:36 -04:00
Fred SundvikandJack Humbert 551924f8a0 Add template board files 2017-07-10 09:01:59 -04:00
Fred SundvikandJack Humbert 190b90892b Rename board files to lowercase 2017-07-10 09:01:59 -04:00
Fred SundvikandJack Humbert 9d8279960d Make it easier to use drivers 2017-07-10 09:01:59 -04:00
Fred SundvikandJack Humbert 4da3b19603 Shared default animations 2017-07-10 09:01:59 -04:00
Fred SundvikandJack Humbert 2251560256 Clarify naming between LCD_BACKLIGHT and LED_BACKLIGHT 2017-07-10 09:01:59 -04:00
Fred SundvikandJack Humbert f3c113fb5a Shared gfxconf 2017-07-10 09:01:59 -04:00
Fred SundvikandJack Humbert 8a962f7b27 Define visualizer thread priority by default 2017-07-10 09:01:59 -04:00
Fred SundvikandJack Humbert 011ee29441 Fixup mixed tabs/spaces 2017-07-10 09:01:59 -04:00
Fred SundvikandJack Humbert 630f065376 Remove ergodox from gdisp driver names 2017-07-10 09:01:59 -04:00
Fred SundvikandJack Humbert aca0f4dcae Move GDISP drivers to /drivers/ugfx 2017-07-10 09:01:59 -04:00
Fred SundvikandJack Humbert 1ff5fb000f Fix Makefile error_occured output for unit tests 2017-07-10 09:00:58 -04:00
Fred SundvikandJack Humbert ba405cfbb4 Don't search for TEENSY_LOADER_CLI if it's already defined 2017-07-10 09:00:18 -04:00
Fred SundvikandJack Humbert 7ea8753b72 Don't run dfu-programmer unless specified as a target
This introduces a grep dependency, which I believe we didn't have
before, but it should be available and installed by default on all the
supported systems.
2017-07-10 09:00:18 -04:00
Fred SundvikandJack Humbert 9158673166 Reference issue #1478 from the unit tests 2017-07-08 21:59:51 -04:00
Fred SundvikandJack Humbert b3af79eaff Reference issue #1477 from the unit tests 2017-07-08 21:59:51 -04:00
Fred SundvikandJack Humbert 41efcd6d73 Reference issue #524 from the unit tests 2017-07-08 21:59:51 -04:00
Fred SundvikandJack Humbert 60b1880a62 Reference issue #1476 from the unit tests 2017-07-08 21:59:51 -04:00
Fred SundvikandJack Humbert 67f722c9c8 Configure vscode file associations, use hpp instead of h 2017-07-08 21:59:51 -04:00
Fred SundvikandJack Humbert 631c09e976 Fix keymap formatting 2017-07-08 21:59:51 -04:00
Fred SundvikandJack Humbert e5780a6dc6 Add tests for macros 2017-07-08 21:59:51 -04:00
Fred SundvikandJack Humbert 4087d6da0d Add wait support for tests 2017-07-08 21:59:51 -04:00
Fred SundvikandJack Humbert fc4bfbe580 Rename tests to start with test_ 2017-07-08 21:59:51 -04:00
Fred SundvikandJack Humbert 4e69a8bda6 Add basic timing support, and SFT_T tests
Also expose some bugs...
2017-07-08 21:59:51 -04:00
Fred SundvikandJack Humbert a62f449659 Add test for a combo key 2017-07-08 21:59:51 -04:00
Fred SundvikandJack Humbert cae7a9c3ec Add simple modifier test 2017-07-08 21:59:51 -04:00
Fred SundvikandJack Humbert 1985f43bad Improve the tests a bit 2017-07-08 21:59:51 -04:00
Fred SundvikandJack Humbert 72c8df1f19 A bigger test matrix, and test for unmapped keys 2017-07-08 21:59:51 -04:00
Fred SundvikandJack Humbert 1e4cc36e14 Rename test.cpp to keypress.cpp 2017-07-08 21:59:51 -04:00
Fred SundvikandJack Humbert 0256cd8cca Build all cpp files in test directories 2017-07-08 21:59:51 -04:00
Fred SundvikandJack Humbert 7d79962785 Move test keymap to keymap.c 2017-07-08 21:59:51 -04:00
Fred SundvikandJack Humbert 448b91689f Exclude .build and .hex from Visual Studio code 2017-07-08 21:59:51 -04:00
Fred Sundvik 1e6a3f9e17 Change M_2_PI to 2 * PI as it should be 2017-06-25 12:55:18 +03:00
Fred Sundvik dcf9fa1aaa Update the ugfx submodule 2017-06-24 00:37:27 +03:00
Fred Sundvik f912c74fe7 Change inline to static inline 2017-06-24 00:34:16 +03:00
Fred Sundvik 574ca7f59c Delete emulator drivers 2017-06-24 00:34:16 +03:00
Fred Sundvik da19852964 Add function for getting the LCD backlight brightness 2017-06-24 00:34:16 +03:00
Fred Sundvik ff49259a1a Include config.h from visualizer.h 2017-06-24 00:34:16 +03:00
Fred Sundvik b0094e631e Change remote url of uGFX to relative path 2017-06-24 00:34:16 +03:00
Fred Sundvik 6c9b4743f7 Include config.h before visualizer.h 2017-06-24 00:33:23 +03:00
Fred Sundvik 1aa0be4cf1 Fix serial_link vpath problem 2017-06-19 00:46:53 +03:00
Fred Sundvik 0f163c0028 Add todo to timer.c 2017-06-19 00:24:32 +03:00
Fred Sundvik fb9b8dadb9 Add a couple of todos to keyboard_report_util.cpp
Also print the modifier state
2017-06-19 00:22:12 +03:00
Fred Sundvik 43d8fa5bf1 More natural interface for setting keyboard leds 2017-06-19 00:19:09 +03:00
Fred Sundvik 36f820be7e Add a test fixture
It only initializes QMK once, and clears the matrix after each test.
2017-06-18 23:49:38 +03:00
Fred Sundvik e85b185796 Test two keys pressed at once 2017-06-18 21:22:22 +03:00
Fred Sundvik 6a76192fa4 Fix problems with undefined inlines in debug mode 2017-06-18 21:22:22 +03:00
Fred Sundvik bd1729d5be Actually test for correct key presses 2017-06-18 21:22:22 +03:00
Fred Sundvik fb95d86b39 Move functions for adding keys from to reports to report.h 2017-06-18 21:22:22 +03:00
Fred Sundvik 017458a07b Move functionality from action_util to report
The functions also takes report_kebyoard_t parameters, so that they can
be used elsewhere.
2017-06-18 21:22:22 +03:00
Fred Sundvik c38589d861 Fix the order of init and driver creation 2017-06-18 21:22:22 +03:00
Fred Sundvik 3bb0586acc Add a couple of basic tests and implement driver mock 2017-06-18 21:22:22 +03:00
Fred Sundvik 617578399c Add keymap 2017-06-18 21:22:22 +03:00
Fred Sundvik c588fca06c Empty bootloader_jump 2017-06-18 21:22:22 +03:00
Fred Sundvik a72e8f0865 Dummy test matrix implementation 2017-06-18 21:22:22 +03:00
Fred Sundvik 1c0fe956ac Split common.mk into common.mk and common_features.mk
To support including keyboard/keymap specific rules before it
2017-06-18 21:22:22 +03:00
Fred Sundvik d29906cb64 Emulate eeprom 2017-06-18 21:10:42 +03:00
Fred Sundvik f646f00b93 Rename native to test 2017-06-18 21:10:42 +03:00
Fred Sundvik 83509adc3a Add empty timer functions 2017-06-18 21:10:42 +03:00
Fred Sundvik 26eb97a4a8 Empty implementation of bootloader, suspend and timer 2017-06-18 21:10:42 +03:00
Fred Sundvik fdfd48e8c8 Fix program mem functionality 2017-06-18 21:10:42 +03:00
Fred Sundvik efaf0e830b Empty implementation of wait 2017-06-18 21:10:42 +03:00
Fred Sundvik 585d646128 Define MATRIX_COLS and MATRIX_ROWS 2017-06-18 21:10:42 +03:00
Fred Sundvik 8674f9c466 Make sure config.h is included 2017-06-18 21:10:42 +03:00
Fred Sundvik 7424261dae Try to build tmk_common 2017-06-18 21:10:42 +03:00
Fred Sundvik 30f22d450d Add basic infrastrucure for building full tests 2017-06-18 21:08:23 +03:00
Fred Sundvik 45d437ca04 Make only modified keymaps 2017-06-18 18:30:59 +03:00
Fred Sundvik 2fd670bec0 Add missing include to Ergodox Belak keymap 2017-06-18 17:07:20 +03:00
Fred Sundvik 6ba22b5f5e Don't define RGBLED_NUM in let-split khord keymap
It's already defined correctly by the parent keyboard project, and was
causing problems for rev1, where the pin is different.
2017-06-18 17:03:07 +03:00