1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-19 04:52:12 +01:00

OP-1275 fixes unused vars in SPL

This commit is contained in:
Alessio Morale 2014-05-21 21:48:31 +02:00
parent bb7d4aef04
commit 7a3bc518c2
3 changed files with 6 additions and 6 deletions

View File

@ -150,7 +150,7 @@ static ITStatus CheckITStatus(uint32_t CAN_Reg, uint32_t It_Bit);
* @param CANx: where x can be 1 to select the CAN peripheral. * @param CANx: where x can be 1 to select the CAN peripheral.
* @retval None. * @retval None.
*/ */
void CAN_DeInit(CAN_TypeDef* CANx) void CAN_DeInit(__attribute__((unused)) CAN_TypeDef* CANx)
{ {
/* Check the parameters */ /* Check the parameters */
assert_param(IS_CAN_ALL_PERIPH(CANx)); assert_param(IS_CAN_ALL_PERIPH(CANx));

View File

@ -1044,7 +1044,7 @@ void RTC_GetDate(uint32_t RTC_Format, RTC_DateTypeDef* RTC_DateStruct)
* contains the alarm configuration parameters. * contains the alarm configuration parameters.
* @retval None * @retval None
*/ */
void RTC_SetAlarm(uint32_t RTC_Format, uint32_t RTC_Alarm, RTC_AlarmTypeDef* RTC_AlarmStruct) void RTC_SetAlarm(uint32_t RTC_Format,__attribute__((unused)) uint32_t RTC_Alarm, RTC_AlarmTypeDef* RTC_AlarmStruct)
{ {
uint32_t tmpreg = 0; uint32_t tmpreg = 0;
@ -1177,7 +1177,7 @@ void RTC_AlarmStructInit(RTC_AlarmTypeDef* RTC_AlarmStruct)
* contains the output alarm configuration values. * contains the output alarm configuration values.
* @retval None * @retval None
*/ */
void RTC_GetAlarm(uint32_t RTC_Format, uint32_t RTC_Alarm, RTC_AlarmTypeDef* RTC_AlarmStruct) void RTC_GetAlarm(uint32_t RTC_Format,__attribute__((unused)) uint32_t RTC_Alarm, RTC_AlarmTypeDef* RTC_AlarmStruct)
{ {
uint32_t tmpreg = 0; uint32_t tmpreg = 0;
@ -1315,7 +1315,7 @@ ErrorStatus RTC_AlarmCmd(uint32_t RTC_Alarm, FunctionalState NewState)
* @arg RTC_AlarmSubSecondMask_None: SS[14:0] are compared and must match to activate alarm * @arg RTC_AlarmSubSecondMask_None: SS[14:0] are compared and must match to activate alarm
* @retval None * @retval None
*/ */
void RTC_AlarmSubSecondConfig(uint32_t RTC_Alarm, uint32_t RTC_AlarmSubSecondValue, uint8_t RTC_AlarmSubSecondMask) void RTC_AlarmSubSecondConfig(__attribute__((unused)) uint32_t RTC_Alarm, uint32_t RTC_AlarmSubSecondValue, uint8_t RTC_AlarmSubSecondMask)
{ {
uint32_t tmpreg = 0; uint32_t tmpreg = 0;
@ -1347,7 +1347,7 @@ void RTC_AlarmSubSecondConfig(uint32_t RTC_Alarm, uint32_t RTC_AlarmSubSecondVal
* @param None * @param None
* @retval RTC Alarm Subseconds value. * @retval RTC Alarm Subseconds value.
*/ */
uint32_t RTC_GetAlarmSubSecond(uint32_t RTC_Alarm) uint32_t RTC_GetAlarmSubSecond(__attribute__((unused)) uint32_t RTC_Alarm)
{ {
uint32_t tmpreg = 0; uint32_t tmpreg = 0;

View File

@ -265,7 +265,7 @@ void SYSCFG_BreakConfig(uint32_t SYSCFG_Break)
* @arg SYSCFG_FLAG_PE: SRAM parity error flag. * @arg SYSCFG_FLAG_PE: SRAM parity error flag.
* @retval The new state of SYSCFG_Flag (SET or RESET). * @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; FlagStatus bitstatus = RESET;