Обновление платы на V2

This commit is contained in:
cfif 2026-05-28 14:13:48 +03:00
parent 93d1085bb6
commit 09adae6f41
2 changed files with 6 additions and 5 deletions

View File

@ -127,7 +127,8 @@ typedef struct
uint32_t u32Address; /**< Logical target address */
uint32_t u32Length; /**< Length in logical sectors or bytes */
uint8_t *pData; /**< Pointer to data buffer (read only) */
uint8_t (*wdTriggerFct)(void); /**< Pointer to watchdog handling function */
uint8_t (*wdTriggerFct)(void*); /**< Pointer to watchdog handling function */
void *wdTriggerFct_env;
uint32_t u32ErrorAddress; /**< Error address */
} FLASH_DRIVER_ParamType;

View File

@ -567,7 +567,7 @@ FLASH_StatusType FLASHDRIVER_PFlashEraseSector(FLASH_DRIVER_ParamType *pFlashPar
/* trigger watchdog function */
if (pFlashParam->wdTriggerFct != ((void *)0))
{
pFlashParam->wdTriggerFct();
pFlashParam->wdTriggerFct(pFlashParam->wdTriggerFct_env);
}
}
@ -714,7 +714,7 @@ FLASH_StatusType FLASHDRIVER_PFlashWrite(FLASH_DRIVER_ParamType *pFlashParam)
/* trigger watchdog function */
if (pFlashParam->wdTriggerFct != ((void *)0))
{
pFlashParam->wdTriggerFct();
pFlashParam->wdTriggerFct(pFlashParam->wdTriggerFct_env);
}
}
@ -837,7 +837,7 @@ FLASH_StatusType FLASHDRIVER_DFlashEraseSector(FLASH_DRIVER_ParamType *pFlashPar
/* trigger watchdog function */
if (pFlashParam->wdTriggerFct != ((void *)0))
{
pFlashParam->wdTriggerFct();
pFlashParam->wdTriggerFct(pFlashParam->wdTriggerFct_env);
}
}
@ -983,7 +983,7 @@ FLASH_StatusType FLASHDRIVER_DFlashWrite(FLASH_DRIVER_ParamType *pFlashParam)
/* trigger watchdog function */
if (pFlashParam->wdTriggerFct != ((void *)0))
{
pFlashParam->wdTriggerFct();
pFlashParam->wdTriggerFct(pFlashParam->wdTriggerFct_env);
}
}