Kconfig 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. menu "POSIX (Portable Operating System Interface) layer"
  2. config RT_USING_POSIX_FS
  3. bool "Enable POSIX file system and I/O"
  4. select RT_USING_DFS
  5. select DFS_USING_POSIX
  6. default n
  7. if RT_USING_POSIX_FS
  8. config RT_USING_POSIX_DEVIO
  9. bool "Enable devices as file descriptors"
  10. select RT_USING_DFS_DEVFS
  11. default n
  12. config RT_USING_POSIX_STDIO
  13. bool "Enable standard I/O devices, e.g. STDOUT_FILENO"
  14. select RT_USING_POSIX_DEVIO
  15. default n
  16. config RT_USING_POSIX_POLL
  17. bool "Enable I/O Multiplexing poll() <poll.h>"
  18. default n
  19. config RT_USING_POSIX_SELECT
  20. bool "Enable I/O Multiplexing select() <sys/select.h>"
  21. select RT_USING_POSIX_POLL
  22. default n
  23. config RT_USING_POSIX_TERMIOS
  24. bool "Enable Terminal I/O <termios.h>"
  25. select RT_USING_POSIX_STDIO
  26. default n
  27. config RT_USING_POSIX_AIO
  28. bool "Enable Asynchronous I/O <aio.h>"
  29. default n
  30. config RT_USING_POSIX_MMAN
  31. bool "Enable Memory-Mapped I/O <sys/mman.h>"
  32. default n
  33. endif
  34. config RT_USING_POSIX_DELAY
  35. bool "Enable delay APIs, sleep()/usleep()/msleep() etc"
  36. default n
  37. config RT_USING_POSIX_CLOCK
  38. bool "Enable clock/time functions, clock_gettime()/clock_settime()/clock_getres() etc"
  39. select RT_USING_POSIX_DELAY
  40. default n
  41. config RT_USING_PTHREADS
  42. bool "Enable pthreads APIs"
  43. select RT_USING_POSIX_CLOCK
  44. default n
  45. if RT_USING_PTHREADS
  46. config PTHREAD_NUM_MAX
  47. int "Maximum number of pthreads"
  48. default 8
  49. endif
  50. source "$RTT_DIR/components/libc/posix/ipc/Kconfig"
  51. endmenu