Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/CMSIS/Device/ST/STM32F7xx/Include/stm32f722xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* This file contains:
* - Data structures and the address mapping for all peripherals
* - Peripheral's registers declarations and bits definition
* - Macros to access peripheral�s registers hardware
* - Macros to access peripheral�s registers hardware
*
******************************************************************************
* @attention
Expand Down
4 changes: 3 additions & 1 deletion lib/STM32F0xx_HAL_Driver/Inc/stm32_assert_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@
/* Exported functions ------------------------------------------------------- */
void assert_failed(uint8_t* file, uint32_t line);
#else
#define assert_param(expr) ((void)0U)
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif /* USE_FULL_ASSERT */

#ifdef __cplusplus
Expand Down
4 changes: 3 additions & 1 deletion lib/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_conf_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,9 @@
/* Exported functions ------------------------------------------------------- */
void assert_failed(uint8_t* file, uint32_t line);
#else
#define assert_param(expr) ((void)0U)
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif /* USE_FULL_ASSERT */

#ifdef __cplusplus
Expand Down
4 changes: 3 additions & 1 deletion lib/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#define assert_param(expr) ((void)0U)
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif

/** @addtogroup STM32F0xx_LL_Driver
Expand Down
4 changes: 3 additions & 1 deletion lib/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_comp.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#define assert_param(expr) ((void)0U)
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif

/** @addtogroup STM32F0xx_LL_Driver
Expand Down
2 changes: 2 additions & 0 deletions lib/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_crc.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif

/** @addtogroup STM32F0xx_LL_Driver
* @{
Expand Down
4 changes: 3 additions & 1 deletion lib/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_dac.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#define assert_param(expr) ((void)0U)
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif

/** @addtogroup STM32F0xx_LL_Driver
Expand Down
2 changes: 2 additions & 0 deletions lib/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif

/** @addtogroup STM32F0xx_LL_Driver
* @{
Expand Down
2 changes: 2 additions & 0 deletions lib/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_exti.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif

/** @addtogroup STM32F0xx_LL_Driver
* @{
Expand Down
2 changes: 2 additions & 0 deletions lib/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif

/** @addtogroup STM32F0xx_LL_Driver
* @{
Expand Down
2 changes: 2 additions & 0 deletions lib/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif

/** @addtogroup STM32F0xx_LL_Driver
* @{
Expand Down
4 changes: 3 additions & 1 deletion lib/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_rcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#define assert_param(expr) ((void)0U)
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif /* USE_FULL_ASSERT */
/** @addtogroup STM32F0xx_LL_Driver
* @{
Expand Down
2 changes: 2 additions & 0 deletions lib/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif

/** @addtogroup STM32F0xx_LL_Driver
* @{
Expand Down
2 changes: 2 additions & 0 deletions lib/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif

/** @addtogroup STM32F0xx_LL_Driver
* @{
Expand Down
2 changes: 2 additions & 0 deletions lib/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_tim.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif

/** @addtogroup STM32F0xx_LL_Driver
* @{
Expand Down
2 changes: 2 additions & 0 deletions lib/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_usart.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif

/** @addtogroup STM32F0xx_LL_Driver
* @{
Expand Down
2 changes: 2 additions & 0 deletions lib/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif

/** @addtogroup STM32F0xx_LL_Driver
* @{
Expand Down
4 changes: 3 additions & 1 deletion lib/STM32F3xx_HAL_Driver/Inc/stm32_assert_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@
/* Exported functions ------------------------------------------------------- */
void assert_failed(uint8_t* file, uint32_t line);
#else
#define assert_param(expr) ((void)0U)
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif /* USE_FULL_ASSERT */

#ifdef __cplusplus
Expand Down
4 changes: 3 additions & 1 deletion lib/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_conf_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,9 @@
/* Exported functions ------------------------------------------------------- */
void assert_failed(uint8_t* file, uint32_t line);
#else
#define assert_param(expr) ((void)0U)
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif /* USE_FULL_ASSERT */

#ifdef __cplusplus
Expand Down
4 changes: 3 additions & 1 deletion lib/STM32F7xx_HAL_Driver/Inc/stm32_assert_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@
/* Exported functions ------------------------------------------------------- */
void assert_failed(uint8_t* file, uint32_t line);
#else
#define assert_param(expr) ((void)0U)
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif /* USE_FULL_ASSERT */

