Updated rx_fsm for Win32 port. Used for monitoring ms/tp stream from USB-RS485 dongle.
This commit is contained in:
@@ -277,12 +277,12 @@ void RS485_Send_Frame(
|
||||
uint8_t * buffer, /* frame to send (up to 501 bytes of data) */
|
||||
uint16_t nbytes) /* number of bytes of data (up to 501) */
|
||||
{
|
||||
uint8_t turnaround_time;
|
||||
uint32_t baud;
|
||||
DWORD dwWritten = 0;
|
||||
|
||||
#if 0
|
||||
if (mstp_port) {
|
||||
uint32_t baud;
|
||||
uint8_t turnaround_time;
|
||||
baud = RS485_Get_Baud_Rate();
|
||||
/* wait about 40 bit times since reception */
|
||||
if (baud == 9600)
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
#include "bytes.h"
|
||||
#include "rs485.h"
|
||||
#include "mstp.h"
|
||||
#include "mstptext.h"
|
||||
#include "crc.h"
|
||||
|
||||
#define INCREMENT_AND_LIMIT_UINT16(x) {if (x < 0xFFFF) x++;}
|
||||
@@ -122,6 +123,8 @@ static void print_received_packet(
|
||||
mstp_port->DataCRCActualMSB,
|
||||
mstp_port->DataCRCActualLSB);
|
||||
}
|
||||
fprintf(stderr,"%s",
|
||||
mstptext_frame_type(mstp_port->FrameType));
|
||||
fprintf(stderr,"\n");
|
||||
}
|
||||
|
||||
|
||||
@@ -13,8 +13,6 @@
|
||||
<Option compiler="gcc" />
|
||||
<Compiler>
|
||||
<Add option="-g" />
|
||||
<Add option="-DBIG_ENDIAN=0" />
|
||||
<Add option="-DBACDL_MSTP=1" />
|
||||
<Add directory="." />
|
||||
<Add directory="..\..\" />
|
||||
</Compiler>
|
||||
@@ -35,19 +33,31 @@
|
||||
<Compiler>
|
||||
<Add option="-Wall" />
|
||||
<Add option="-fexceptions" />
|
||||
<Add option="-DBIG_ENDIAN=0" />
|
||||
<Add option="-DBACDL_MSTP=1" />
|
||||
<Add directory="." />
|
||||
<Add directory="..\..\..\bacnet-stack" />
|
||||
</Compiler>
|
||||
<Unit filename="..\..\crc.c">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
<Unit filename="..\..\crc.h" />
|
||||
<Unit filename="mstp.c">
|
||||
<Unit filename="..\..\indtext.c">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
<Unit filename="..\..\indtext.h" />
|
||||
<Unit filename="..\..\mstp.c">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
<Unit filename="..\..\mstp.h" />
|
||||
<Unit filename="..\..\mstptext.c">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
<Unit filename="..\..\mstptext.h" />
|
||||
<Unit filename="mstp.h" />
|
||||
<Unit filename="rs485.c">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
<Unit filename="rs485.h" />
|
||||
<Unit filename="rx_fsm.c">
|
||||
<Option compilerVar="CC" />
|
||||
</Unit>
|
||||
@@ -55,6 +65,7 @@
|
||||
<Unit filename="stdint.h" />
|
||||
<Extensions>
|
||||
<code_completion />
|
||||
<envvars />
|
||||
</Extensions>
|
||||
</Project>
|
||||
</CodeBlocks_project_file>
|
||||
|
||||
Reference in New Issue
Block a user