Обновление платы на V2
This commit is contained in:
parent
93d1085bb6
commit
09adae6f41
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue