A few warnings in the SP lib suppressed.

This commit is contained in:
blckmn 2016-06-02 22:41:14 +10:00
parent 6587081423
commit 32e0be9802
3 changed files with 7 additions and 0 deletions

View File

@ -947,6 +947,8 @@ void ADC_AnalogWatchdog3SingleChannelConfig(ADC_TypeDef* ADCx, uint8_t ADC_Chann
*/ */
void ADC_TempSensorCmd(ADC_TypeDef* ADCx, FunctionalState NewState) void ADC_TempSensorCmd(ADC_TypeDef* ADCx, FunctionalState NewState)
{ {
(void)(ADCx);
/* Check the parameters */ /* Check the parameters */
assert_param(IS_FUNCTIONAL_STATE(NewState)); assert_param(IS_FUNCTIONAL_STATE(NewState));
@ -1012,6 +1014,7 @@ void ADC_VrefintCmd(ADC_TypeDef* ADCx, FunctionalState NewState)
*/ */
void ADC_VbatCmd(ADC_TypeDef* ADCx, FunctionalState NewState) void ADC_VbatCmd(ADC_TypeDef* ADCx, FunctionalState NewState)
{ {
(void)ADCx;
/* Check the parameters */ /* Check the parameters */
assert_param(IS_FUNCTIONAL_STATE(NewState)); assert_param(IS_FUNCTIONAL_STATE(NewState));

View File

@ -250,6 +250,7 @@ void HRTIM_SimpleBase_Init(HRTIM_TypeDef* HRTIMx, uint32_t TimerIdx, HRTIM_BaseI
*/ */
void HRTIM_DeInit(HRTIM_TypeDef* HRTIMx) void HRTIM_DeInit(HRTIM_TypeDef* HRTIMx)
{ {
(void)HRTIMx;
/* Check the parameters */ /* Check the parameters */
RCC_APB2PeriphResetCmd(RCC_APB2Periph_HRTIM1, ENABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_HRTIM1, ENABLE);
RCC_APB2PeriphResetCmd(RCC_APB2Periph_HRTIM1, DISABLE); RCC_APB2PeriphResetCmd(RCC_APB2Periph_HRTIM1, DISABLE);
@ -633,6 +634,7 @@ void HRTIM_SimpleCaptureStart(HRTIM_TypeDef * HRTIMx,
uint32_t TimerIdx, uint32_t TimerIdx,
uint32_t CaptureChannel) uint32_t CaptureChannel)
{ {
(void)CaptureChannel;
/* Enable the timer counter */ /* Enable the timer counter */
__HRTIM_ENABLE(HRTIMx, TimerIdxToTimerId[TimerIdx]); __HRTIM_ENABLE(HRTIMx, TimerIdxToTimerId[TimerIdx]);
@ -3211,6 +3213,7 @@ uint32_t HRTIM_WaveformGetOutputState(HRTIM_TypeDef * HRTIMx,
uint32_t TimerIdx, uint32_t TimerIdx,
uint32_t Output) uint32_t Output)
{ {
(void)(TimerIdx);
uint32_t output_bit = 0; uint32_t output_bit = 0;
uint32_t output_state = HRTIM_OUTPUTSTATE_IDLE; uint32_t output_state = HRTIM_OUTPUTSTATE_IDLE;

View File

@ -469,6 +469,7 @@ void SYSCFG_SRAMWRPEnable(uint32_t SYSCFG_SRAMWRP)
*/ */
FlagStatus SYSCFG_GetFlagStatus(uint32_t SYSCFG_Flag) FlagStatus SYSCFG_GetFlagStatus(uint32_t SYSCFG_Flag)
{ {
(void)SYSCFG_Flag;
FlagStatus bitstatus = RESET; FlagStatus bitstatus = RESET;
/* Check the parameter */ /* Check the parameter */