Skip to content

Commit

Permalink
chore(radio): cleanup -Wundef compiler warnings (#4853)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasKuehne authored Apr 14, 2024
1 parent 8225fb2 commit 60119ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions radio/src/dataconstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions radio/src/targets/common/arm/stm32/stm32_hal_ll.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
1 change: 1 addition & 0 deletions radio/src/targets/common/arm/stm32/usbd_msc_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
*/

#define MASS_STORAGE_BUFFER_SIZE 512U
#define USBD_CLASS_BOS_ENABLED 0

0 comments on commit 60119ae

Please sign in to comment.