*!
*@brief Reinvoke ISP.
*
*This function is used to invoke the boot loader in ISP mode. It maps bootvectors and configures the peripherals for
*ISP.
*
*@param ispTyoe ISP type selection.
*@param status store the possible status.
*
*@retval kStatus_IAP_ReinvokeISPConfig reinvoke configuration error.
*
*note The error response will be returned when IAP is disabled or an invalid ISPtype selection appears. The call
*won't return unless an error occurs, so there can be no status code.
*/
voidIAP_ReinvokeISP(uint8_t ispType, uint32_t *status)
{
uint32_t command[5] = {0x00U};
uint32_t result[5] = {0x00U};
uint8_t ispParameterArray[8];
command[0] =(uint32_t)kIapCmd_IAP_ReinvokeISP;
(void)memset(ispParameterArray, 0,sizeof(uint8_t) * 8U);
ispParameterArray[1]= ispType;
ispParameterArray[7] = ispParameterArray[0] ^ ispParameterArray[1] ^ispParameterArray[2] ^ ispParameterArray[3] ^
ispParameterArray[4]^ ispParameterArray[5] ^ ispParameterArray[6];
command[1] = (uint32_t)ispParameterArray;
iap_entry(command, result);
*status = (uint32_t)translate_iap_status(result[0]);
}