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:
parent
2b16f050ab
commit
c4fbe44e28
2 changed files with 10 additions and 0 deletions
|
@ -144,6 +144,10 @@ FLASH_ProcessTypeDef pFlash;
|
||||||
*/
|
*/
|
||||||
HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t FlashAddress, uint32_t DataAddress)
|
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;
|
HAL_StatusTypeDef status;
|
||||||
__IO uint32_t *dest_addr = (__IO uint32_t *)FlashAddress;
|
__IO uint32_t *dest_addr = (__IO uint32_t *)FlashAddress;
|
||||||
__IO uint32_t *src_addr = (__IO uint32_t*)DataAddress;
|
__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)
|
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;
|
HAL_StatusTypeDef status;
|
||||||
__IO uint32_t *dest_addr = (__IO uint32_t*)FlashAddress;
|
__IO uint32_t *dest_addr = (__IO uint32_t*)FlashAddress;
|
||||||
__IO uint32_t *src_addr = (__IO uint32_t*)DataAddress;
|
__IO uint32_t *src_addr = (__IO uint32_t*)DataAddress;
|
||||||
|
|
|
@ -564,6 +564,8 @@ void HAL_PWR_DisableWakeUpPin (uint32_t WakeUpPinx)
|
||||||
*/
|
*/
|
||||||
void HAL_PWR_EnterSLEEPMode (uint32_t Regulator, uint8_t SLEEPEntry)
|
void HAL_PWR_EnterSLEEPMode (uint32_t Regulator, uint8_t SLEEPEntry)
|
||||||
{
|
{
|
||||||
|
UNUSED(Regulator);
|
||||||
|
|
||||||
/* Check the parameters */
|
/* Check the parameters */
|
||||||
assert_param (IS_PWR_REGULATOR (Regulator));
|
assert_param (IS_PWR_REGULATOR (Regulator));
|
||||||
assert_param (IS_PWR_SLEEP_ENTRY (SLEEPEntry));
|
assert_param (IS_PWR_SLEEP_ENTRY (SLEEPEntry));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue