README.txt 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. README
  2. ^^^^^^
  3. This directory contains various device drivers -- both block and
  4. character drivers as well as other more specialized drivers.
  5. Contents:
  6. - Files in this directory
  7. - Subdirectories of this directory
  8. - Skeleton files
  9. Files in this directory
  10. ^^^^^^^^^^^^^^^^^^^^^^^
  11. dev_null.c, dev_urandom, and dev_zero.c
  12. These files provide the standard /dev/null, /dev/urandom, and /dev/zero
  13. devices. See include/nuttx/drivers/driers.h for prototypes of functions
  14. that should be called if you want to register these devices
  15. (devnull_register(), devurandom_register(), and devzero_register()).
  16. pwm.c
  17. Provides the "upper half" of a pulse width modulation (PWM) driver.
  18. The "lower half" of the PWM driver is provided by device-specific
  19. logic. See include/nuttx/drivers/pwm.h for usage information.
  20. ramdisk.c
  21. Can be used to set up a block of memory or (read-only) FLASH as
  22. a block driver that can be mounted as a files system. See
  23. include/nuttx/drivers/ramdisk.h.
  24. rwbuffer.c
  25. A facility that can be use by any block driver in-order to add
  26. writing buffering and read-ahead buffering.
  27. Subdirectories of this directory:
  28. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  29. analog/
  30. This directory holds implementations of analog device drivers.
  31. This includes drivers for Analog to Digital Conversion (ADC) as
  32. well as drivers for Digital to Analog Conversion (DAC).
  33. See include/nuttx/analog/*.h for registration information.
  34. audio/
  35. Audio device drivers. See include/nuttx/audio/audio.h for interface
  36. definitions. See also the audio subsystem at nuttx/audio/.
  37. bch/
  38. Contains logic that may be used to convert a block driver into
  39. a character driver. This is the complementary conversion as that
  40. performed by loop.c. See include/nuttx/fs/fs.h for registration
  41. information.
  42. can/
  43. This is the CAN drivers and logic support. See include/nuttx/can/can.h
  44. for usage information.
  45. contactless/
  46. Contactless devices are related to wireless devices. They are not
  47. communication devices with other similar peers, but couplers/interfaces
  48. to contactless cards and tags.
  49. eeprom/
  50. An EEPROM is a form of Memory Technology Device (see drivers/mtd).
  51. EEPROMs are non-volatile memory like FLASH, but differ in underlying
  52. memory technology and differ in usage in many respects: They may not
  53. be organized into blocks (at least from the standpoint of the user)
  54. and it is not necessary to erase the EEPROM memory before re-writing
  55. it. In addition, EEPROMs tend to be much smaller than FLASH parts,
  56. usually only a few kilobytes vs megabytes for FLASH. EEPROM tends to
  57. be used to retain a small amount of device configuration information;
  58. FLASH tends to be used for program or massive data storage. For these
  59. reasons, it may not be convenient to use the more complex MTD
  60. interface but instead use the simple character interface provided by
  61. the EEPROM drivers.
  62. i2c/
  63. I2C drivers and support logic. See include/nuttx/i2c/i2c_master.h
  64. input/
  65. This directory holds implementations of human input device (HID)
  66. drivers. This includes such things as mouse, touchscreen, joystick,
  67. keyboard and keypad drivers. See include/nuttx/input/*.h for
  68. registration information.
  69. Note that USB HID devices are treated differently. These can be
  70. found under usbdev/ or usbhost/.
  71. lcd/
  72. Drivers for parallel and serial LCD and OLED type devices. These
  73. drivers support interfaces as defined in include/nuttx/lcd/lcd.h
  74. leds/
  75. Various LED-related drivers including discrete as well as PWM-
  76. driven LEDs.
  77. loop/
  78. Supports the standard loop device that can be used to export a
  79. file (or character device) as a block device. See losetup() and
  80. loteardown() in include/nuttx/fs/fs.h.
  81. mmcsd/
  82. Support for MMC/SD block drivers. MMC/SD block drivers based on
  83. SPI and SDIO/MCI interfaces are supported. See include/nuttx/mmcsd.h
  84. and include/nuttx/sdio.h for further information.
  85. mtd/
  86. Memory Technology Device (MTD) drivers. Some simple drivers for
  87. memory technologies like FLASH, EEPROM, NVRAM, etc. See
  88. include/nuttx/mtd/mtd.h
  89. (Note: This is a simple memory interface and should not be
  90. confused with the "real" MTD developed at infradead.org. This
  91. logic is unrelated; I just used the name MTD because I am not
  92. aware of any other common way to refer to this class of devices).
  93. net/
  94. Network interface drivers. See also include/nuttx/net/net.h
  95. pipes/
  96. FIFO and named pipe drivers. Standard interfaces are declared
  97. in include/unistd.h
  98. power/
  99. Power management (PM) driver interfaces. These interfaces are used
  100. to manage power usage of a platform by monitoring driver activity
  101. and by placing drivers into reduce power usage modes when the
  102. drivers are not active.
  103. sensors/
  104. Drivers for various sensors. A sensor driver differs little from
  105. other types of drivers other than they are use to provide measuresments
  106. of things in envionment like temperatore, orientation, acceleration,
  107. altitude, direction, position, etc.
  108. DACs might fit this definition of a sensor driver as well since they
  109. measure and convert voltage levels. DACs, however, are retained in
  110. the analog/ sub-directory.
  111. serial/
  112. Front-end character drivers for chip-specific UARTs. This provide
  113. some TTY-like functionality and are commonly used (but not required for)
  114. the NuttX system console. See also include/nuttx/serial/serial.h
  115. spi/
  116. SPI drivers and support logic. See include/nuttx/spi/spi.h
  117. syslog/
  118. System logging devices. See include/syslog.h and include/nuttx/syslog/syslog.h
  119. timers/
  120. Includes support for various timer devices including:
  121. - An "upper half" for a generic timer driver. See
  122. include/nuttx/timers/timer.h for more information.
  123. - An "upper half" for a generic watchdog driver. See
  124. include/nuttx/timers/watchdog.h for more information.
  125. - RTC drivers
  126. usbdev/
  127. USB device drivers. See also include/nuttx/usb/usbdev.h
  128. usbhost/
  129. USB host drivers. See also include/nuttx/usb/usbhost.h
  130. video/
  131. Video-related drivers. See inlude/nuttx/video/.
  132. wireless/
  133. Drivers for various wireless devices.
  134. Skeleton Files
  135. ^^^^^^^^^^^^^^
  136. Skeleton files a "empty" frameworks for NuttX drivers. They are provided to
  137. give you a good starting point if you want to create a new NuttX driver.
  138. The following skeleton files are available:
  139. drivers/lcd/skeleton.c -- Skeleton LCD driver
  140. drivers/mtd/skeleton.c -- Skeleton memory technology device drivers
  141. drivers/net/skeleton.c -- Skeleton network/Ethernet drivers
  142. drivers/usbhost/usbhost_skeleton.c -- Skeleton USB host class driver