From 60119ae4fae7f2ef17fa5b965fc2a72ebe8c72c2 Mon Sep 17 00:00:00 2001 From: ThomasKuehne <2562574+ThomasKuehne@users.noreply.github.com> Date: Sun, 14 Apr 2024 23:32:57 +0000 Subject: [PATCH] chore(radio): cleanup -Wundef compiler warnings (#4853) --- radio/src/dataconstants.h | 1 + radio/src/targets/common/arm/stm32/stm32_hal_ll.h | 2 ++ radio/src/targets/common/arm/stm32/usbd_msc_conf.h | 1 + 3 files changed, 4 insertions(+) diff --git a/radio/src/dataconstants.h b/radio/src/dataconstants.h index c580d9fc0..acf1b0807 100644 --- a/radio/src/dataconstants.h +++ b/radio/src/dataconstants.h @@ -125,6 +125,7 @@ enum CurveType { #define LEN_MODEL_NAME 10 #define LEN_TIMER_NAME 3 #define LEN_FLIGHT_MODE_NAME 6 + #define LEN_BITMAP_NAME 0 #define LEN_EXPOMIX_NAME 6 #define LEN_CHANNEL_NAME 4 #define LEN_INPUT_NAME 3 diff --git a/radio/src/targets/common/arm/stm32/stm32_hal_ll.h b/radio/src/targets/common/arm/stm32/stm32_hal_ll.h index db602dd4b..4006daf47 100644 --- a/radio/src/targets/common/arm/stm32/stm32_hal_ll.h +++ b/radio/src/targets/common/arm/stm32/stm32_hal_ll.h @@ -33,6 +33,7 @@ extern "C" { #define STM32_HAL_LEGACY #if defined(STM32F4) + #define USE_RTOS 0U #include "STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_bus.h" #include "STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_dma2d.h" #include "STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h" @@ -47,6 +48,7 @@ extern "C" { #include "STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_iwdg.h" #include "STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_usb.h" #elif defined(STM32F2) + #define USE_RTOS 0U #include "STM32F2xx_HAL_Driver/Inc/stm32f2xx_ll_bus.h" #include "STM32F2xx_HAL_Driver/Inc/stm32f2xx_ll_gpio.h" #include "STM32F2xx_HAL_Driver/Inc/stm32f2xx_ll_tim.h" diff --git a/radio/src/targets/common/arm/stm32/usbd_msc_conf.h b/radio/src/targets/common/arm/stm32/usbd_msc_conf.h index 66d681af5..c2b36f9e7 100644 --- a/radio/src/targets/common/arm/stm32/usbd_msc_conf.h +++ b/radio/src/targets/common/arm/stm32/usbd_msc_conf.h @@ -20,3 +20,4 @@ */ #define MASS_STORAGE_BUFFER_SIZE 512U +#define USBD_CLASS_BOS_ENABLED 0