1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

LP-512 StdPeriph driver: add __attribute__((unused)) where required.

This commit is contained in:
Vladimir Zidar 2017-05-25 13:45:03 +02:00
parent 659b7d0733
commit f1bfc71727
3 changed files with 6 additions and 6 deletions

View File

@ -945,7 +945,7 @@ void ADC_AnalogWatchdog3SingleChannelConfig(ADC_TypeDef* ADCx, uint8_t ADC_Chann
* This parameter can be: ENABLE or DISABLE.
* @retval None
*/
void ADC_TempSensorCmd(ADC_TypeDef* ADCx, FunctionalState NewState)
void ADC_TempSensorCmd(__attribute__((unused)) ADC_TypeDef* ADCx, FunctionalState NewState)
{
/* Check the parameters */
assert_param(IS_FUNCTIONAL_STATE(NewState));
@ -1010,7 +1010,7 @@ void ADC_VrefintCmd(ADC_TypeDef* ADCx, FunctionalState NewState)
* This parameter can be: ENABLE or DISABLE.
* @retval None
*/
void ADC_VbatCmd(ADC_TypeDef* ADCx, FunctionalState NewState)
void ADC_VbatCmd(__attribute__((unused)) ADC_TypeDef* ADCx, FunctionalState NewState)
{
/* Check the parameters */
assert_param(IS_FUNCTIONAL_STATE(NewState));

View File

@ -248,7 +248,7 @@ void HRTIM_SimpleBase_Init(HRTIM_TypeDef* HRTIMx, uint32_t TimerIdx, HRTIM_BaseI
* @param HRTIMx: pointer to HRTIMx peripheral
* @retval None
*/
void HRTIM_DeInit(HRTIM_TypeDef* HRTIMx)
void HRTIM_DeInit(__attribute__((unused)) HRTIM_TypeDef* HRTIMx)
{
/* Check the parameters */
RCC_APB2PeriphResetCmd(RCC_APB2Periph_HRTIM1, ENABLE);
@ -631,7 +631,7 @@ void HRTIM_SimplePWMStop(HRTIM_TypeDef * HRTIMx,
*/
void HRTIM_SimpleCaptureStart(HRTIM_TypeDef * HRTIMx,
uint32_t TimerIdx,
uint32_t CaptureChannel)
__attribute__((unused)) uint32_t CaptureChannel)
{
/* Enable the timer counter */
__HRTIM_ENABLE(HRTIMx, TimerIdxToTimerId[TimerIdx]);
@ -3208,7 +3208,7 @@ uint32_t HRTIM_WaveformGetOutputLevel(HRTIM_TypeDef * HRTIMx,
* @retval Output state
*/
uint32_t HRTIM_WaveformGetOutputState(HRTIM_TypeDef * HRTIMx,
uint32_t TimerIdx,
__attribute__((unused)) uint32_t TimerIdx,
uint32_t Output)
{
uint32_t output_bit = 0;

View File

@ -513,7 +513,7 @@ void SYSCFG_SRAMWRPEnable(uint32_t SYSCFG_SRAMWRP)
* @arg SYSCFG_FLAG_PE: SRAM parity error flag.
* @retval The new state of SYSCFG_Flag (SET or RESET).
*/
FlagStatus SYSCFG_GetFlagStatus(uint32_t SYSCFG_Flag)
FlagStatus SYSCFG_GetFlagStatus(__attribute__((unused)) uint32_t SYSCFG_Flag)
{
FlagStatus bitstatus = RESET;