X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=nand_fdl%2Fcommon%2Fsrc%2Fpacket.c;h=e024fd9710cea7d160c377aec36466cbf243c571;hb=70b155535ec40e8a653b8afd7866edb181e7899e;hp=510c5539575989e90b34434d9760625175506429;hpb=8b2c912b69f1719e86c53fd9efaf42515666e3d8;p=profile%2Fmobile%2Fplatform%2Fkernel%2Fu-boot-tm1.git diff --git a/nand_fdl/common/src/packet.c b/nand_fdl/common/src/packet.c index 510c553..e024fd9 100644 --- a/nand_fdl/common/src/packet.c +++ b/nand_fdl/common/src/packet.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -11,7 +12,7 @@ extern void FDL_SendAckPacket (cmd_pkt_type pkt_type); - +extern uint32 FDL_GetBootMode (void); struct FDL_ChannelHandler *gFdlUsedChannel; @@ -180,7 +181,7 @@ end: packet_ptr->pkt_state = PKT_RECV; //check the packet. CRC should be 0 #ifndef CONFIG_FRMCHECK - crc = crc_16_l_calc((unsigned short *)&packet_ptr->packet_body, packet_ptr->data_size); + crc = crc_16_l_calc((char *)&packet_ptr->packet_body, packet_ptr->data_size); #else crc = frm_chk((unsigned short *)&packet_ptr->packet_body, packet_ptr->data_size); #endif @@ -274,7 +275,7 @@ uint32 FDL_DataProcess (PACKET_T *packet_ptr_src, PACKET_T *packet_ptr_dest) /*src CRC calculation*/ #ifndef CONFIG_FRMCHECK - crc = crc_16_l_calc ( (const unsigned short *) (& (packet_ptr_src->packet_body)), size + PACKET_HEADER_SIZE); + crc = crc_16_l_calc ( (char *) (& (packet_ptr_src->packet_body)), size + PACKET_HEADER_SIZE); #else crc = frm_chk ( (const unsigned short *) (& (packet_ptr_src->packet_body)), size + PACKET_HEADER_SIZE);