#ifdef __cplusplus
Expand Down
1 change: 1 addition & 0 deletions lib/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_adc.h
Original file line number Diff line number Diff line change
Expand Up @@ -4365,6 +4365,7 @@ __STATIC_INLINE void LL_ADC_ClearFlag_AWD1(ADC_TypeDef *ADCx)
*/
__STATIC_INLINE uint32_t LL_ADC_IsActiveFlag_MST_EOCS(ADC_Common_TypeDef *ADCxy_COMMON)
{
(void)(ADCxy_COMMON);
return (READ_BIT(ADC1->SR, LL_ADC_FLAG_EOCS) == (LL_ADC_FLAG_EOCS));
}

Expand Down
3 changes: 3 additions & 0 deletions lib/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_crc.h
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,13 @@ __STATIC_INLINE void LL_CRC_FeedData32(CRC_TypeDef *CRCx, uint32_t InData)
* @param InData 16 bit value to be provided to CRC calculator between between Min_Data=0 and Max_Data=0xFFFF
* @retval None
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
__STATIC_INLINE void LL_CRC_FeedData16(CRC_TypeDef *CRCx, uint16_t InData)
{
*(uint16_t __IO *)(&CRCx->DR) = (uint16_t) InData;
}
#pragma GCC diagnostic pop

/**
* @brief Write given 8-bit data to the CRC calculator
Expand Down
1 change: 1 addition & 0 deletions lib/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_rcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -2757,6 +2757,7 @@ __STATIC_INLINE uint32_t LL_RCC_GetI2CClockSource(uint32_t I2Cx)
*/
__STATIC_INLINE uint32_t LL_RCC_GetLPTIMClockSource(uint32_t LPTIMx)
{
(void)(LPTIMx);
return (uint32_t)(READ_BIT(RCC->DCKCFGR2, RCC_DCKCFGR2_LPTIM1SEL));
}

Expand Down
1 change: 1 addition & 0 deletions lib/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_rtc.h
Original file line number Diff line number Diff line change
Expand Up @@ -2077,6 +2077,7 @@ __STATIC_INLINE void LL_RTC_ALMB_DisableWeekday(RTC_TypeDef *RTCx)
*/
__STATIC_INLINE void LL_RTC_ALMB_SetDay(RTC_TypeDef *RTCx, uint32_t Day)
{
(void)(RTCx);
MODIFY_REG(RTC->ALRMBR, (RTC_ALRMBR_DT | RTC_ALRMBR_DU),
(((Day & 0xF0U) << (RTC_ALRMBR_DT_Pos - 4U)) | ((Day & 0x0FU) << RTC_ALRMBR_DU_Pos)));
}
Expand Down
3 changes: 3 additions & 0 deletions lib/STM32F7xx_HAL_Driver/Inc/stm32f7xx_ll_spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -1385,10 +1385,13 @@ __STATIC_INLINE void LL_SPI_TransmitData8(SPI_TypeDef *SPIx, uint8_t TxData)
* @param TxData Value between Min_Data=0x00 and Max_Data=0xFFFF
* @retval None
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
__STATIC_INLINE void LL_SPI_TransmitData16(SPI_TypeDef *SPIx, uint16_t TxData)
{
*((__IO uint16_t *)&SPIx->DR) = TxData;
}
#pragma GCC diagnostic pop

/**
* @}
Expand Down
3 changes: 3 additions & 0 deletions lib/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_crc.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ uint32_t HAL_CRC_Calculate(CRC_HandleTypeDef *hcrc, uint32_t pBuffer[], uint32_t
* @param BufferLength: input data buffer length
* @retval uint32_t CRC (returned value LSBs for CRC shorter than 32 bits)
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
static uint32_t CRC_Handle_8(CRC_HandleTypeDef *hcrc, uint8_t pBuffer[], uint32_t BufferLength)
{
uint32_t i = 0; /* input data buffer index */
Expand Down Expand Up @@ -475,6 +477,7 @@ static uint32_t CRC_Handle_16(CRC_HandleTypeDef *hcrc, uint16_t pBuffer[], uint3
/* Return the CRC computed value */
return hcrc->Instance->DR;
}
#pragma GCC diagnostic pop

