From 313d1028cb3eba5737862e0bbed774d34773f422 Mon Sep 17 00:00:00 2001 From: 3djc <3djc@gh.com> Date: Sun, 21 Apr 2024 13:44:15 +0200 Subject: [PATCH] chore: remove unused ws2812 --- radio/src/targets/taranis/CMakeLists.txt | 2 +- radio/src/targets/taranis/hal.h | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/radio/src/targets/taranis/CMakeLists.txt b/radio/src/targets/taranis/CMakeLists.txt index 616c0e912d5..876007e0f91 100644 --- a/radio/src/targets/taranis/CMakeLists.txt +++ b/radio/src/targets/taranis/CMakeLists.txt @@ -625,7 +625,7 @@ if(PCB STREQUAL XLITE OR PCB STREQUAL XLITES OR PCBREV STREQUAL COMMANDO8) targets/common/arm/stm32/sticks_pwm_driver.cpp) endif() -if(PCBREV STREQUAL MT12 OR PCBREV STREQUAL T14) +if(PCBREV STREQUAL MT12) set(FIRMWARE_SRC ${FIRMWARE_SRC} targets/common/arm/stm32/stm32_ws2812.cpp diff --git a/radio/src/targets/taranis/hal.h b/radio/src/targets/taranis/hal.h index e62e06e0b0f..0cde06a1adc 100644 --- a/radio/src/targets/taranis/hal.h +++ b/radio/src/targets/taranis/hal.h @@ -1908,20 +1908,6 @@ #define LED_STRIP_TIMER_DMA_IRQn DMA2_Stream5_IRQn #define LED_STRIP_TIMER_DMA_IRQHandler DMA2_Stream5_IRQHandler #define LED_STRIP_REFRESH_PERIOD 50 //ms -#elif defined(RADIO_T14) - #define LED_STRIP_LENGTH 1 - #define LED_STRIP_GPIO GPIOA - #define LED_STRIP_GPIO_PIN_DATA LL_GPIO_PIN_10 // PA.10 / TIM1_CH3 - #define LED_STRIP_GPIO_PIN_AF LL_GPIO_AF_1 - #define LED_STRIP_TIMER TIM1 - #define LED_STRIP_TIMER_FREQ (PERI2_FREQUENCY * TIMER_MULT_APB2) - #define LED_STRIP_TIMER_CHANNEL LL_TIM_CHANNEL_CH3 - #define LED_STRIP_TIMER_DMA DMA2 - #define LED_STRIP_TIMER_DMA_CHANNEL LL_DMA_CHANNEL_6 - #define LED_STRIP_TIMER_DMA_STREAM LL_DMA_STREAM_5 - #define LED_STRIP_TIMER_DMA_IRQn DMA2_Stream5_IRQn - #define LED_STRIP_TIMER_DMA_IRQHandler DMA2_Stream5_IRQHandler - #define LED_STRIP_REFRESH_PERIOD 50 //ms #endif #if defined(FUNCTION_SWITCHES)