summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-12-05 13:16:39 +0800
committerGitHub <[email protected]>2021-12-05 13:16:39 +0800
commit36d51542565800d503ad204d882e4b1dd3fcfe7d (patch)
treedebed47f95688577bcbde7846fd9892e9283668e /examples
parent04535363844d30971edca03f643fc92ba2cd40a7 (diff)
parent1040f4a3479b3751a7ad5d5383b62d602fccabed (diff)
Merge pull request #5320 from mysterywolf/pse-master
[POSIX] move PSE branch to master
Diffstat (limited to 'examples')
-rw-r--r--examples/libc/termios_test.c12
-rw-r--r--examples/rt-link/rtlink_dev_example.c4
2 files changed, 2 insertions, 14 deletions
diff --git a/examples/libc/termios_test.c b/examples/libc/termios_test.c
index 855bc82b96..520fca6380 100644
--- a/examples/libc/termios_test.c
+++ b/examples/libc/termios_test.c
@@ -14,18 +14,6 @@
#include <string.h>
#include <sys/time.h>
-#if defined (RT_USING_POSIX)
- #include <dfs_posix.h>
- #include <sys/select.h>
- #if defined (RT_USING_POSIX_TERMIOS)
- #include <termios.h>
- #else
- #error "TERMIOS need RT_USING_POSIX_TERMIOS"
- #endif
-#else
- #error "POSIX poll/select need RT_USING_POSIX"
-#endif
-
#define JOINT(x,y) x##y
#define B(x) JOINT(B,x)
#define Default_baud_rate 115200
diff --git a/examples/rt-link/rtlink_dev_example.c b/examples/rt-link/rtlink_dev_example.c
index 523b67ba53..51b6432d9f 100644
--- a/examples/rt-link/rtlink_dev_example.c
+++ b/examples/rt-link/rtlink_dev_example.c
@@ -45,7 +45,7 @@ static rt_err_t rtlink_dev_tx_done(rt_device_t dev, void *buffer)
return RT_EOK;
}
-#ifdef RT_USING_POSIX
+#ifdef RT_USING_POSIX_DEVIO
#include <dfs_posix.h>
#include <poll.h>
#include <sys/select.h>
@@ -205,7 +205,7 @@ static void rtlink_fselect()
}
}
MSH_CMD_EXPORT(rtlink_fselect, rtlink posix interface example);
-#endif /* RT_USING_POSIX */
+#endif /* RT_USING_POSIX_DEVIO */
static void rtlink_dread(void)
{