diff options
| author | Drashna Jaelre <drashna@live.com> | 2022-01-30 13:20:33 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-30 13:20:33 -0800 |
| commit | 941b1d35b8e40a9c93301a1131ef3f3336fee0b5 (patch) | |
| tree | 54c8d1ec131d5c8a6e0dd89364a9840b3925fcdd /keyboards/bastardkb | |
| parent | 3555ee0555c8a9ff8aea2a101ae02a72b0e76076 (diff) | |
| download | qmk_firmware-941b1d35b8e40a9c93301a1131ef3f3336fee0b5.tar.gz qmk_firmware-941b1d35b8e40a9c93301a1131ef3f3336fee0b5.zip | |
[Keymap] Add oled improvements and cnano keymap for drashna (#16133)
Diffstat (limited to 'keyboards/bastardkb')
6 files changed, 350 insertions, 0 deletions
diff --git a/keyboards/bastardkb/charybdis/3x5/keymaps/drashna/chconf.h b/keyboards/bastardkb/charybdis/3x5/keymaps/drashna/chconf.h new file mode 100644 index 000000000..8b55eaeef --- /dev/null +++ b/keyboards/bastardkb/charybdis/3x5/keymaps/drashna/chconf.h | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | /* Copyright 2020 QMK | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | /* | ||
| 18 | * This file was auto-generated by: | ||
| 19 | * `qmk chibios-confmigrate -i keyboards/handwired/onekey/blackpill_f411/chconf.h -r platforms/chibios/common/configs/chconf.h` | ||
| 20 | */ | ||
| 21 | |||
| 22 | #pragma once | ||
| 23 | |||
| 24 | #define CH_CFG_ST_FREQUENCY 10000 | ||
| 25 | |||
| 26 | #define CH_CFG_FACTORY_OBJECTS_REGISTRY TRUE | ||
| 27 | |||
| 28 | #define CH_CFG_FACTORY_GENERIC_BUFFERS TRUE | ||
| 29 | |||
| 30 | #define CH_CFG_FACTORY_SEMAPHORES TRUE | ||
| 31 | |||
| 32 | #define CH_CFG_FACTORY_MAILBOXES TRUE | ||
| 33 | |||
| 34 | #define CH_CFG_FACTORY_OBJ_FIFOS TRUE | ||
| 35 | |||
| 36 | #define CH_CFG_FACTORY_PIPES TRUE | ||
| 37 | |||
| 38 | #include_next <chconf.h> | ||
diff --git a/keyboards/bastardkb/charybdis/3x5/keymaps/drashna/config.h b/keyboards/bastardkb/charybdis/3x5/keymaps/drashna/config.h new file mode 100644 index 000000000..4633db2fc --- /dev/null +++ b/keyboards/bastardkb/charybdis/3x5/keymaps/drashna/config.h | |||
| @@ -0,0 +1,109 @@ | |||
| 1 | /* | ||
| 2 | |||
| 3 | Copyright 2021 Quentin LEBASTARD <qlebastard@gmail.com> | ||
| 4 | |||
| 5 | This program is free software: you can redistribute it and/or modify | ||
| 6 | it under the terms of the GNU General Public License as published by | ||
| 7 | the Free Software Foundation, either version 2 of the License, or | ||
| 8 | (at your option) any later version. | ||
| 9 | |||
| 10 | This program is distributed in the hope that it will be useful, | ||
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | GNU General Public License for more details. | ||
| 14 | |||
| 15 | You should have received a copy of the GNU General Public License | ||
| 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #pragma once | ||
| 20 | |||
| 21 | #undef PRODUCT | ||
| 22 | #define PRODUCT Charybdis Nano (Blackpill) | ||
| 23 | |||
| 24 | #undef MATRIX_ROW_PINS | ||
| 25 | #define MATRIX_ROW_PINS \ | ||
| 26 | { B12, B13, B14, B15 } | ||
| 27 | #undef MATRIX_COL_PINS | ||
| 28 | #define MATRIX_COL_PINS \ | ||
| 29 | { A15, B3, B4, B5, B6 } | ||
| 30 | |||
| 31 | |||
| 32 | #undef MATRIX_ROW_PINS_RIGHT | ||
| 33 | #define MATRIX_ROW_PINS_RIGHT \ | ||
| 34 | { B12, B13, B14, B15 } | ||
| 35 | #undef MATRIX_COL_PINS_RIGHT | ||
| 36 | #define MATRIX_COL_PINS_RIGHT \ | ||
| 37 | { A15, B3, B4, B5, B6 } | ||
| 38 | |||
| 39 | #define USB_VBUS_PIN B10 | ||
| 40 | #define SPLIT_HAND_PIN C14 // high = left, low = right | ||
| 41 | |||
| 42 | // WS2812 RGB LED strip input and number of LEDs | ||
| 43 | #undef RGB_DI_PIN | ||
| 44 | #define RGB_DI_PIN A1 | ||
| 45 | #undef RGB_MATRIX_MAXIMUM_BRIGHTNESS | ||
| 46 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 | ||
| 47 | #define WS2812_PWM_DRIVER PWMD2 // default: PWMD2 | ||
| 48 | #define WS2812_PWM_CHANNEL 2 // default: 2 | ||
| 49 | #define WS2812_PWM_PAL_MODE 1 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 2 | ||
| 50 | #define WS2812_EXTERNAL_PULLUP | ||
| 51 | //#define WS2812_PWM_COMPLEMENTARY_OUTPUT // Define for a complementary timer output (TIMx_CHyN); omit for a normal timer output (TIMx_CHy). | ||
| 52 | #define WS2812_DMA_STREAM STM32_DMA1_STREAM7 // DMA Stream for TIMx_UP, see the respective reference manual for the appropriate values for your MCU. | ||
| 53 | #define WS2812_DMA_CHANNEL 3 // DMA Channel for TIMx_UP, see the respective reference manual for the appropriate values for your MCU. | ||
| 54 | #define WS2812_PWM_TARGET_PERIOD 800000 | ||
| 55 | |||
| 56 | #define DEBUG_LED_PIN C13 | ||
| 57 | |||
| 58 | /* Audio config */ | ||
| 59 | #define AUDIO_PIN B1 | ||
| 60 | #define AUDIO_PWM_DRIVER PWMD3 | ||
| 61 | #define AUDIO_PWM_CHANNEL 4 | ||
| 62 | #define AUDIO_PWM_PAL_MODE 2 | ||
| 63 | #define AUDIO_STATE_TIMER GPTD4 | ||
| 64 | |||
| 65 | /* serial.c configuration for split keyboard */ | ||
| 66 | #undef SOFT_SERIAL_PIN | ||
| 67 | #define SERIAL_USART_FULL_DUPLEX // Enable full duplex operation mode. | ||
| 68 | #define SERIAL_USART_TX_PIN A2 | ||
| 69 | #define SERIAL_USART_RX_PIN A3 | ||
| 70 | #define SERIAL_USART_DRIVER SD2 | ||
| 71 | #define SERIAL_USART_TX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7 | ||
| 72 | #define SERIAL_USART_RX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7 | ||
| 73 | #define SERIAL_USART_TIMEOUT 100 // USART driver timeout. default 100 | ||
| 74 | // #define SERIAL_USART_PIN_SWAP // swap RX and TX pins on master | ||
| 75 | // To use the highest possible baudrate (3.75Mbit/s) uncomment the following | ||
| 76 | // line, this can result in dropped communications so lower the speed if there | ||
| 77 | // are many timeouts. | ||
| 78 | // #define SERIAL_USART_SPEED (STM32_PCLK2 >> 4) | ||
| 79 | |||
| 80 | #define CRC8_USE_TABLE | ||
| 81 | #define CRC8_OPTIMIZE_SPEED | ||
| 82 | |||
| 83 | /* spi config for eeprom and pmw3360 sensor */ | ||
| 84 | #define SPI_DRIVER SPID1 | ||
| 85 | #define SPI_SCK_PIN A5 | ||
| 86 | #define SPI_SCK_PAL_MODE 5 | ||
| 87 | #define SPI_MOSI_PIN A7 | ||
| 88 | #define SPI_MOSI_PAL_MODE 5 | ||
| 89 | #define SPI_MISO_PIN A6 | ||
| 90 | #define SPI_MISO_PAL_MODE 5 | ||
| 91 | |||
| 92 | /* eeprom config */ | ||
| 93 | #define EXTERNAL_EEPROM_SPI_SLAVE_SELECT_PIN A4 | ||
| 94 | #define EXTERNAL_EEPROM_SPI_CLOCK_DIVISOR 64 | ||
| 95 | // #define EXTERNAL_EEPROM_BYTE_COUNT 8196 | ||
| 96 | // #define EXTERNAL_EEPROM_PAGE_SIZE 32 | ||
| 97 | // #define EXTERNAL_EEPROM_ADDRESS_SIZE 2 | ||
| 98 | |||
| 99 | /* pmw3360 config */ | ||
| 100 | #undef PMW3360_CS_PIN | ||
| 101 | #define PMW3360_CS_PIN B0 | ||
| 102 | #define PMW3360_SPI_MODE 3 | ||
| 103 | #define PMW3360_SPI_DIVISOR 64 | ||
| 104 | |||
| 105 | |||
| 106 | # define CHARYBDIS_MINIMUM_DEFAULT_DPI 1200 | ||
| 107 | # define CHARYBDIS_DEFAULT_DPI_CONFIG_STEP 400 | ||
| 108 | # define CHARYBDIS_MINIMUM_SNIPING_DPI 200 | ||
| 109 | # define CHARYBDIS_SNIPING_DPI_CONFIG_STEP 100 | ||
diff --git a/keyboards/bastardkb/charybdis/3x5/keymaps/drashna/halconf.h b/keyboards/bastardkb/charybdis/3x5/keymaps/drashna/halconf.h new file mode 100644 index 000000000..39644726c --- /dev/null +++ b/keyboards/bastardkb/charybdis/3x5/keymaps/drashna/halconf.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | /* Copyright 2020 Nick Brassel (tzarc) | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 3 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #pragma once | ||
| 17 | |||
| 18 | #define HAL_USE_PWM TRUE | ||
| 19 | #define HAL_USE_SERIAL TRUE | ||
| 20 | #define HAL_USE_I2C TRUE | ||
| 21 | #define HAL_USE_SPI TRUE | ||
| 22 | #define SPI_USE_WAIT TRUE | ||
| 23 | #define SPI_SELECT_MODE SPI_SELECT_MODE_PAD | ||
| 24 | #define HAL_USE_GPT TRUE | ||
| 25 | |||
| 26 | #include_next <halconf.h> | ||
diff --git a/keyboards/bastardkb/charybdis/3x5/keymaps/drashna/keymap.c b/keyboards/bastardkb/charybdis/3x5/keymaps/drashna/keymap.c new file mode 100644 index 000000000..aba169dbb --- /dev/null +++ b/keyboards/bastardkb/charybdis/3x5/keymaps/drashna/keymap.c | |||
| @@ -0,0 +1,100 @@ | |||
| 1 | /* | ||
| 2 | * Copyright 2021 Quentin LEBASTARD <qlebastard@gmail.com> | ||
| 3 | * Copyright 2021 Drashna Jael're @drashna | ||
| 4 | * | ||
| 5 | * This program is free software: you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation, either version 2 of the License, or | ||
| 8 | * (at your option) any later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #include "drashna.h" | ||
| 20 | |||
| 21 | #define LAYOUT_charybdis_3x5_wrapper(...) LAYOUT_charybdis_3x5(__VA_ARGS__) | ||
| 22 | #define LAYOUT_charybdis_3x5_base( \ | ||
| 23 | K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \ | ||
| 24 | K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \ | ||
| 25 | K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \ | ||
| 26 | ) \ | ||
| 27 | LAYOUT_charybdis_3x5 ( \ | ||
| 28 | K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \ | ||
| 29 | ALT_T(K11), K12, K13, K14, GUI_T(K15), LGUI_T(K16), K17, K18, K19, LALT_T(K1A), \ | ||
| 30 | CTL_T(K21), K22, K23, K24, K25, K26, K27, K28, K29, RCTL_T(K2A), \ | ||
| 31 | LSFT_T(KC_GRV), KC_SPC, BK_LWER, DL_RAIS, RSFT_T(KC_ENT) \ | ||
| 32 | ) | ||
| 33 | #define LAYOUT_charybdis_3x5_base_wrapper(...) LAYOUT_charybdis_3x5_base(__VA_ARGS__) | ||
| 34 | |||
| 35 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 36 | |||
| 37 | [_DEFAULT_LAYER_1] = LAYOUT_charybdis_3x5_base_wrapper( | ||
| 38 | _________________QWERTY_L1_________________, _________________QWERTY_R1_________________, | ||
| 39 | _________________QWERTY_L2_________________, _________________QWERTY_R2_________________, | ||
| 40 | _________________QWERTY_L3_________________, _________________QWERTY_R3_________________ | ||
| 41 | ), | ||
| 42 | |||
| 43 | [_DEFAULT_LAYER_2] = LAYOUT_charybdis_3x5_base_wrapper( | ||
| 44 | ______________COLEMAK_MOD_DH_L1____________, ______________COLEMAK_MOD_DH_R1____________, | ||
| 45 | ______________COLEMAK_MOD_DH_L2____________, ______________COLEMAK_MOD_DH_R2____________, | ||
| 46 | ______________COLEMAK_MOD_DH_L3____________, ______________COLEMAK_MOD_DH_R3____________ | ||
| 47 | ), | ||
| 48 | [_DEFAULT_LAYER_3] = LAYOUT_charybdis_3x5_base_wrapper( | ||
| 49 | _________________COLEMAK_L1________________, _________________COLEMAK_R1________________, | ||
| 50 | _________________COLEMAK_L2________________, _________________COLEMAK_R2________________, | ||
| 51 | _________________COLEMAK_L3________________, _________________COLEMAK_R3________________ | ||
| 52 | ), | ||
| 53 | |||
| 54 | [_DEFAULT_LAYER_4] = LAYOUT_charybdis_3x5_base_wrapper( | ||
| 55 | _________________DVORAK_L1_________________, _________________DVORAK_R1_________________, | ||
| 56 | _________________DVORAK_L2_________________, _________________DVORAK_R2_________________, | ||
| 57 | _________________DVORAK_L3_________________, _________________DVORAK_R3_________________ | ||
| 58 | ), | ||
| 59 | |||
| 60 | [_MOUSE] = LAYOUT_charybdis_3x5( | ||
| 61 | _______, _______, _______, S_D_MOD, DPI_MOD, KC_WH_U, _______, _______, _______, _______, | ||
| 62 | _______, _______, _______, _______, _______, KC_WH_D, KC_BTN1, KC_BTN3, KC_BTN2, KC_BTN6, | ||
| 63 | _______, _______, _______, S_D_RMOD,DPI_RMOD, KC_BTN7, KC_BTN4, KC_BTN5, KC_BTN8, _______, | ||
| 64 | _______, SNIPING, _______, _______, _______ | ||
| 65 | ), | ||
| 66 | [_LOWER] = LAYOUT_charybdis_3x5_wrapper( | ||
| 67 | _________________LOWER_L1__________________, _________________LOWER_R1__________________, | ||
| 68 | _________________LOWER_L2__________________, _________________LOWER_R2__________________, | ||
| 69 | _________________LOWER_L3__________________, _________________LOWER_R3__________________, | ||
| 70 | _______, _______, _______, _______, AUTO_CTN | ||
| 71 | ), | ||
| 72 | [_RAISE] = LAYOUT_charybdis_3x5_wrapper( | ||
| 73 | _________________RAISE_L1__________________, _________________RAISE_R1__________________, | ||
| 74 | _________________RAISE_L2__________________, _________________RAISE_R2__________________, | ||
| 75 | _________________RAISE_L3__________________, _________________RAISE_R3__________________, | ||
| 76 | REBOOT, KEYLOCK, _______, _______, _______ | ||
| 77 | ), | ||
| 78 | [_ADJUST] = LAYOUT_charybdis_3x5_wrapper( | ||
| 79 | _________________ADJUST_L1_________________, _________________ADJUST_R1_________________, | ||
| 80 | _________________ADJUST_L2_________________, _________________ADJUST_R2_________________, | ||
| 81 | _________________ADJUST_L3_________________, _________________ADJUST_R3_________________, | ||
| 82 | EEP_RST, KC_NUKE, _______, _______, RESET | ||
| 83 | ), | ||
| 84 | }; | ||
| 85 | |||
| 86 | void matrix_init_keyemap(void) { setPinInputHigh(A0); } | ||
| 87 | |||
| 88 | void matrix_scan_keymap(void) { | ||
| 89 | if (!readPin(A0)) { | ||
| 90 | reset_keyboard(); | ||
| 91 | } | ||
| 92 | } | ||
| 93 | |||
| 94 | #ifdef USB_VBUS_PIN | ||
| 95 | bool usb_vbus_state(void) { | ||
| 96 | setPinInputLow(USB_VBUS_PIN); | ||
| 97 | wait_us(5); | ||
| 98 | return readPin(USB_VBUS_PIN); | ||
| 99 | } | ||
| 100 | #endif | ||
diff --git a/keyboards/bastardkb/charybdis/3x5/keymaps/drashna/mcuconf.h b/keyboards/bastardkb/charybdis/3x5/keymaps/drashna/mcuconf.h new file mode 100644 index 000000000..d868eae48 --- /dev/null +++ b/keyboards/bastardkb/charybdis/3x5/keymaps/drashna/mcuconf.h | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | /* Copyright 2020 Nick Brassel (tzarc) | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 3 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | #include_next "mcuconf.h" | ||
| 20 | |||
| 21 | #undef STM32_I2C_USE_I2C1 | ||
| 22 | #define STM32_I2C_USE_I2C1 TRUE | ||
| 23 | |||
| 24 | #undef STM32_I2C_I2C1_RX_DMA_STREAM | ||
| 25 | #define STM32_I2C_I2C1_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 0) | ||
| 26 | #undef STM32_I2C_I2C1_TX_DMA_STREAM | ||
| 27 | #define STM32_I2C_I2C1_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 1) | ||
| 28 | |||
| 29 | #undef STM32_PWM_USE_TIM2 | ||
| 30 | #define STM32_PWM_USE_TIM2 TRUE | ||
| 31 | |||
| 32 | #undef STM32_PWM_USE_TIM3 | ||
| 33 | #define STM32_PWM_USE_TIM3 TRUE | ||
| 34 | |||
| 35 | #undef STM32_SPI_USE_SPI1 | ||
| 36 | #define STM32_SPI_USE_SPI1 TRUE | ||
| 37 | |||
| 38 | #undef STM32_SPI_SPI1_RX_DMA_STREAM | ||
| 39 | #define STM32_SPI_SPI1_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 0) | ||
| 40 | #undef STM32_SPI_SPI1_TX_DMA_STREAM | ||
| 41 | #define STM32_SPI_SPI1_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 3) | ||
| 42 | |||
| 43 | #undef STM32_SERIAL_USE_USART2 | ||
| 44 | #define STM32_SERIAL_USE_USART2 TRUE | ||
| 45 | |||
| 46 | #undef STM32_UART_USART2_RX_DMA_STREAM | ||
| 47 | #define STM32_UART_USART2_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 5) | ||
| 48 | #undef STM32_UART_USART2_TX_DMA_STREAM | ||
| 49 | #define STM32_UART_USART2_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 6) | ||
| 50 | |||
| 51 | #undef STM32_GPT_USE_TIM4 | ||
| 52 | #define STM32_GPT_USE_TIM4 TRUE | ||
| 53 | |||
| 54 | #undef STM32_ST_USE_TIMER | ||
| 55 | #define STM32_ST_USE_TIMER 5 | ||
diff --git a/keyboards/bastardkb/charybdis/3x5/keymaps/drashna/rules.mk b/keyboards/bastardkb/charybdis/3x5/keymaps/drashna/rules.mk new file mode 100644 index 000000000..d23bf99aa --- /dev/null +++ b/keyboards/bastardkb/charybdis/3x5/keymaps/drashna/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = STM32F411 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = stm32-dfu | ||
| 6 | |||
| 7 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
| 8 | KEYBOARD_SHARED_EP = yes | ||
| 9 | MOUSE_SHARED_EP = yes | ||
| 10 | |||
| 11 | EEPROM_DRIVER = spi | ||
| 12 | WS2812_DRIVER = pwm | ||
| 13 | SERIAL_DRIVER = usart | ||
| 14 | AUDIO_DRIVER = pwm_hardware | ||
| 15 | |||
| 16 | AUDIO_SUPPORTED = yes | ||
| 17 | AUDIO_ENABLE = yes | ||
| 18 | MOUSEKEY_ENABLE = yes | ||
| 19 | NKRO_ENABLE = yes | ||
| 20 | CONSOLE_ENABLE = yes | ||
| 21 | |||
| 22 | AUTOCORRECTION_ENABLE = yes | ||
