/* Executes the command. The actual code for the command execution is stored as location independant machine code in array flashExecCmd. The contents of this array are temporarily copied to RAM. This way the function can be executed from RAM avoiding problem when try to perform a flash operation on the same flash block that this driver is located on.  */
static void FlashExecuteCommand(void)
/* Executes the command. The actual code for the command execution is stored as location independant machine code in array flashExecCmd. The contents of this array are temporarily copied to RAM. This way the function can be executed from RAM avoiding problem when try to perform a flash operation on the same flash block that this driver is located on.  */
static void FlashExecuteCommand(void)
{
  pFlashExeCmdFct pExecCommandFct;
  blt_int8u cnt;
  for (cnt=0; cnt<(sizeof(flashExecCmd)/sizeof(flashExecCmd[0])); cnt++)
  {
    flashExecCmdRam[cnt] = flashExecCmd[cnt];
  }
  pExecCommandFct = (pFlashExeCmdFct)((void *)flashExecCmdRam);
  pExecCommandFct();
}