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
20 changed files
with
249 additions
and
152 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
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,70 @@ | ||
/* 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 A7 | ||
# define RGBLED_NUM 2 | ||
# 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 180 | ||
# 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 | ||
|
||
#endif | ||
|
||
|
||
#ifdef RGBLIGHT_ENABLE | ||
|
||
# define RGB_DI_PIN A7 | ||
# define RGBLED_NUM 2 | ||
# 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. | ||
|
||
#endif | ||
|
||
|
||
|
||
#ifdef BACKLIGHT_ENABLE | ||
# define BACKLIGHT_PIN A6 | ||
# define BACKLIGHT_BREATHING | ||
|
||
# define BACKLIGHT_PWM_DRIVER PWMD3 | ||
# define BACKLIGHT_PWM_CHANNEL 1 | ||
# define BACKLIGHT_PAL_MODE 2 | ||
# define BACKLIGHT_ON_STATE 1 | ||
#endif |
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
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 |
---|---|---|
@@ -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,61 @@ | ||
/* 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 A7 | ||
# define RGBLED_NUM 2 | ||
# 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 180 | ||
# 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 | ||
|
||
#endif | ||
|
||
|
||
#ifdef RGBLIGHT_ENABLE | ||
|
||
# define RGB_DI_PIN A7 | ||
# define RGBLED_NUM 2 | ||
# 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. | ||
|
||
#endif | ||
|
||
|
||
|
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
Oops, something went wrong.