1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-12 19:10:32 +03:00

[H7][LIB] Take care of UNUSED parameters in V1.8.0

This commit is contained in:
jflyper 2020-09-11 16:04:14 +09:00
parent 2b16f050ab
commit c4fbe44e28
2 changed files with 10 additions and 0 deletions

View file

@ -144,6 +144,10 @@ FLASH_ProcessTypeDef pFlash;
*/
HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t FlashAddress, uint32_t DataAddress)
{
#if !defined(FLASH_OPTCR_PG_OTP)
UNUSED(TypeProgram);
#endif
HAL_StatusTypeDef status;
__IO uint32_t *dest_addr = (__IO uint32_t *)FlashAddress;
__IO uint32_t *src_addr = (__IO uint32_t*)DataAddress;
@ -302,6 +306,10 @@ HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t FlashAddress,
*/
HAL_StatusTypeDef HAL_FLASH_Program_IT(uint32_t TypeProgram, uint32_t FlashAddress, uint32_t DataAddress)
{
#if !defined(FLASH_OPTCR_PG_OTP)
UNUSED(TypeProgram);
#endif
HAL_StatusTypeDef status;
__IO uint32_t *dest_addr = (__IO uint32_t*)FlashAddress;
__IO uint32_t *src_addr = (__IO uint32_t*)DataAddress;

View file

@ -564,6 +564,8 @@ 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));