diff options
Diffstat (limited to 'platforms/chibios/drivers/ws2812_pwm.c')
| -rw-r--r-- | platforms/chibios/drivers/ws2812_pwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platforms/chibios/drivers/ws2812_pwm.c b/platforms/chibios/drivers/ws2812_pwm.c index 50927b849a..0fc20b3f27 100644 --- a/platforms/chibios/drivers/ws2812_pwm.c +++ b/platforms/chibios/drivers/ws2812_pwm.c | |||
| @@ -310,7 +310,7 @@ void ws2812_init(void) { | |||
| 310 | palSetLineMode(WS2812_DI_PIN, WS2812_OUTPUT_MODE); | 310 | palSetLineMode(WS2812_DI_PIN, WS2812_OUTPUT_MODE); |
| 311 | 311 | ||
| 312 | // PWM Configuration | 312 | // PWM Configuration |
| 313 | //#pragma GCC diagnostic ignored "-Woverride-init" // Turn off override-init warning for this struct. We use the overriding ability to set a "default" channel config | 313 | // #pragma GCC diagnostic ignored "-Woverride-init" // Turn off override-init warning for this struct. We use the overriding ability to set a "default" channel config |
| 314 | static const PWMConfig ws2812_pwm_config = { | 314 | static const PWMConfig ws2812_pwm_config = { |
| 315 | .frequency = WS2812_PWM_TICK_FREQUENCY, | 315 | .frequency = WS2812_PWM_TICK_FREQUENCY, |
| 316 | .period = WS2812_PWM_PERIOD, // Mit dieser Periode wird UDE-Event erzeugt und ein neuer Wert (Länge WS2812_BIT_N) vom DMA ins CCR geschrieben | 316 | .period = WS2812_PWM_PERIOD, // Mit dieser Periode wird UDE-Event erzeugt und ein neuer Wert (Länge WS2812_BIT_N) vom DMA ins CCR geschrieben |
| @@ -328,7 +328,7 @@ void ws2812_init(void) { | |||
| 328 | .dier = TIM_DIER_UDE, // DMA on update event for next period | 328 | .dier = TIM_DIER_UDE, // DMA on update event for next period |
| 329 | #endif | 329 | #endif |
| 330 | }; | 330 | }; |
| 331 | //#pragma GCC diagnostic pop // Restore command-line warning options | 331 | // #pragma GCC diagnostic pop // Restore command-line warning options |
| 332 | 332 | ||
| 333 | // Configure DMA | 333 | // Configure DMA |
| 334 | // dmaInit(); // Joe added this | 334 | // dmaInit(); // Joe added this |
