aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorishtob <ishtob@gmail.com>2018-08-27 17:10:22 -0400
committerJack Humbert <jack.humb@gmail.com>2018-08-27 17:10:22 -0400
commit2410f023598af65a551b42f569a2703a5621bdca (patch)
tree94b7a2f8d602ad689b562c8cea8b2abf7b0cb452
parentc63d9ee0d563228f1b5b7e1f1f54a5b541a90429 (diff)
downloadqmk_firmware-2410f023598af65a551b42f569a2703a5621bdca.tar.gz
qmk_firmware-2410f023598af65a551b42f569a2703a5621bdca.zip
Fixes STM32F303XC timer issue for Planck Rev 6 (#3777)
* Adding my personal planck keymap * Adding readme.md to my keymap * Create my userspace add users/ishtob/ * Moved macros off keymap macros now exsists in my userspace, moved them off keyboard specific keymaps * Create my userspace add users/ishtob/ * rebase from main QMK repo * fixed compile error with planck rev6 keymap * fixed compile error with planck rev6 keymap * Revert "Merge branch 'master' of https://github.com/ishtob/qmk_firmware" This reverts commit 6c8a9a6eec7ec311802338ea361099612182465d, reversing changes made to 5c598d9a53a7f794d5be283ac40ca97631ae5578. * fixed issue where compile errors if private macro file is not present * Revert "fixed issue where compile errors if private macro file is not present" This reverts commit e0035df48ffb9a95aa94e8339c58ef539e0449cf. * Fixed STM32 timer issue with Planck Rev6 with tap mods * Revert "fixed compile error with planck rev6 keymap" This reverts commit 5c598d9a53a7f794d5be283ac40ca97631ae5578. * Revert "Revert "fixed compile error with planck rev6 keymap"" This reverts commit c36896ca718f8b9bb3c653d7532797e9129477e3. * Fixed compile issues with my personal userspace and keymap utilizing the userspace
-rw-r--r--keyboards/planck/keymaps/ishtob/keymap.c2
-rwxr-xr-xkeyboards/planck/keymaps/ishtob/rule.mk1
-rw-r--r--keyboards/planck/rev6/chconf.h4
-rw-r--r--keyboards/planck/rev6/halconf.h2
-rw-r--r--keyboards/planck/rev6/mcuconf.h2
-rwxr-xr-xusers/ishtob/rules.mk2
6 files changed, 7 insertions, 6 deletions
diff --git a/keyboards/planck/keymaps/ishtob/keymap.c b/keyboards/planck/keymaps/ishtob/keymap.c
index 36720c4c3..86c5555da 100644
--- a/keyboards/planck/keymaps/ishtob/keymap.c
+++ b/keyboards/planck/keymaps/ishtob/keymap.c
@@ -327,7 +327,9 @@ void matrix_init_keymap(void) {
327 327
328void startup_user() 328void startup_user()
329{ 329{
330 #ifdef RGB_MATRIX_ENABLE
330 rgblight_mode(RGB_MATRIX_CYCLE_ALL); 331 rgblight_mode(RGB_MATRIX_CYCLE_ALL);
332 #endif //RGB_matrix
331 wait_ms(20); // gets rid of tick 333 wait_ms(20); // gets rid of tick
332 PLAY_NOTE_ARRAY(tone_startup, false, 0); 334 PLAY_NOTE_ARRAY(tone_startup, false, 0);
333} 335}
diff --git a/keyboards/planck/keymaps/ishtob/rule.mk b/keyboards/planck/keymaps/ishtob/rule.mk
index c8940c3b4..c0d38aaa1 100755
--- a/keyboards/planck/keymaps/ishtob/rule.mk
+++ b/keyboards/planck/keymaps/ishtob/rule.mk
@@ -12,7 +12,6 @@ COMMAND_ENABLE = yes # Commands for debug and configuration
12NKRO_ENABLE = yes # USB Nkey Rollover 12NKRO_ENABLE = yes # USB Nkey Rollover
13CUSTOM_MATRIX = yes # Custom matrix file 13CUSTOM_MATRIX = yes # Custom matrix file
14AUDIO_ENABLE = yes 14AUDIO_ENABLE = yes
15RGB_MATRIX_ENABLE = yes
16ENCODER_ENABLE = yes 15ENCODER_ENABLE = yes
17# SERIAL_LINK_ENABLE = yes 16# SERIAL_LINK_ENABLE = yes
18 17
diff --git a/keyboards/planck/rev6/chconf.h b/keyboards/planck/rev6/chconf.h
index b52ca7d2c..1d9f12ff1 100644
--- a/keyboards/planck/rev6/chconf.h
+++ b/keyboards/planck/rev6/chconf.h
@@ -41,14 +41,14 @@
41 * @brief System time counter resolution. 41 * @brief System time counter resolution.
42 * @note Allowed values are 16 or 32 bits. 42 * @note Allowed values are 16 or 32 bits.
43 */ 43 */
44#define CH_CFG_ST_RESOLUTION 16 44#define CH_CFG_ST_RESOLUTION 32
45 45
46/** 46/**
47 * @brief System tick frequency. 47 * @brief System tick frequency.
48 * @details Frequency of the system timer that drives the system ticks. This 48 * @details Frequency of the system timer that drives the system ticks. This
49 * setting also defines the system tick time unit. 49 * setting also defines the system tick time unit.
50 */ 50 */
51#define CH_CFG_ST_FREQUENCY 10000 51#define CH_CFG_ST_FREQUENCY 100000
52 52
53/** 53/**
54 * @brief Time delta constant for the tick-less mode. 54 * @brief Time delta constant for the tick-less mode.
diff --git a/keyboards/planck/rev6/halconf.h b/keyboards/planck/rev6/halconf.h
index 5e5d70219..8fe8e0c6f 100644
--- a/keyboards/planck/rev6/halconf.h
+++ b/keyboards/planck/rev6/halconf.h
@@ -111,7 +111,7 @@
111 * @brief Enables the PWM subsystem. 111 * @brief Enables the PWM subsystem.
112 */ 112 */
113#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__) 113#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
114#define HAL_USE_PWM TRUE 114#define HAL_USE_PWM FALSE
115#endif 115#endif
116 116
117/** 117/**
diff --git a/keyboards/planck/rev6/mcuconf.h b/keyboards/planck/rev6/mcuconf.h
index 2d27bee4e..7c3c6e570 100644
--- a/keyboards/planck/rev6/mcuconf.h
+++ b/keyboards/planck/rev6/mcuconf.h
@@ -225,7 +225,7 @@
225 * ST driver system settings. 225 * ST driver system settings.
226 */ 226 */
227#define STM32_ST_IRQ_PRIORITY 8 227#define STM32_ST_IRQ_PRIORITY 8
228#define STM32_ST_USE_TIMER 4 228#define STM32_ST_USE_TIMER 2
229 229
230/* 230/*
231 * UART driver system settings. 231 * UART driver system settings.
diff --git a/users/ishtob/rules.mk b/users/ishtob/rules.mk
index d19e95266..909502b50 100755
--- a/users/ishtob/rules.mk
+++ b/users/ishtob/rules.mk
@@ -1,5 +1,5 @@
1SRC += ishtob.c 1SRC += ishtob.c
2ifneq ($(wildcard $(USER_PATH)/macros_private.c),"") 2ifneq ("$(wildcard $(USER_PATH)/macros_private.c)","")
3 SRC += macros_private.c 3 SRC += macros_private.c
4endif 4endif
5ifeq ($(strip $(NO_SECRETS)), yes) 5ifeq ($(strip $(NO_SECRETS)), yes)