/**
* @}
Expand Down
6 changes: 3 additions & 3 deletions lib/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1251,9 +1251,9 @@ static HAL_StatusTypeDef PCD_WriteEmptyTxFifo(PCD_HandleTypeDef *hpcd, uint32_t
{
USB_OTG_GlobalTypeDef *USBx = hpcd->Instance;
USB_OTG_EPTypeDef *ep;
int32_t len = 0;
int32_t len32b;
int32_t fifoemptymsk = 0;
uint32_t len = 0;
uint32_t len32b;
uint32_t fifoemptymsk = 0;

ep = &hpcd->IN_ep[epnum];
len = ep->xfer_len - ep->xfer_count;
Expand Down
4 changes: 4 additions & 0 deletions lib/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.c
Original file line number Diff line number Diff line change
Expand Up @@ -2117,6 +2117,7 @@ __weak void HAL_TIM_OnePulse_MspDeInit(TIM_HandleTypeDef *htim)
*/
HAL_StatusTypeDef HAL_TIM_OnePulse_Start(TIM_HandleTypeDef *htim, uint32_t OutputChannel)
{
(void)(OutputChannel);
/* Enable the Capture compare and the Input Capture channels
(in the OPM Mode the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2)
if TIM_CHANNEL_1 is used as output, the TIM_CHANNEL_2 will be used as input and
Expand Down Expand Up @@ -2151,6 +2152,7 @@ HAL_StatusTypeDef HAL_TIM_OnePulse_Start(TIM_HandleTypeDef *htim, uint32_t Outpu
*/
HAL_StatusTypeDef HAL_TIM_OnePulse_Stop(TIM_HandleTypeDef *htim, uint32_t OutputChannel)
{
(void)(OutputChannel);
/* Disable the Capture compare and the Input Capture channels
(in the OPM Mode the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2)
if TIM_CHANNEL_1 is used as output, the TIM_CHANNEL_2 will be used as input and
Expand Down Expand Up @@ -2185,6 +2187,7 @@ HAL_StatusTypeDef HAL_TIM_OnePulse_Stop(TIM_HandleTypeDef *htim, uint32_t Output
*/
HAL_StatusTypeDef HAL_TIM_OnePulse_Start_IT(TIM_HandleTypeDef *htim, uint32_t OutputChannel)
{
(void)(OutputChannel);
/* Enable the Capture compare and the Input Capture channels
(in the OPM Mode the two possible channels that can be used are TIM_CHANNEL_1 and TIM_CHANNEL_2)
if TIM_CHANNEL_1 is used as output, the TIM_CHANNEL_2 will be used as input and
Expand Down Expand Up @@ -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)
{
(void)(OutputChannel);
/* Disable the TIM Capture/Compare 1 interrupt */
__HAL_TIM_DISABLE_IT(htim, TIM_IT_CC1);

Expand Down
5 changes: 4 additions & 1 deletion lib/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#define assert_param(expr) ((void)0U)
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif

/** @addtogroup STM32F7xx_LL_Driver
Expand Down Expand Up @@ -301,6 +303,7 @@
*/
ErrorStatus LL_ADC_CommonDeInit(ADC_Common_TypeDef *ADCxy_COMMON)
{
(void)(ADCxy_COMMON);
/* Check the parameters */
assert_param(IS_ADC_COMMON_INSTANCE(ADCxy_COMMON));

Expand Down
2 changes: 2 additions & 0 deletions lib/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_crc.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif

/** @addtogroup STM32F7xx_LL_Driver
* @{
Expand Down
5 changes: 4 additions & 1 deletion lib/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_dac.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#define assert_param(expr) ((void)0U)
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif

/** @addtogroup STM32F7xx_LL_Driver
Expand Down Expand Up @@ -146,6 +148,7 @@
*/
ErrorStatus LL_DAC_DeInit(DAC_TypeDef *DACx)
{
(void)(DACx);
/* Check the parameters */
assert_param(IS_DAC_ALL_INSTANCE(DACx));

Expand Down
2 changes: 2 additions & 0 deletions lib/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#ifndef assert_param
#define assert_param(expr) ((void)0U)
#endif
#endif

/** @addtogroup STM32F7xx_LL_Driver
* @{
Expand Down
Loading