mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 11:30:01 +08:00
revise some RT_USING_POSIX to RT_USING_POSIX_DEVIO
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user