diff --git a/Makefile b/Makefile index 129b4e0c94..0381e7412e 100644 --- a/Makefile +++ b/Makefile @@ -332,9 +332,71 @@ else ifeq ($(TARGET),$(filter $(TARGET), $(F7_TARGETS))) #STDPERIPH STDPERIPH_DIR = $(ROOT)/lib/main/STM32F7xx_HAL_Driver STDPERIPH_SRC = $(notdir $(wildcard $(STDPERIPH_DIR)/Src/*.c)) -EXCLUDES = stm32f7xx_hal_timebase_rtc_wakeup_template.c \ +EXCLUDES = stm32f7xx_hal_can.c \ + stm32f7xx_hal_cec.c \ + stm32f7xx_hal_crc.c \ + stm32f7xx_hal_crc_ex.c \ + stm32f7xx_hal_cryp.c \ + stm32f7xx_hal_cryp_ex.c \ + stm32f7xx_hal_dac.c \ + stm32f7xx_hal_dac_ex.c \ + stm32f7xx_hal_dcmi.c \ + stm32f7xx_hal_dcmi_ex.c \ + stm32f7xx_hal_dfsdm.c \ + stm32f7xx_hal_dma2d.c \ + stm32f7xx_hal_dsi.c \ + stm32f7xx_hal_eth.c \ + stm32f7xx_hal_hash.c \ + stm32f7xx_hal_hash_ex.c \ + stm32f7xx_hal_hcd.c \ + stm32f7xx_hal_i2s.c \ + stm32f7xx_hal_irda.c \ + stm32f7xx_hal_iwdg.c \ + stm32f7xx_hal_jpeg.c \ + stm32f7xx_hal_lptim.c \ + stm32f7xx_hal_ltdc.c \ + stm32f7xx_hal_ltdc_ex.c \ + stm32f7xx_hal_mdios.c \ + stm32f7xx_hal_mmc.c \ + stm32f7xx_hal_msp_template.c \ + stm32f7xx_hal_nand.c \ + stm32f7xx_hal_nor.c \ + stm32f7xx_hal_qspi.c \ + stm32f7xx_hal_rng.c \ + stm32f7xx_hal_rtc.c \ + stm32f7xx_hal_rtc_ex.c \ + stm32f7xx_hal_sai.c \ + stm32f7xx_hal_sai_ex.c \ + stm32f7xx_hal_sd.c \ + stm32f7xx_hal_sdram.c \ + stm32f7xx_hal_smartcard.c \ + stm32f7xx_hal_smartcard_ex.c \ + stm32f7xx_hal_smbus.c \ + stm32f7xx_hal_spdifrx.c \ + stm32f7xx_hal_sram.c \ stm32f7xx_hal_timebase_rtc_alarm_template.c \ - stm32f7xx_hal_timebase_tim_template.c + stm32f7xx_hal_timebase_rtc_wakeup_template.c \ + stm32f7xx_hal_timebase_tim_template.c \ + stm32f7xx_hal_wwdg.c \ + stm32f7xx_ll_adc.c \ + stm32f7xx_ll_crc.c \ + stm32f7xx_ll_dac.c \ + stm32f7xx_ll_dma.c \ + stm32f7xx_ll_dma2d.c \ + stm32f7xx_ll_exti.c \ + stm32f7xx_ll_fmc.c \ + stm32f7xx_ll_gpio.c \ + stm32f7xx_ll_i2c.c \ + stm32f7xx_ll_lptim.c \ + stm32f7xx_ll_pwr.c \ + stm32f7xx_ll_rcc.c \ + stm32f7xx_ll_rng.c \ + stm32f7xx_ll_rtc.c \ + stm32f7xx_ll_sdmmc.c \ + stm32f7xx_ll_spi.c \ + stm32f7xx_ll_tim.c \ + stm32f7xx_ll_usart.c \ + stm32f7xx_ll_utils.c STDPERIPH_SRC := $(filter-out ${EXCLUDES}, $(STDPERIPH_SRC)) diff --git a/lib/main/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_adc_ex.c b/lib/main/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_adc_ex.c index 605a0bb0b9..41023f0cf7 100644 --- a/lib/main/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_adc_ex.c +++ b/lib/main/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_adc_ex.c @@ -756,6 +756,7 @@ HAL_StatusTypeDef HAL_ADCEx_MultiModeStop_DMA(ADC_HandleTypeDef* hadc) */ uint32_t HAL_ADCEx_MultiModeGetValue(ADC_HandleTypeDef* hadc) { + UNUSED(hadc); /* Return the multi mode conversion value */ return ADC->CDR; } diff --git a/lib/main/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pcd.c b/lib/main/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pcd.c index 253ff44df7..3546279920 100644 --- a/lib/main/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pcd.c +++ b/lib/main/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pcd.c @@ -1258,7 +1258,7 @@ static HAL_StatusTypeDef PCD_WriteEmptyTxFifo(PCD_HandleTypeDef *hpcd, uint32_t ep = &hpcd->IN_ep[epnum]; len = ep->xfer_len - ep->xfer_count; - if (len > ep->maxpacket) + if (len > (int32_t)ep->maxpacket) { len = ep->maxpacket; } @@ -1273,7 +1273,7 @@ static HAL_StatusTypeDef PCD_WriteEmptyTxFifo(PCD_HandleTypeDef *hpcd, uint32_t /* Write the FIFO */ len = ep->xfer_len - ep->xfer_count; - if (len > ep->maxpacket) + if (len > (int32_t)ep->maxpacket) { len = ep->maxpacket; } diff --git a/lib/main/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr.c b/lib/main/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr.c index c87d2b4d2c..90bab3e1bf 100644 --- a/lib/main/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr.c +++ b/lib/main/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr.c @@ -404,6 +404,7 @@ void HAL_PWR_DisableWakeUpPin(uint32_t WakeUpPinx) */ void HAL_PWR_EnterSLEEPMode(uint32_t Regulator, uint8_t SLEEPEntry) { + UNUSED(Regulator); /* Check the parameters */ assert_param(IS_PWR_REGULATOR(Regulator)); assert_param(IS_PWR_SLEEP_ENTRY(SLEEPEntry)); diff --git a/lib/main/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.c b/lib/main/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.c index 1af358829e..5659315bb8 100644 --- a/lib/main/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.c +++ b/lib/main/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.c @@ -2125,7 +2125,8 @@ HAL_StatusTypeDef HAL_TIM_OnePulse_Start(TIM_HandleTypeDef *htim, uint32_t Outpu No need to enable the counter, it's enabled automatically by hardware (the counter starts in response to a stimulus and generate a pulse */ - + + UNUSED(OutputChannel); TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); @@ -2157,6 +2158,7 @@ HAL_StatusTypeDef HAL_TIM_OnePulse_Stop(TIM_HandleTypeDef *htim, uint32_t Output if TIM_CHANNEL_1 is used as input, the TIM_CHANNEL_2 will be used as output in all combinations, the TIM_CHANNEL_1 and TIM_CHANNEL_2 should be disabled together */ + UNUSED(OutputChannel); TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_DISABLE); TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_DISABLE); @@ -2194,6 +2196,7 @@ HAL_StatusTypeDef HAL_TIM_OnePulse_Start_IT(TIM_HandleTypeDef *htim, uint32_t Ou No need to enable the counter, it's enabled automatically by hardware (the counter starts in response to a stimulus and generate a pulse */ + UNUSED(OutputChannel); /* Enable the TIM Capture/Compare 1 interrupt */ __HAL_TIM_ENABLE_IT(htim, TIM_IT_CC1); @@ -2225,6 +2228,7 @@ HAL_StatusTypeDef HAL_TIM_OnePulse_Start_IT(TIM_HandleTypeDef *htim, uint32_t Ou */ HAL_StatusTypeDef HAL_TIM_OnePulse_Stop_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel) { + UNUSED(OutputChannel); /* Disable the TIM Capture/Compare 1 interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1); diff --git a/src/main/target/stm32f7xx_hal_conf.h b/src/main/target/stm32f7xx_hal_conf.h index f2e5ffc8fc..26afa82fa6 100644 --- a/src/main/target/stm32f7xx_hal_conf.h +++ b/src/main/target/stm32f7xx_hal_conf.h @@ -5,7 +5,7 @@ ****************************************************************************** * @attention * - *