aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/simulator/posix/hal_serial_lld.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-02-02 11:28:02 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-02-02 11:28:02 +0000
commit07fc57b2c8e748cacfc80a319127224dbba4c3a5 (patch)
tree8f581cab2498fcc5cf449a1b07fb519b83bd04f0 /os/hal/ports/simulator/posix/hal_serial_lld.h
parente3498cf0825e1ca9f5cbad0cee4cdb090964baf2 (diff)
downloadChibiOS-07fc57b2c8e748cacfc80a319127224dbba4c3a5.tar.gz
ChibiOS-07fc57b2c8e748cacfc80a319127224dbba4c3a5.tar.bz2
ChibiOS-07fc57b2c8e748cacfc80a319127224dbba4c3a5.zip
Simulator compiles, to be tested.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10078 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/simulator/posix/hal_serial_lld.h')
-rwxr-xr-xos/hal/ports/simulator/posix/hal_serial_lld.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/os/hal/ports/simulator/posix/hal_serial_lld.h b/os/hal/ports/simulator/posix/hal_serial_lld.h
index de228111f..f3bd3fff1 100755
--- a/os/hal/ports/simulator/posix/hal_serial_lld.h
+++ b/os/hal/ports/simulator/posix/hal_serial_lld.h
@@ -45,8 +45,8 @@
* @details If set to @p TRUE the support for SD1 is included.
* @note The default is @p TRUE.
*/
-#if !defined(USE_WIN32_SERIAL1) || defined(__DOXYGEN__)
-#define USE_WIN32_SERIAL1 TRUE
+#if !defined(USE_SIM_SERIAL1) || defined(__DOXYGEN__)
+#define USE_SIM_SERIAL1 TRUE
#endif
/**
@@ -54,22 +54,22 @@
* @details If set to @p TRUE the support for SD2 is included.
* @note The default is @p TRUE.
*/
-#if !defined(USE_WIN32_SERIAL2) || defined(__DOXYGEN__)
-#define USE_WIN32_SERIAL2 TRUE
+#if !defined(USE_SIM_SERIAL2) || defined(__DOXYGEN__)
+#define USE_SIM_SERIAL2 TRUE
#endif
/**
* @brief Listen port for SD1.
*/
#if !defined(SD1_PORT) || defined(__DOXYGEN__)
-#define SD1_PORT 29001
+#define SIM_SD1_PORT 29001
#endif
/**
* @brief Listen port for SD2.
*/
#if !defined(SD2_PORT) || defined(__DOXYGEN__)
-#define SD2_PORT 29002
+#define SIM_SD2_PORT 29002
#endif
/*===========================================================================*/
@@ -108,9 +108,9 @@ typedef struct {
uint8_t ob[SERIAL_BUFFERS_SIZE]; \
/* End of the mandatory fields.*/ \
/* Listen socket for simulated serial port.*/ \
- SOCKET com_listen; \
+ int com_listen; \
/* Data socket for simulated serial port.*/ \
- SOCKET com_data; \
+ int com_data; \
/* Port readable name.*/ \
const char *com_name;
@@ -118,10 +118,10 @@ typedef struct {
/* External declarations. */
/*===========================================================================*/
-#if USE_WIN32_SERIAL1 && !defined(__DOXYGEN__)
+#if USE_SIM_SERIAL1 && !defined(__DOXYGEN__)
extern SerialDriver SD1;
#endif
-#if USE_WIN32_SERIAL2 && !defined(__DOXYGEN__)
+#if USE_SIM_SERIAL2 && !defined(__DOXYGEN__)
extern SerialDriver SD2;
#endif