customized SNICInterface
Fork of NySNICInterface by
Diff: SNIC/SNIC_Core.cpp
- Revision:
- 38:f13e4e563d65
- Parent:
- 37:f3a2053627c2
- Child:
- 39:a1233ca02edf
--- a/SNIC/SNIC_Core.cpp Tue Jun 24 06:24:23 2014 +0000 +++ b/SNIC/SNIC_Core.cpp Wed Jun 25 00:04:11 2014 +0000 @@ -86,14 +86,14 @@ int C_SNIC_Core::initUart(PinName tx, PinName rx, int baud) { - mUartRequestSeq = 0; + mUartRequestSeq = 0; mUart_p = new RawSerial( tx, rx ); mUart_p->baud( baud ); mUart_p->format(8, SerialBase::None, 1); // Initialize uart - gUART_RCVBUF_p = NULL; + gUART_RCVBUF_p = NULL; mUart_p->attach( C_SNIC_Core::uartRecvCallback ); // Create UART recv dispatch thread @@ -106,11 +106,11 @@ return 0; } -unsigned int C_SNIC_Core::preparationSendCommand( unsigned char cmd_id, unsigned char cmd_sid +unsigned int C_SNIC_Core::preparationSendCommand( unsigned char cmd_id, unsigned char cmd_sid , unsigned char *req_buf_p, unsigned int req_buf_len , unsigned char *response_buf_p, unsigned char *command_p ) { - unsigned int command_len = 0; + unsigned int command_len = 0; // Make all command request command_len = C_SNIC_UartMsgUtil::makeRequest( cmd_id, req_buf_p, req_buf_len, command_p ); @@ -275,7 +275,7 @@ { uartRecvBuf_p = (tagMEMPOOL_BLOCK_T *)evt.value.p; -#if 0 +#if 0 /* for Debug */ { int i; for(i=0;i<uartRecvBuf_p->size;i++)