forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
193 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* Copyright 2020 QMK | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#define CH_CFG_ST_FREQUENCY 10000 | ||
|
||
#define CH_CFG_FACTORY_OBJECTS_REGISTRY TRUE | ||
|
||
#define CH_CFG_FACTORY_GENERIC_BUFFERS TRUE | ||
|
||
#define CH_CFG_FACTORY_SEMAPHORES TRUE | ||
|
||
#define CH_CFG_FACTORY_MAILBOXES TRUE | ||
|
||
#define CH_CFG_FACTORY_OBJ_FIFOS TRUE | ||
|
||
#define CH_CFG_FACTORY_PIPES TRUE | ||
|
||
#include_next <chconf.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
/* Copyright 2021 JasonRen(biu) | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
#pragma once | ||
|
||
#include "config_common.h" | ||
|
||
|
||
/* RGN Matrix */ | ||
#ifdef RGB_MATRIX_ENABLE | ||
|
||
# define RGB_DI_PIN B5 | ||
# define RGBLED_NUM 1 | ||
# define DRIVER_LED_TOTAL RGBLED_NUM | ||
|
||
#define WS2812_PWM_DRIVER PWMD3 // default: PWMD2 | ||
#define WS2812_PWM_CHANNEL 2 // default: 2 | ||
#define WS2812_PWM_PAL_MODE 2 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 2 | ||
#define WS2812_DMA_STREAM STM32_DMA1_STREAM2 // DMA Stream for TIMx_UP, see the respective reference manual for the appropriate values for your MCU. | ||
#define WS2812_DMA_CHANNEL 5 // DMA Channel for TIMx_UP, see the respective reference manual for the appropriate values for your MCU. | ||
|
||
# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 100 | ||
# define RGBLIGHT_VAL_STEP 18 | ||
# define RGB_DISABLE_WHEN_USB_SUSPENDED true | ||
# define RGB_MATRIX_CENTER { 32, 96 } | ||
# define RGB_MATRIX_KEYPRESSES | ||
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
|
||
// # define WS2812_EXTERNAL_PULLUP | ||
# define WS2812_BYTE_ORDER WS2812_BYTE_ORDER_RGB | ||
#endif | ||
|
||
|
||
#ifdef RGBLIGHT_ENABLE | ||
|
||
# define RGB_DI_PIN B5 | ||
# define RGBLED_NUM 1 | ||
# define DRIVER_LED_TOTAL RGBLED_NUM | ||
|
||
|
||
#define WS2812_PWM_DRIVER PWMD3 // default: PWMD2 | ||
#define WS2812_PWM_CHANNEL 2 // default: 2 | ||
#define WS2812_PWM_PAL_MODE 2 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 2 | ||
#define WS2812_DMA_STREAM STM32_DMA1_STREAM2 // DMA Stream for TIMx_UP, see the respective reference manual for the appropriate values for your MCU. | ||
#define WS2812_DMA_CHANNEL 5 // DMA Channel for TIMx_UP, see the respective reference manual for the appropriate values for your MCU. | ||
|
||
|
||
// # define WS2812_EXTERNAL_PULLUP | ||
# define WS2812_BYTE_ORDER WS2812_BYTE_ORDER_RGB | ||
|
||
#endif | ||
|
||
#ifdef EEPROM_SPI | ||
|
||
# define EXTERNAL_EEPROM_SPI_SLAVE_SELECT_PIN A4 | ||
# define EXTERNAL_EEPROM_SPI_CLOCK_DIVISOR 3 | ||
# define EXTERNAL_EEPROM_BYTE_COUNT 32768 | ||
# define EXTERNAL_EEPROM_PAGE_SIZE 64 | ||
# define EXTERNAL_EEPROM_ADDRESS_SIZE 2 | ||
|
||
|
||
# define SPI_DRIVER SPID1 | ||
# define SPI_SCK_PIN A5 | ||
# define SPI_MOSI_PIN A7 | ||
# define SPI_MISO_PIN A6 | ||
|
||
# ifdef VIA_ENABLE | ||
# define VIA_EEPROM_LAYOUT_OPTIONS_SIZE 2 | ||
# define DYNAMIC_KEYMAP_LAYER_COUNT 20 | ||
# define DYNAMIC_KEYMAP_MACRO_COUNT 30 | ||
# define DYNAMIC_KEYMAP_EEPROM_MAX_ADDR 10240 | ||
# endif | ||
|
||
#else | ||
|
||
# define TRANSIENT_EEPROM_SIZE 1024 | ||
|
||
#endif | ||
|
||
// #define DEBUG_MATRIX_SCAN_RATE | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,13 +20,7 @@ | |
"0,6" | ||
], | ||
[ | ||
{ | ||
"f": 1 | ||
}, | ||
"1,0", | ||
{ | ||
"f": 3 | ||
}, | ||
"1,1", | ||
"1,2", | ||
"1,3", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters