]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fixes STM32F303XC timer issue for Planck Rev 6 (#3777)
authorishtob <ishtob@gmail.com>
Mon, 27 Aug 2018 21:10:22 +0000 (17:10 -0400)
committerJack Humbert <jack.humb@gmail.com>
Mon, 27 Aug 2018 21:10:22 +0000 (17:10 -0400)
* 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

keyboards/planck/keymaps/ishtob/keymap.c
keyboards/planck/keymaps/ishtob/rule.mk
keyboards/planck/rev6/chconf.h
keyboards/planck/rev6/halconf.h
keyboards/planck/rev6/mcuconf.h
users/ishtob/rules.mk

index 36720c4c3e1e234a9272bc8ea5e4cefdae044db2..86c5555da307d2df2e91cf4adab45b4d360d0746 100644 (file)
@@ -327,7 +327,9 @@ void matrix_init_keymap(void) {
 
 void startup_user()
 {
+    #ifdef RGB_MATRIX_ENABLE
     rgblight_mode(RGB_MATRIX_CYCLE_ALL);
+    #endif //RGB_matrix
     wait_ms(20); // gets rid of tick
     PLAY_NOTE_ARRAY(tone_startup, false, 0);
 }
index c8940c3b40ba6bc46e196e760f98a702fda9e0d7..c0d38aaa14a3a0597b4c3094ce02400bcc9871ac 100755 (executable)
@@ -12,7 +12,6 @@ COMMAND_ENABLE = yes    # Commands for debug and configuration
 NKRO_ENABLE = yes          # USB Nkey Rollover
 CUSTOM_MATRIX = yes # Custom matrix file
 AUDIO_ENABLE = yes
-RGB_MATRIX_ENABLE = yes
 ENCODER_ENABLE = yes
 # SERIAL_LINK_ENABLE = yes
 
index b52ca7d2c87a464c27686e5650c0886b2399d59e..1d9f12ff1f8b7c4f5c9b982481beb4b11dbaaf1a 100644 (file)
  * @brief   System time counter resolution.
  * @note    Allowed values are 16 or 32 bits.
  */
-#define CH_CFG_ST_RESOLUTION                16
+#define CH_CFG_ST_RESOLUTION                32
 
 /**
  * @brief   System tick frequency.
  * @details Frequency of the system timer that drives the system ticks. This
  *          setting also defines the system tick time unit.
  */
-#define CH_CFG_ST_FREQUENCY                 10000
+#define CH_CFG_ST_FREQUENCY                 100000
 
 /**
  * @brief   Time delta constant for the tick-less mode.
index 5e5d70219e2b21769e4dc3d0f95b2d892995fb4f..8fe8e0c6f586861495d2790d7367f085c1508ac1 100644 (file)
  * @brief   Enables the PWM subsystem.
  */
 #if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
-#define HAL_USE_PWM                 TRUE
+#define HAL_USE_PWM                 FALSE
 #endif
 
 /**
index 2d27bee4e6cf803ee3976a7551349e89bfc32e6d..7c3c6e570cec5691c8dd0c39977ff4819ced27d9 100644 (file)
  * ST driver system settings.
  */
 #define STM32_ST_IRQ_PRIORITY               8
-#define STM32_ST_USE_TIMER                  4
+#define STM32_ST_USE_TIMER                  2
 
 /*
  * UART driver system settings.
index d19e952667e7a33fb4e32aca858b9eb46120b7d6..909502b50ac08f8cdeff1290dd0e56cebc54697b 100755 (executable)
@@ -1,5 +1,5 @@
 SRC += ishtob.c
-ifneq ($(wildcard $(USER_PATH)/macros_private.c),"")
+ifneq ("$(wildcard $(USER_PATH)/macros_private.c)","")
   SRC += macros_private.c
 endif
 ifeq ($(strip $(NO_SECRETS)), yes)