Platform/ECM3532/M3/framework/serial_proto/src/serial_proto.c
/**
 * Initialize Serial protocol
 *
 * @param sOps functions poniiters for serial protocol operation
 * on recevied packet
 * @return 0 on success, non-zero error code on failure
 *
 */
Initialize Serial protocol
@param sOps functions poniiters for serial protocol operation
on recevied packet
@return 0 on success, non-zero error code on failure
Initialize Serial protocol @param sOps functions poniiters for serial protocol operation on recevied packet @return 0 on success non - zero error code on failure
int serialProtoInit(tSPCbFuncs *sOps)
{
  spDev.xSPLock = xSemaphoreCreateMutex();
#ifdef CONFIG_DATA_CRC_CHECK
  spDev.xRespLock = xSemaphoreCreateBinary();
  crcInit();
#endif
  xportInit(sOps);
  return 0;
}
int serialProtoInit ( tSPCbFuncs * sOps ) { spDev . xSPLock = xSemaphoreCreateMutex ( ) ; #ifdef CONFIG_DATA_CRC_CHECK spDev . xRespLock = xSemaphoreCreateBinary ( ) ; crcInit ( ) ; #endif xportInit ( sOps ) ; return 0 ; }
Initialize Serial protocol
 @param sOps functions poniiters for serial protocol operation
 on recevied packet
 @return 0 on success, non-zero error code on failure
Initialize Serial protocol @param sOps functions poniiters for serial protocol operation on recevied packet @return 0 on success non - zero error code on failure