diff options
| author | Drashna Jaelre <drashna@live.com> | 2018-03-16 13:26:21 -0700 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2018-03-16 16:26:21 -0400 |
| commit | 54f1cdfb1ef13cacb6a8271fe2f1950f50f78c36 (patch) | |
| tree | f9c09ad6772b8f178e79ffc25758285942f13771 /keyboards | |
| parent | a730cf6718919e89ed44f5e15f24b7c2022400a1 (diff) | |
| download | qmk_firmware-54f1cdfb1ef13cacb6a8271fe2f1950f50f78c36.tar.gz qmk_firmware-54f1cdfb1ef13cacb6a8271fe2f1950f50f78c36.zip | |
Add teensy revision folder for Orthodox Rev3 (#2510)
* Add Rev3 Teensy for Orthodox
* MOve bootloader defines into revision folders
* Finishing touches
Diffstat (limited to 'keyboards')
| -rw-r--r-- | keyboards/orthodox/orthodox.h | 5 | ||||
| -rw-r--r-- | keyboards/orthodox/rev1/config.h | 7 | ||||
| -rw-r--r-- | keyboards/orthodox/rev1/rules.mk | 3 | ||||
| -rw-r--r-- | keyboards/orthodox/rev3/config.h | 2 | ||||
| -rw-r--r-- | keyboards/orthodox/rev3/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/orthodox/rev3_teensy/config.h | 93 | ||||
| -rw-r--r-- | keyboards/orthodox/rev3_teensy/rev3_teensy.c | 35 | ||||
| -rw-r--r-- | keyboards/orthodox/rev3_teensy/rev3_teensy.h | 47 | ||||
| -rw-r--r-- | keyboards/orthodox/rev3_teensy/rules.mk | 2 | ||||
| -rw-r--r-- | keyboards/orthodox/rules.mk | 2 |
10 files changed, 186 insertions, 11 deletions
diff --git a/keyboards/orthodox/orthodox.h b/keyboards/orthodox/orthodox.h index 970d3a117..932f8fd12 100644 --- a/keyboards/orthodox/orthodox.h +++ b/keyboards/orthodox/orthodox.h | |||
| @@ -5,7 +5,10 @@ | |||
| 5 | #include "rev1.h" | 5 | #include "rev1.h" |
| 6 | #endif | 6 | #endif |
| 7 | #ifdef KEYBOARD_orthodox_rev3 | 7 | #ifdef KEYBOARD_orthodox_rev3 |
| 8 | #include "rev3.h" | 8 | #include "rev3.h" |
| 9 | #endif | ||
| 10 | #ifdef KEYBOARD_orthodox_rev3_teensy | ||
| 11 | #include "rev3_teensy.h" | ||
| 9 | #endif | 12 | #endif |
| 10 | 13 | ||
| 11 | // Used to create a keymap using only KC_ prefixed keys | 14 | // Used to create a keymap using only KC_ prefixed keys |
diff --git a/keyboards/orthodox/rev1/config.h b/keyboards/orthodox/rev1/config.h index d6564f281..98c24c8c0 100644 --- a/keyboards/orthodox/rev1/config.h +++ b/keyboards/orthodox/rev1/config.h | |||
| @@ -45,11 +45,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 45 | #define MATRIX_COL_PINS { D7, F4, F5, F6, F7, B1, B3, B2, B6 } | 45 | #define MATRIX_COL_PINS { D7, F4, F5, F6, F7, B1, B3, B2, B6 } |
| 46 | //#define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4, D7 } | 46 | //#define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4, D7 } |
| 47 | 47 | ||
| 48 | /*/ | ||
| 49 | //TEENSY | ||
| 50 | #define MATRIX_ROW_PINS { D0, C6, C7, } | ||
| 51 | #define MATRIX_COL_PINS { D2, F5, F6, F7, B6, B5, B4, D7, D6 } | ||
| 52 | /*/ | ||
| 53 | 48 | ||
| 54 | /* COL2ROW or ROW2COL */ | 49 | /* COL2ROW or ROW2COL */ |
| 55 | #define DIODE_DIRECTION COL2ROW | 50 | #define DIODE_DIRECTION COL2ROW |
| @@ -70,7 +65,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 70 | 65 | ||
| 71 | /* key combination for command */ | 66 | /* key combination for command */ |
| 72 | #define IS_COMMAND() ( \ | 67 | #define IS_COMMAND() ( \ |
| 73 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | 68 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LGUI)) \ |
| 74 | ) | 69 | ) |
| 75 | 70 | ||
| 76 | /* ws2812 RGB LED */ | 71 | /* ws2812 RGB LED */ |
diff --git a/keyboards/orthodox/rev1/rules.mk b/keyboards/orthodox/rev1/rules.mk index f84561674..7e3182209 100644 --- a/keyboards/orthodox/rev1/rules.mk +++ b/keyboards/orthodox/rev1/rules.mk | |||
| @@ -1 +1,2 @@ | |||
| 1 | BACKLIGHT_ENABLE = no \ No newline at end of file | 1 | BACKLIGHT_ENABLE = no |
| 2 | BOOTLOADER = caterina | ||
diff --git a/keyboards/orthodox/rev3/config.h b/keyboards/orthodox/rev3/config.h index 5022e888b..851499176 100644 --- a/keyboards/orthodox/rev3/config.h +++ b/keyboards/orthodox/rev3/config.h | |||
| @@ -70,7 +70,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 70 | 70 | ||
| 71 | /* key combination for command */ | 71 | /* key combination for command */ |
| 72 | #define IS_COMMAND() ( \ | 72 | #define IS_COMMAND() ( \ |
| 73 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | 73 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LGUI)) \ |
| 74 | ) | 74 | ) |
| 75 | 75 | ||
| 76 | /* ws2812 RGB LED */ | 76 | /* ws2812 RGB LED */ |
diff --git a/keyboards/orthodox/rev3/rules.mk b/keyboards/orthodox/rev3/rules.mk index 7b30c0bef..7e3182209 100644 --- a/keyboards/orthodox/rev3/rules.mk +++ b/keyboards/orthodox/rev3/rules.mk | |||
| @@ -1 +1,2 @@ | |||
| 1 | BACKLIGHT_ENABLE = no | 1 | BACKLIGHT_ENABLE = no |
| 2 | BOOTLOADER = caterina | ||
diff --git a/keyboards/orthodox/rev3_teensy/config.h b/keyboards/orthodox/rev3_teensy/config.h new file mode 100644 index 000000000..daba627fa --- /dev/null +++ b/keyboards/orthodox/rev3_teensy/config.h | |||
| @@ -0,0 +1,93 @@ | |||
| 1 | /* | ||
| 2 | This is the c configuration file for the subproject | ||
| 3 | |||
| 4 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
| 5 | Copyright 2015 Jack Humbert | ||
| 6 | Copyright 2017 Art Ortenburger | ||
| 7 | |||
| 8 | This program is free software: you can redistribute it and/or modify | ||
| 9 | it under the terms of the GNU General Public License as published by | ||
| 10 | the Free Software Foundation, either version 2 of the License, or | ||
| 11 | (at your option) any later version. | ||
| 12 | |||
| 13 | This program is distributed in the hope that it will be useful, | ||
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | GNU General Public License for more details. | ||
| 17 | |||
| 18 | You should have received a copy of the GNU General Public License | ||
| 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 20 | */ | ||
| 21 | |||
| 22 | #ifndef REV3_TEENSY_CONFIG_H | ||
| 23 | #define REV3_TEENSY_CONFIG_H | ||
| 24 | |||
| 25 | #include "config_common.h" | ||
| 26 | |||
| 27 | /* USB Device descriptor parameter */ | ||
| 28 | #define VENDOR_ID 0xFEED | ||
| 29 | #define PRODUCT_ID 0x3060 | ||
| 30 | #define DEVICE_VER 0x0001 | ||
| 31 | #define MANUFACTURER deductivemonkee | ||
| 32 | #define PRODUCT Monkeebs Orthodox Rev.3 (Teensy) | ||
| 33 | #define DESCRIPTION Bananadox | ||
| 34 | |||
| 35 | /* key matrix size */ | ||
| 36 | // Rows are doubled-up | ||
| 37 | #define MATRIX_ROWS 6 | ||
| 38 | #define MATRIX_COLS 9 | ||
| 39 | |||
| 40 | // wiring of each half | ||
| 41 | |||
| 42 | //REV.3 TEENSY | ||
| 43 | #define MATRIX_ROW_PINS { B0, C6, C7, } | ||
| 44 | #define MATRIX_COL_PINS { D2, F5, F6, D6, D7, B4, B5, B6, F7 } | ||
| 45 | |||
| 46 | /* COL2ROW or ROW2COL */ | ||
| 47 | #define DIODE_DIRECTION COL2ROW | ||
| 48 | |||
| 49 | /* define if matrix has ghost */ | ||
| 50 | //#define MATRIX_HAS_GHOST | ||
| 51 | |||
| 52 | /* number of backlight levels */ | ||
| 53 | // #define BACKLIGHT_LEVELS 3 | ||
| 54 | |||
| 55 | /* Set 0 if debouncing isn't needed */ | ||
| 56 | #define DEBOUNCING_DELAY 5 | ||
| 57 | |||
| 58 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 59 | // #define LOCKING_SUPPORT_ENABLE | ||
| 60 | /* Locking resynchronize hack */ | ||
| 61 | // #define LOCKING_RESYNC_ENABLE | ||
| 62 | |||
| 63 | /* key combination for command */ | ||
| 64 | #define IS_COMMAND() ( \ | ||
| 65 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LGUI)) \ | ||
| 66 | ) | ||
| 67 | |||
| 68 | /* ws2812 RGB LED */ | ||
| 69 | //#define RGB_DI_PIN D3 | ||
| 70 | //#define RGBLIGHT_TIMER | ||
| 71 | //#define RGBLED_NUM 16 // Number of LEDs | ||
| 72 | //#define ws2812_PORTREG PORTD | ||
| 73 | //#define ws2812_DDRREG DDRD | ||
| 74 | |||
| 75 | /* | ||
| 76 | * Feature disable options | ||
| 77 | * These options are also useful to firmware size reduction. | ||
| 78 | */ | ||
| 79 | |||
| 80 | /* disable debug print */ | ||
| 81 | // #define NO_DEBUG | ||
| 82 | |||
| 83 | /* disable print */ | ||
| 84 | // #define NO_PRINT | ||
| 85 | |||
| 86 | /* disable action features */ | ||
| 87 | //#define NO_ACTION_LAYER | ||
| 88 | //#define NO_ACTION_TAPPING | ||
| 89 | //#define NO_ACTION_ONESHOT | ||
| 90 | //#define NO_ACTION_MACRO | ||
| 91 | //#define NO_ACTION_FUNCTION | ||
| 92 | |||
| 93 | #endif | ||
diff --git a/keyboards/orthodox/rev3_teensy/rev3_teensy.c b/keyboards/orthodox/rev3_teensy/rev3_teensy.c new file mode 100644 index 000000000..ae45e34b1 --- /dev/null +++ b/keyboards/orthodox/rev3_teensy/rev3_teensy.c | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* | ||
| 2 | This is the source file for the subproject | ||
| 3 | |||
| 4 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
| 5 | Copyright 2015 Jack Humbert | ||
| 6 | Copyright 2017 Art Ortenburger | ||
| 7 | |||
| 8 | This program is free software: you can redistribute it and/or modify | ||
| 9 | it under the terms of the GNU General Public License as published by | ||
| 10 | the Free Software Foundation, either version 2 of the License, or | ||
| 11 | (at your option) any later version. | ||
| 12 | |||
| 13 | This program is distributed in the hope that it will be useful, | ||
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | GNU General Public License for more details. | ||
| 17 | |||
| 18 | You should have received a copy of the GNU General Public License | ||
| 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 20 | */ | ||
| 21 | |||
| 22 | #include "orthodox.h" | ||
| 23 | |||
| 24 | void matrix_init_kb(void) { | ||
| 25 | |||
| 26 | //// // green led on | ||
| 27 | //// DDRD |= (1<<5); | ||
| 28 | //// PORTD &= ~(1<<5); | ||
| 29 | |||
| 30 | //// // orange led on | ||
| 31 | //// DDRB |= (1<<0); | ||
| 32 | //// PORTB &= ~(1<<0); | ||
| 33 | |||
| 34 | matrix_init_user(); | ||
| 35 | }; | ||
diff --git a/keyboards/orthodox/rev3_teensy/rev3_teensy.h b/keyboards/orthodox/rev3_teensy/rev3_teensy.h new file mode 100644 index 000000000..18b47671c --- /dev/null +++ b/keyboards/orthodox/rev3_teensy/rev3_teensy.h | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | /* | ||
| 2 | This is the header file for the subproject | ||
| 3 | |||
| 4 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
| 5 | Copyright 2015 Jack Humbert | ||
| 6 | Copyright 2017 Art Ortenburger | ||
| 7 | |||
| 8 | This program is free software: you can redistribute it and/or modify | ||
| 9 | it under the terms of the GNU General Public License as published by | ||
| 10 | the Free Software Foundation, either version 2 of the License, or | ||
| 11 | (at your option) any later version. | ||
| 12 | |||
| 13 | This program is distributed in the hope that it will be useful, | ||
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | GNU General Public License for more details. | ||
| 17 | |||
| 18 | You should have received a copy of the GNU General Public License | ||
| 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 20 | */ | ||
| 21 | |||
| 22 | #ifndef REV3_TEENSY_H | ||
| 23 | #define REV3_TEENSY_H | ||
| 24 | |||
| 25 | #include "orthodox.h" | ||
| 26 | |||
| 27 | //void promicro_bootloader_jmp(bool program); | ||
| 28 | #include "quantum.h" | ||
| 29 | |||
| 30 | //void promicro_bootloader_jmp(bool program); | ||
| 31 | |||
| 32 | #define KEYMAP( \ | ||
| 33 | L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \ | ||
| 34 | L10, L11, L12, L13, L14, L15, L16, L18, R10, R12, R13, R14, R15, R16, R17, R18, \ | ||
| 35 | L20, L21, L22, L23, L24, L25, L26, L27, L28, R20, R21, R22, R23, R24, R25, R26, R27, R28 \ | ||
| 36 | ) \ | ||
| 37 | { \ | ||
| 38 | { L00, L01, L02, L03, L04, L05 }, \ | ||
| 39 | { L10, L11, L12, L13, L14, L15, L16, KC_NO, L18}, \ | ||
| 40 | { L20, L21, L22, L23, L24, L25, L26, L27, L28 }, \ | ||
| 41 | { R05, R04, R03, R02, R01, R00 }, \ | ||
| 42 | { R18, R17, R16, R15, R14, R13, R12, KC_NO, R10 }, \ | ||
| 43 | { R28, R27, R26, R25, R24, R23, R22, R21, R20 } \ | ||
| 44 | } | ||
| 45 | |||
| 46 | #endif | ||
| 47 | |||
diff --git a/keyboards/orthodox/rev3_teensy/rules.mk b/keyboards/orthodox/rev3_teensy/rules.mk new file mode 100644 index 000000000..409061345 --- /dev/null +++ b/keyboards/orthodox/rev3_teensy/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | BACKLIGHT_ENABLE = no | ||
| 2 | BOOTLOADER = halfkay | ||
diff --git a/keyboards/orthodox/rules.mk b/keyboards/orthodox/rules.mk index 1bbae99a3..7132a915b 100644 --- a/keyboards/orthodox/rules.mk +++ b/keyboards/orthodox/rules.mk | |||
| @@ -4,7 +4,6 @@ SRC += matrix.c \ | |||
| 4 | serial.c | 4 | serial.c |
| 5 | 5 | ||
| 6 | # MCU name | 6 | # MCU name |
| 7 | #MCU = at90usb1287 | ||
| 8 | MCU = atmega32u4 | 7 | MCU = atmega32u4 |
| 9 | 8 | ||
| 10 | # Processor frequency. | 9 | # Processor frequency. |
| @@ -43,7 +42,6 @@ F_USB = $(F_CPU) | |||
| 43 | # This definition is optional, and if your keyboard supports multiple bootloaders of | 42 | # This definition is optional, and if your keyboard supports multiple bootloaders of |
| 44 | # different sizes, comment this out, and the correct address will be loaded | 43 | # different sizes, comment this out, and the correct address will be loaded |
| 45 | # automatically (+60). See bootloader.mk for all options. | 44 | # automatically (+60). See bootloader.mk for all options. |
| 46 | BOOTLOADER = caterina | ||
| 47 | 45 | ||
| 48 | # Interrupt driven control endpoint task(+60) | 46 | # Interrupt driven control endpoint task(+60) |
| 49 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | 47 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT |
