Selaa lähdekoodia

Merge remote-tracking branch 'origin/develop' into xap

QMK Bot 3 kuukautta sitten
vanhempi
sitoutus
62ceaa5651
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      platforms/chibios/drivers/ws2812_pwm.c

+ 3 - 1
platforms/chibios/drivers/ws2812_pwm.c

@@ -89,7 +89,9 @@
 
 /* --- PRIVATE CONSTANTS ---------------------------------------------------- */
 
-#define WS2812_PWM_TICK_FREQUENCY (CPU_CLOCK / 2)                            /**< Clock frequency of PWM ticks, must be valid with respect to system clock! */
+#ifndef WS2812_PWM_TICK_FREQUENCY
+#    define WS2812_PWM_TICK_FREQUENCY (CPU_CLOCK / 2) /**< Clock frequency of PWM ticks, must be valid with respect to system clock! */
+#endif
 #define WS2812_PWM_PERIOD (WS2812_PWM_TICK_FREQUENCY / WS2812_PWM_FREQUENCY) /**< Clock period in PWM ticks. */
 
 /**