diff options
| author | Drashna Jael're <drashna@live.com> | 2021-02-23 13:57:26 -0800 |
|---|---|---|
| committer | Drashna Jael're <drashna@live.com> | 2021-02-23 13:57:26 -0800 |
| commit | 146b042514569acac33b616aa278d293af594f49 (patch) | |
| tree | f169aef071affe58195f3bc992ceb89e615de633 /layouts | |
| parent | 2abfa624c90df49fe4f0639a54961fd54a1255ac (diff) | |
| parent | 0b69e4df818c2515cf4eee3d8b6fd4a07775b887 (diff) | |
| download | qmk_firmware-146b042514569acac33b616aa278d293af594f49.tar.gz qmk_firmware-146b042514569acac33b616aa278d293af594f49.zip | |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/community/ergodox/drashna/keymap.c | 15 | ||||
| -rw-r--r-- | layouts/community/ortho_4x12/drashna/keymap.c | 5 | ||||
| -rw-r--r-- | layouts/community/ortho_5x12/drashna/keymap.c | 18 | ||||
| -rw-r--r-- | layouts/community/ortho_5x12/drashna/rules.mk | 2 | ||||
| -rw-r--r-- | layouts/community/split_3x6_3/drashna/chconf.h | 9 | ||||
| -rw-r--r-- | layouts/community/split_3x6_3/drashna/config.h | 28 | ||||
| -rw-r--r-- | layouts/community/split_3x6_3/drashna/keymap.c | 11 | ||||
| -rw-r--r-- | layouts/community/split_3x6_3/drashna/mcuconf.h | 16 | ||||
| -rw-r--r-- | layouts/community/split_3x6_3/drashna/rules.mk | 2 |
9 files changed, 58 insertions, 48 deletions
diff --git a/layouts/community/ergodox/drashna/keymap.c b/layouts/community/ergodox/drashna/keymap.c index fb5bcc6bd..2bcf672a9 100644 --- a/layouts/community/ergodox/drashna/keymap.c +++ b/layouts/community/ergodox/drashna/keymap.c | |||
| @@ -40,17 +40,20 @@ bool skip_leds = false; | |||
| 40 | * ease of use. K## is a placeholder to pass through the individual keycodes | 40 | * ease of use. K## is a placeholder to pass through the individual keycodes |
| 41 | */ | 41 | */ |
| 42 | // clang-format off | 42 | // clang-format off |
| 43 | #define LAYOUT_ergodox_wrapper(...) LAYOUT_ergodox(__VA_ARGS__) | ||
| 44 | #define LAYOUT_ergodox_pretty_wrapper(...) LAYOUT_ergodox_pretty(__VA_ARGS__) | ||
| 45 | |||
| 43 | #define LAYOUT_ergodox_pretty_base( \ | 46 | #define LAYOUT_ergodox_pretty_base( \ |
| 44 | K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \ | 47 | K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \ |
| 45 | K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \ | 48 | K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \ |
| 46 | K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \ | 49 | K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \ |
| 47 | ) \ | 50 | ) \ |
| 48 | LAYOUT_ergodox_pretty_wrapper( \ | 51 | LAYOUT_ergodox_pretty_wrapper( \ |
| 49 | KC_ESC, ________________NUMBER_LEFT________________, UC_FLIP, UC_TABL, ________________NUMBER_RIGHT_______________, KC_MINS, \ | 52 | KC_ESC, ________________NUMBER_LEFT________________, UC_FLIP, UC_TABL, ________________NUMBER_RIGHT_______________, KC_MINS, \ |
| 50 | LALT_T(KC_TAB), K01, K02, K03, K04, K05, TG(_DIABLO), TG(_DIABLO), K06, K07, K08, K09, K0A, KC_BSLS, \ | 53 | LALT_T(KC_TAB), K01, K02, K03, K04, K05, TG_DBLO, TG_DBLO, K06, K07, K08, K09, K0A, KC_BSLS, \ |
| 51 | KC_C1R3, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \ | 54 | KC_C1R3, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(K1B), \ |
| 52 | KC_MLSF, CTL_T(K21), K22, K23, K24, K25, TG(_GAMEPAD), TG(_GAMEPAD), K26, K27, K28, K29, RCTL_T(K2A), KC_MRSF, \ | 55 | KC_MLSF, CTL_T(K21), K22, K23, K24, K25, TG_GAME, TG_GAME, K26, K27, K28, K29, RCTL_T(K2A), KC_MRSF, \ |
| 53 | KC_GRV, OS_MEH, OS_HYPR, KC_LBRC, KC_RBRC, KC_BTN1, KC_BTN3, KC_BTN2, PM_SCROLL, PM_PRECISION, \ | 56 | KC_GRV, OS_MEH, OS_HYPR, KC_LBRC, KC_RBRC, KC_BTN1, KC_BTN3, KC_BTN2, PM_SCROLL, PM_PRECISION, \ |
| 54 | OS_LALT, OS_LGUI, OS_RGUI, CTL_T(KC_ESCAPE), \ | 57 | OS_LALT, OS_LGUI, OS_RGUI, CTL_T(KC_ESCAPE), \ |
| 55 | KC_APP, KC_MENU, \ | 58 | KC_APP, KC_MENU, \ |
| 56 | KC_SPC, LT(_LOWER, KC_BSPC), OS_LWR, OS_RSE, LT(_RAISE, KC_DEL), KC_ENT \ | 59 | KC_SPC, LT(_LOWER, KC_BSPC), OS_LWR, OS_RSE, LT(_RAISE, KC_DEL), KC_ENT \ |
| @@ -235,7 +238,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 235 | KC_ESC, KC_NO, KC_1, KC_2, KC_3, HYPR(KC_Q), HYPR(KC_GRV), KC_TRNS, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_NO, | 238 | KC_ESC, KC_NO, KC_1, KC_2, KC_3, HYPR(KC_Q), HYPR(KC_GRV), KC_TRNS, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_NO, |
| 236 | KC_F1, KC_K, KC_Q, KC_W, KC_E, KC_R, KC_T, UC_SHRG, UC_DISA, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | 239 | KC_F1, KC_K, KC_Q, KC_W, KC_E, KC_R, KC_T, UC_SHRG, UC_DISA, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, |
| 237 | KC_TAB, KC_G, KC_A, KC_S, KC_D, KC_F, KC_I, KC_O, KC_NO, KC_NO, KC_NO, KC_NO, | 240 | KC_TAB, KC_G, KC_A, KC_S, KC_D, KC_F, KC_I, KC_O, KC_NO, KC_NO, KC_NO, KC_NO, |
| 238 | KC_LCTL, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_TRNS, TG(_GAMEPAD), KC_N, KC_M, KC_NO, KC_NO, KC_NO, KC_NO, | 241 | KC_LCTL, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_TRNS, TG_GAME, KC_N, KC_M, KC_NO, KC_NO, KC_NO, KC_NO, |
| 239 | KC_GRV, KC_U, KC_I, KC_Y, KC_T, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_NO, | 242 | KC_GRV, KC_U, KC_I, KC_Y, KC_T, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_NO, |
| 240 | KC_O, KC_P, MAGIC_TOGGLE_NKRO, LALT(KC_PSCR), | 243 | KC_O, KC_P, MAGIC_TOGGLE_NKRO, LALT(KC_PSCR), |
| 241 | KC_LGUI, KC_HYPR, | 244 | KC_LGUI, KC_HYPR, |
diff --git a/layouts/community/ortho_4x12/drashna/keymap.c b/layouts/community/ortho_4x12/drashna/keymap.c index d0df7f5c3..61f22dfe9 100644 --- a/layouts/community/ortho_4x12/drashna/keymap.c +++ b/layouts/community/ortho_4x12/drashna/keymap.c | |||
| @@ -50,14 +50,15 @@ enum planck_keycodes { | |||
| 50 | * of use. K## is a placeholder to pass through the individual keycodes | 50 | * of use. K## is a placeholder to pass through the individual keycodes |
| 51 | */ | 51 | */ |
| 52 | // clang-format off | 52 | // clang-format off |
| 53 | #define LAYOUT_ortho_4x12_wrapper(...) LAYOUT_ortho_4x12(__VA_ARGS__) | ||
| 53 | #define LAYOUT_ortho_4x12_base( \ | 54 | #define LAYOUT_ortho_4x12_base( \ |
| 54 | K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \ | 55 | K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \ |
| 55 | K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \ | 56 | K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \ |
| 56 | K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \ | 57 | K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \ |
| 57 | ) \ | 58 | ) \ |
| 58 | LAYOUT_ortho_4x12_wrapper( \ | 59 | LAYOUT_ortho_4x12_wrapper( \ |
| 59 | KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_DEL, \ | 60 | KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_DEL, \ |
| 60 | LALT_T(KC_TAB), K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \ | 61 | LALT_T(KC_TAB), K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(K1B), \ |
| 61 | KC_MLSF, CTL_T(K21), K22, K23, K24, K25, K26, K27, K28, K29, RCTL_T(K2A), KC_ENT, \ | 62 | KC_MLSF, CTL_T(K21), K22, K23, K24, K25, K26, K27, K28, K29, RCTL_T(K2A), KC_ENT, \ |
| 62 | BACKLIT, OS_LCTL, OS_LALT, OS_LGUI, PLNK_1, PLNK_2, PLNK_3, PLNK_4, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ | 63 | BACKLIT, OS_LCTL, OS_LALT, OS_LGUI, PLNK_1, PLNK_2, PLNK_3, PLNK_4, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ |
| 63 | ) | 64 | ) |
diff --git a/layouts/community/ortho_5x12/drashna/keymap.c b/layouts/community/ortho_5x12/drashna/keymap.c index 98c349b2e..9f6622c7d 100644 --- a/layouts/community/ortho_5x12/drashna/keymap.c +++ b/layouts/community/ortho_5x12/drashna/keymap.c | |||
| @@ -24,17 +24,17 @@ | |||
| 24 | * of use. K## is a placeholder to pass through the individual keycodes | 24 | * of use. K## is a placeholder to pass through the individual keycodes |
| 25 | */ | 25 | */ |
| 26 | // clang-format off | 26 | // clang-format off |
| 27 | #define LAYOUT_ortho_5x12_wrapper(...) LAYOUT_ortho_5x12(__VA_ARGS__) | ||
| 27 | #define LAYOUT_ortho_5x12_base( \ | 28 | #define LAYOUT_ortho_5x12_base( \ |
| 28 | K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \ | 29 | K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \ |
| 29 | K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \ | 30 | K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \ |
| 30 | K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, \ | 31 | K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \ |
| 31 | K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A \ | ||
| 32 | ) \ | 32 | ) \ |
| 33 | LAYOUT_ortho_5x12_wrapper( \ | 33 | LAYOUT_ortho_5x12_wrapper( \ |
| 34 | KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_BSPC, \ | 34 | KC_ESC, ________________NUMBER_LEFT________________, ________________NUMBER_RIGHT_______________, KC_BSPC, \ |
| 35 | LALT_T(KC_TAB), K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, KC_BSPC, \ | 35 | LALT_T(KC_TAB), K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_BSPC, \ |
| 36 | KC_C1R3, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, RALT_T(KC_QUOT), \ | 36 | KC_C1R3, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(K1B), \ |
| 37 | KC_MLSF, CTL_T(K31), K32, K33, K34, K35, K36, K37, K38, K39, RCTL_T(K3A), KC_ENT, \ | 37 | KC_MLSF, CTL_T(K21), K22, K23, K24, K25, K26, K27, K28, K29, RCTL_T(K2A), KC_ENT, \ |
| 38 | KC_NO, OS_LCTL, OS_LALT, OS_LGUI, SP_LWER, BK_LWER, DL_RAIS, ET_RAIS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ | 38 | KC_NO, OS_LCTL, OS_LALT, OS_LGUI, SP_LWER, BK_LWER, DL_RAIS, ET_RAIS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ |
| 39 | ) | 39 | ) |
| 40 | 40 | ||
| @@ -44,28 +44,24 @@ | |||
| 44 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 44 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 45 | 45 | ||
| 46 | [_QWERTY] = LAYOUT_ortho_5x12_base_wrapper( | 46 | [_QWERTY] = LAYOUT_ortho_5x12_base_wrapper( |
| 47 | ________________NUMBER_LEFT________________, ________________NUMBER_RIGHT_______________, | ||
| 48 | _________________QWERTY_L1_________________, _________________QWERTY_R1_________________, | 47 | _________________QWERTY_L1_________________, _________________QWERTY_R1_________________, |
| 49 | _________________QWERTY_L2_________________, _________________QWERTY_R2_________________, | 48 | _________________QWERTY_L2_________________, _________________QWERTY_R2_________________, |
| 50 | _________________QWERTY_L3_________________, _________________QWERTY_R3_________________ | 49 | _________________QWERTY_L3_________________, _________________QWERTY_R3_________________ |
| 51 | ), | 50 | ), |
| 52 | 51 | ||
| 53 | [_COLEMAK] = LAYOUT_ortho_5x12_base_wrapper( | 52 | [_COLEMAK] = LAYOUT_ortho_5x12_base_wrapper( |
| 54 | ________________NUMBER_LEFT________________, ________________NUMBER_RIGHT_______________, | ||
| 55 | _________________COLEMAK_L1________________, _________________COLEMAK_R1________________, | 53 | _________________COLEMAK_L1________________, _________________COLEMAK_R1________________, |
| 56 | _________________COLEMAK_L2________________, _________________COLEMAK_R2________________, | 54 | _________________COLEMAK_L2________________, _________________COLEMAK_R2________________, |
| 57 | _________________COLEMAK_L3________________, _________________COLEMAK_R3________________ | 55 | _________________COLEMAK_L3________________, _________________COLEMAK_R3________________ |
| 58 | ), | 56 | ), |
| 59 | 57 | ||
| 60 | [_DVORAK] = LAYOUT_ortho_5x12_base_wrapper( | 58 | [_DVORAK] = LAYOUT_ortho_5x12_base_wrapper( |
| 61 | ________________NUMBER_LEFT________________, ________________NUMBER_RIGHT_______________, | ||
| 62 | _________________DVORAK_L1_________________, _________________DVORAK_R1_________________, | 59 | _________________DVORAK_L1_________________, _________________DVORAK_R1_________________, |
| 63 | _________________DVORAK_L2_________________, _________________DVORAK_R2_________________, | 60 | _________________DVORAK_L2_________________, _________________DVORAK_R2_________________, |
| 64 | _________________DVORAK_L3_________________, _________________DVORAK_R3_________________ | 61 | _________________DVORAK_L3_________________, _________________DVORAK_R3_________________ |
| 65 | ), | 62 | ), |
| 66 | 63 | ||
| 67 | [_WORKMAN] = LAYOUT_ortho_5x12_base_wrapper( | 64 | [_WORKMAN] = LAYOUT_ortho_5x12_base_wrapper( |
| 68 | ________________NUMBER_LEFT________________, ________________NUMBER_RIGHT_______________, | ||
| 69 | _________________WORKMAN_L1________________, _________________WORKMAN_R1________________, | 65 | _________________WORKMAN_L1________________, _________________WORKMAN_R1________________, |
| 70 | _________________WORKMAN_L2________________, _________________WORKMAN_R2________________, | 66 | _________________WORKMAN_L2________________, _________________WORKMAN_R2________________, |
| 71 | _________________WORKMAN_L3________________, _________________WORKMAN_R3________________ | 67 | _________________WORKMAN_L3________________, _________________WORKMAN_R3________________ |
diff --git a/layouts/community/ortho_5x12/drashna/rules.mk b/layouts/community/ortho_5x12/drashna/rules.mk index 2c59c614f..af68e04c0 100644 --- a/layouts/community/ortho_5x12/drashna/rules.mk +++ b/layouts/community/ortho_5x12/drashna/rules.mk | |||
| @@ -9,6 +9,8 @@ NKRO_ENABLE = yes | |||
| 9 | ifeq ($(strip $(KEYBOARD)), fractal) | 9 | ifeq ($(strip $(KEYBOARD)), fractal) |
| 10 | RGB_MATRIX_ENABLE = no | 10 | RGB_MATRIX_ENABLE = no |
| 11 | AUDIO_ENABLE = yes | 11 | AUDIO_ENABLE = yes |
| 12 | AUDIO_SUPPORTED = yes | ||
| 13 | RGBLIGHT_SUPPORTED = yes | ||
| 12 | RGBLIGHT_ENABLE = yes | 14 | RGBLIGHT_ENABLE = yes |
| 13 | RGBLIGHT_TWINKLE = yes | 15 | RGBLIGHT_TWINKLE = yes |
| 14 | RGBLIGHT_STARTUP_ANIMATION = yes | 16 | RGBLIGHT_STARTUP_ANIMATION = yes |
diff --git a/layouts/community/split_3x6_3/drashna/chconf.h b/layouts/community/split_3x6_3/drashna/chconf.h new file mode 100644 index 000000000..ffcfb1989 --- /dev/null +++ b/layouts/community/split_3x6_3/drashna/chconf.h | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | |||
| 2 | #define CH_CFG_ST_RESOLUTION 16 | ||
| 3 | #define CH_CFG_ST_FREQUENCY 10000 | ||
| 4 | |||
| 5 | #if __has_include("platforms/chibios/common/configs/chconf.h") | ||
| 6 | # include_next "platforms/chibios/common/configs/chconf.h" | ||
| 7 | #else | ||
| 8 | # include_next "chconf.h" | ||
| 9 | #endif | ||
diff --git a/layouts/community/split_3x6_3/drashna/config.h b/layouts/community/split_3x6_3/drashna/config.h index 17d7b9ec7..dd950ce7b 100644 --- a/layouts/community/split_3x6_3/drashna/config.h +++ b/layouts/community/split_3x6_3/drashna/config.h | |||
| @@ -19,8 +19,10 @@ | |||
| 19 | /* Select hand configuration */ | 19 | /* Select hand configuration */ |
| 20 | 20 | ||
| 21 | // #define MASTER_LEFT | 21 | // #define MASTER_LEFT |
| 22 | #define MASTER_RIGHT | 22 | // #define MASTER_RIGHT |
| 23 | // #define EE_HAND | 23 | #define EE_HANDS |
| 24 | #define SPLIT_MODS_ENABLE | ||
| 25 | |||
| 24 | #undef USE_I2C | 26 | #undef USE_I2C |
| 25 | #undef SSD1306OLED | 27 | #undef SSD1306OLED |
| 26 | 28 | ||
| @@ -40,7 +42,7 @@ | |||
| 40 | #ifdef RGB_MATRIX_ENABLE | 42 | #ifdef RGB_MATRIX_ENABLE |
| 41 | # ifdef CONVERT_TO_PROTON_C | 43 | # ifdef CONVERT_TO_PROTON_C |
| 42 | # undef RGB_DI_PIN | 44 | # undef RGB_DI_PIN |
| 43 | # define RGB_DI_PIN PAL_LINE(GPIOA, 3) | 45 | # define RGB_DI_PIN A3 |
| 44 | # endif | 46 | # endif |
| 45 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses | 47 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses |
| 46 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) | 48 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses) |
| @@ -56,24 +58,24 @@ | |||
| 56 | #endif | 58 | #endif |
| 57 | 59 | ||
| 58 | #ifdef CONVERT_TO_PROTON_C | 60 | #ifdef CONVERT_TO_PROTON_C |
| 59 | # define WS2812_PWM_DRIVER PWMD15 // default: PWMD2 | 61 | # define WS2812_PWM_DRIVER PWMD2 // default: PWMD2 |
| 60 | # define WS2812_PWM_CHANNEL 2 // default: 2 | 62 | # define WS2812_PWM_CHANNEL 4 // default: 2 |
| 61 | # define WS2812_PWM_PAL_MODE 9 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 2 | 63 | # define WS2812_PWM_PAL_MODE 1 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 2 |
| 62 | # define WS2812_DMA_STREAM STM32_DMA1_STREAM5 // DMA Stream for TIMx_UP, see the respective reference manual for the appropriate values for your MCU. | 64 | # define WS2812_DMA_STREAM STM32_DMA1_STREAM2 // DMA Stream for TIMx_UP, see the respective reference manual for the appropriate values for your MCU. |
| 63 | # define WS2812_DMA_CHANNEL 5 // DMA Channel for TIMx_UP, see the respective reference manual for the appropriate values for your MCU. | 65 | # define WS2812_DMA_CHANNEL 2 // DMA Channel for TIMx_UP, see the respective reference manual for the appropriate values for your MCU. |
| 64 | # define WS2812_DMAMUX_ID STM32_DMAMUX1_TIM15_UP // DMAMUX configuration for TIMx_UP -- only required if your MCU has a DMAMUX peripheral, see the respective reference manual for the appropriate values for your MCU. | 66 | # define WS2812_DMAMUX_ID STM32_DMAMUX1_TIM2_UP // DMAMUX configuration for TIMx_UP -- only required if your MCU has a DMAMUX peripheral, see the respective reference manual for the appropriate values for your MCU. |
| 65 | 67 | ||
| 66 | # undef SOFT_SERIAL_PIN | 68 | # undef SOFT_SERIAL_PIN |
| 67 | # define SOFT_SERIAL_PIN D3 | 69 | # define SOFT_SERIAL_PIN D3 |
| 68 | # define SERIAL_USART_DRIVER SD1 // USART driver of TX pin. default: SD1 | 70 | # define SERIAL_USART_DRIVER SD1 // USART driver of TX pin. default: SD1 |
| 69 | # define SERIAL_USART_TX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7 | 71 | # define SERIAL_USART_TX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7 |
| 70 | 72 | ||
| 71 | |||
| 72 | // #define INIT_EE_HANDS_LEFT | 73 | // #define INIT_EE_HANDS_LEFT |
| 73 | // #define INIT_EE_HANDS_RIGHT | 74 | // #define INIT_EE_HANDS_RIGHT |
| 74 | #endif | 75 | #endif |
| 75 | 76 | ||
| 76 | #ifdef AUDIO_ENABLE | 77 | |
| 78 | #if defined(AUDIO_ENABLE) && !defined(CONVERT_TO_PROTON_C) | ||
| 77 | # define AUDIO_PIN B6 | 79 | # define AUDIO_PIN B6 |
| 78 | # define NO_MUSIC_MODE | 80 | # define NO_MUSIC_MODE |
| 79 | #endif | 81 | #endif |
| @@ -88,9 +90,5 @@ | |||
| 88 | #else | 90 | #else |
| 89 | # define PRODUCT Drashna Hacked Corne Keyboard | 91 | # define PRODUCT Drashna Hacked Corne Keyboard |
| 90 | #endif | 92 | #endif |
| 91 | #define OLED_FONT_H "layouts/community/split_3x6_3/drashna/glcdfont.c" | ||
| 92 | // #define OLED_FONT_WIDTH 5 | ||
| 93 | // #define OLED_FONT_HEIGHT 7 | ||
| 94 | 93 | ||
| 95 | #define OLED_DISABLE_TIMEOUT | ||
| 96 | #define TAPPING_TERM_PER_KEY | 94 | #define TAPPING_TERM_PER_KEY |
diff --git a/layouts/community/split_3x6_3/drashna/keymap.c b/layouts/community/split_3x6_3/drashna/keymap.c index 513cc7f7d..65e05f64b 100644 --- a/layouts/community/split_3x6_3/drashna/keymap.c +++ b/layouts/community/split_3x6_3/drashna/keymap.c | |||
| @@ -27,14 +27,15 @@ enum crkbd_keycodes { RGBRST = NEW_SAFE_RANGE }; | |||
| 27 | */ | 27 | */ |
| 28 | 28 | ||
| 29 | // clang-format off | 29 | // clang-format off |
| 30 | #define LAYOUT_split_3x6_3_wrapper(...) LAYOUT_split_3x6_3(__VA_ARGS__) | ||
| 30 | #define LAYOUT_split_3x6_3_base( \ | 31 | #define LAYOUT_split_3x6_3_base( \ |
| 31 | K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \ | 32 | K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \ |
| 32 | K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \ | 33 | K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \ |
| 33 | K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \ | 34 | K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \ |
| 34 | ) \ | 35 | ) \ |
| 35 | LAYOUT_split_3x6_3_wrapper( \ | 36 | LAYOUT_split_3x6_3_wrapper( \ |
| 36 | KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_MINS, \ | 37 | KC_ESC, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, KC_MINS, \ |
| 37 | ALT_T(KC_TAB), K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(KC_QUOT), \ | 38 | ALT_T(KC_TAB), K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, RALT_T(K1B), \ |
| 38 | OS_LSFT, CTL_T(K21), K22, K23, K24, K25, K26, K27, K28, K29, RCTL_T(K2A), OS_RSFT, \ | 39 | OS_LSFT, CTL_T(K21), K22, K23, K24, K25, K26, K27, K28, K29, RCTL_T(K2A), OS_RSFT, \ |
| 39 | RGB_MOD, KC_SPC, BK_LWER, DL_RAIS, KC_ENT, OS_RGUI \ | 40 | RGB_MOD, KC_SPC, BK_LWER, DL_RAIS, KC_ENT, OS_RGUI \ |
| 40 | ) | 41 | ) |
| @@ -121,11 +122,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 121 | 122 | ||
| 122 | #ifdef OLED_DRIVER_ENABLE | 123 | #ifdef OLED_DRIVER_ENABLE |
| 123 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | 124 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { |
| 124 | if (is_keyboard_master()) { | 125 | return OLED_ROTATION_270; |
| 125 | return OLED_ROTATION_270; | ||
| 126 | } else { | ||
| 127 | return rotation; | ||
| 128 | } | ||
| 129 | } | 126 | } |
| 130 | #endif | 127 | #endif |
| 131 | 128 | ||
diff --git a/layouts/community/split_3x6_3/drashna/mcuconf.h b/layouts/community/split_3x6_3/drashna/mcuconf.h index 429e4e1cd..649af5d1f 100644 --- a/layouts/community/split_3x6_3/drashna/mcuconf.h +++ b/layouts/community/split_3x6_3/drashna/mcuconf.h | |||
| @@ -19,14 +19,18 @@ | |||
| 19 | 19 | ||
| 20 | // #undef STM32_HSE_ENABLED | 20 | // #undef STM32_HSE_ENABLED |
| 21 | // #define STM32_HSE_ENABLED FALSE | 21 | // #define STM32_HSE_ENABLED FALSE |
| 22 | #undef STM32_GPT_USE_TIM15 | 22 | // #undef STM32_GPT_USE_TIM15 |
| 23 | #define STM32_GPT_USE_TIM15 FALSE | 23 | // #define STM32_GPT_USE_TIM15 FALSE |
| 24 | 24 | ||
| 25 | #undef STM32_PWM_USE_TIM15 | 25 | #undef STM32_PWM_USE_TIM2 |
| 26 | #define STM32_PWM_USE_TIM15 TRUE | 26 | #define STM32_PWM_USE_TIM2 TRUE |
| 27 | #undef STM32_PWM_USE_TIM3 | ||
| 28 | #define STM32_PWM_USE_TIM3 FALSE | ||
| 27 | 29 | ||
| 28 | #undef STM32_SERIAL_USE_USART1 | 30 | #undef STM32_SERIAL_USE_USART1 |
| 29 | #define STM32_SERIAL_USE_USART1 TRUE | 31 | #define STM32_SERIAL_USE_USART1 TRUE |
| 30 | 32 | ||
| 31 | #undef STM32_PWM_TIM15_IRQ_PRIORITY | 33 | // #undef STM32_PWM_TIM15_IRQ_PRIORITY |
| 32 | #define STM32_PWM_TIM15_IRQ_PRIORITY 16 | 34 | // #define STM32_PWM_TIM15_IRQ_PRIORITY 16 |
| 35 | #undef STM32_ST_USE_TIMER | ||
| 36 | #define STM32_ST_USE_TIMER 3 | ||
diff --git a/layouts/community/split_3x6_3/drashna/rules.mk b/layouts/community/split_3x6_3/drashna/rules.mk index 5358cb0ac..db284f78d 100644 --- a/layouts/community/split_3x6_3/drashna/rules.mk +++ b/layouts/community/split_3x6_3/drashna/rules.mk | |||
| @@ -29,6 +29,6 @@ endif | |||
| 29 | 29 | ||
| 30 | ifeq ($(strip $(CTPC)), yes) | 30 | ifeq ($(strip $(CTPC)), yes) |
| 31 | HAPTIC_ENABLE = no | 31 | HAPTIC_ENABLE = no |
| 32 | WS2812_DRIVER = pwm | 32 | WS2812_DRIVER = pwm # won't work without a patch to the ctpc mk file |
| 33 | SERIAL_DRIVER = usart | 33 | SERIAL_DRIVER = usart |
| 34 | endif | 34 | endif |
