--- hatari/src/includes/rs232.h 2019/04/01 07:11:31 1.1.1.2 +++ hatari/src/includes/rs232.h 2019/04/09 08:53:13 1.1.1.7 @@ -1,8 +1,8 @@ /* Hatari - rs232.h - This file is distributed under the GNU Public License, version 2 or at - your option any later version. Read the file gpl.txt for details. + This file is distributed under the GNU General Public License, version 2 + or at your option any later version. Read the file gpl.txt for details. */ #ifndef HATARI_RS232_H @@ -11,22 +11,15 @@ #define MAX_RS232INPUT_BUFFER 2048 /* Must be ^2 */ -extern BOOL bConnectedRS232; -extern unsigned char InputBuffer_RS232[MAX_RS232INPUT_BUFFER]; -extern int InputBuffer_Head,InputBuffer_Tail; - extern void RS232_Init(void); extern void RS232_UnInit(void); -extern BOOL RS232_OpenCOMPort(void); -extern void RS232_CloseCOMPort(void); -extern void RS232_HandleUCR(short int ucr); -extern BOOL RS232_SetBaudRate(int nBaud); +extern void RS232_HandleUCR(Sint16 ucr); +extern bool RS232_SetBaudRate(int nBaud); extern void RS232_SetBaudRateFromTimerD(void); -extern void RS232_SetFlowControl(int ctrl); -extern BOOL RS232_TransferBytesTo(unsigned char *pBytes, int nBytes); -extern BOOL RS232_ReadBytes(unsigned char *pBytes, int nBytes); -extern BOOL RS232_GetStatus(void); -extern int RS232_ThreadFunc(void *pData); +extern void RS232_SetFlowControl(Sint16 ctrl); +extern bool RS232_TransferBytesTo(Uint8 *pBytes, int nBytes); +extern bool RS232_ReadBytes(Uint8 *pBytes, int nBytes); +extern bool RS232_GetStatus(void); extern void RS232_SCR_ReadByte(void); extern void RS232_SCR_WriteByte(void); extern void RS232_UCR_ReadByte(void);