From 1bbce1f351eee0fdfd4fa7a3de3a6b4394c6daeb Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Fri, 3 May 2024 19:39:13 +0200 Subject: [PATCH] fixup! drivers/ws281x: add SysTick + GPIO LL backend --- drivers/ws281x/systick_gpio_ll.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/drivers/ws281x/systick_gpio_ll.c b/drivers/ws281x/systick_gpio_ll.c index 3d9a879483..b4d0272566 100644 --- a/drivers/ws281x/systick_gpio_ll.c +++ b/drivers/ws281x/systick_gpio_ll.c @@ -37,21 +37,6 @@ #define ENABLE_DEBUG 0 #include "debug.h" -/* (+ NS_PER_SEC - 1): Rounding up, as T1H is the time that needs to distinctly - * longer than T0H. - * - * Then adding +1 extra, because the spin loop adds another layer of jitter. A - * more correct version would be to add the spin loop time before rounding (and - * then rounding up), but as that time is not available, spending one more - * cycle is the next best thing to do. */ -const int ticks_one = ((uint64_t)WS281X_T_DATA_ONE_NS * WS281X_TIMER_FREQ + NS_PER_SEC - 1) - / NS_PER_SEC + 1; -/* Rounding down, zeros are better shorter */ -const int ticks_zero = (uint64_t)WS281X_T_DATA_ZERO_NS * (uint64_t)WS281X_TIMER_FREQ / NS_PER_SEC; -/* No particular known requirements, but we're taking longer than that anyway - * because we don't clock the times between bits. */ -const int ticks_data = (uint64_t)WS281X_T_DATA_NS * (uint64_t)WS281X_TIMER_FREQ / NS_PER_SEC; - static void _systick_start(uint32_t ticks) { /* disable SysTick, clear value */