00001 /* ================================================================================ *//* ================================================================================= */ 00028 00029 #include <stdbool.h> 00030 #include "roboot.h" 00031 #include "roboot_if_comm.h" 00032 #include "xmodem.h" 00033 00034 extern const ROBOOT_FLASH_Operations_T flash_oper; 00035 00036 00037 /**************************************************************************************************\ 00038 * Dowloads data for bootloader image processor using XMODEM protocol and 00039 * passes downloaded data to the image processor. 00040 \**************************************************************************************************/ 00041 bool FeedImageProcessor(void) 00042 { 00043 CommHwInit(); 00044 00045 xmodemInit(ROBOOT_InitProcessing(&flash_oper), CommHwSendByte, CommHwGetByte); 00046 00047 return (xmodemReceive(ROBOOT_ProcessPacket) < 0); 00048 } 00049