chore(radio): remove some H7 build warnings (#6615)
This commit is contained in:
@@ -277,6 +277,7 @@ static const stm32_pulse_timer_t trainerModuleTimer = {
|
||||
#define TELEMETRY_USART_IRQ_PRIORITY 0
|
||||
#define TELEMETRY_DMA_IRQ_PRIORITY 0
|
||||
|
||||
#if !defined(STM32H7) && !defined(STM32H7RS)
|
||||
static void _set_sport_input(uint8_t enable)
|
||||
{
|
||||
#if defined(TELEMETRY_DIR_GPIO)
|
||||
@@ -289,6 +290,7 @@ static void _set_sport_input(uint8_t enable)
|
||||
(void)enable;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(TELEMETRY_USART)
|
||||
static const stm32_usart_t sportUSART = {
|
||||
@@ -309,7 +311,7 @@ static const stm32_usart_t sportUSART = {
|
||||
.rxDMA_Stream = 0,
|
||||
.rxDMA_Channel = 0,
|
||||
#endif
|
||||
#if defined(STM32H7) || (STM32H7RS)
|
||||
#if defined(STM32H7) || defined(STM32H7RS)
|
||||
.set_input = nullptr,
|
||||
#else
|
||||
.set_input = _set_sport_input,
|
||||
|
||||
Reference in New Issue
Block a user