Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get the declarations in SerialPlugin.h right. They should be simple e…
…xterns. Use success through the interpreterProxy in sqWin32SerialPort.c
- Loading branch information
1 parent
83333fc
commit 0c809e1
Showing
2 changed files
with
26 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
/* serial port primitives */ | ||
|
||
/* module initialization/shutdown */ | ||
int serialPortInit(void); | ||
int serialPortShutdown(void); | ||
extern int serialPortInit(void); | ||
extern int serialPortShutdown(void); | ||
|
||
#pragma export on | ||
EXPORT (int) serialPortClose(int portNum); | ||
EXPORT (int) serialPortCloseByName(const char *portName); | ||
EXPORT (int) serialPortCount(void); | ||
EXPORT (int) serialPortOpen(int portNum, int baudRate, int stopBitsType, | ||
extern int serialPortClose(int portNum); | ||
extern int serialPortCloseByName(const char *portName); | ||
extern int serialPortCount(void); | ||
extern int serialPortOpen(int portNum, int baudRate, int stopBitsType, | ||
int parityType, int dataBits, int inFlowCtrl, | ||
int outFlowCtrl, int xOnChar, int xOffChar); | ||
EXPORT (int) serialPortOpenByName(const char *portName, int baudRate, int stopBitsType, | ||
extern int serialPortOpenByName(const char *portName, int baudRate, int stopBitsType, | ||
int parityType, int dataBits, | ||
int inFlowCtrl, int outFlowCtrl, int xOnChar, int xOffChar); | ||
EXPORT (int) serialPortReadInto(int portNum, int count, void *bufferPtr); | ||
EXPORT (int) serialPortReadIntoByName(const char *portName, int count, void *bufferPtr); | ||
EXPORT (int) serialPortWriteFrom(int portNum, int count, void *bufferPtr); | ||
EXPORT (int) serialPortWriteFromByName(const char *portName, int count, void *bufferPtr); | ||
extern int serialPortReadInto(int portNum, int count, void *bufferPtr); | ||
extern int serialPortReadIntoByName(const char *portName, int count, void *bufferPtr); | ||
extern int serialPortWriteFrom(int portNum, int count, void *bufferPtr); | ||
extern int serialPortWriteFromByName(const char *portName, int count, void *bufferPtr); | ||
#pragma export off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters