b22e3b9e28
lpc2148_spi1.c:142:24: warning: initialization of 'uint32_t (*)(struct spi_dev_s *, uint32_t)' {aka 'unsigned int (*)(struct spi_dev_s *, unsigned int)'} from incompatible pointer type 'uint16_t (*)(struct spi_dev_s *, uint16_t)' {aka 'short unsigned int (*)(struct spi_dev_s *, short unsigned int)'} [-Wincompatible-pointer-types] 142 | .send = spi_send, | ^~~~~~~~ lpc2148_spi1.c:142:24: note: (near initialization for 'g_spiops.send') In file included from ieee802154/mac802154_bind.c:49: ieee802154/mac802154_internal.h: In function 'mac802154_setdevmode': ieee802154/mac802154_internal.h:788:42: warning: converting a packed 'enum ieee802154_devmode_e' pointer (alignment 1) to a 'const union ieee802154_attr_u' pointer (alignment 4) may result in an unaligned pointer value [-Waddress-of-packed-member] 788 | (FAR const union ieee802154_attr_u *)&mode); | ^~~~~~~~~~~~~~~~~ chip/stm32_hciuart.c: In function 'hciuart_read': chip/stm32_hciuart.c:2104:30: warning: statement with no effect [-Wunused-value] 2104 | ntotal == (ssize_t)ret; | ~~~~~~~^~~~~~~~~~~~~~~ wireless/ieee80211/bcm43xxx/bcmf_driver.c: In function 'bcmf_wl_auth_event_handler': wireless/ieee80211/bcm43xxx/bcmf_driver.c:579:23: warning: taking address of packed member of 'struct bcmf_event_s' may result in an unaligned pointer value [-Waddress-of-packed-member] 579 | type = bcmf_getle32(&event->type); | ^~~~~~~~~~~~ wireless/ieee80211/bcm43xxx/bcmf_driver.c:580:25: warning: taking address of packed member of 'struct bcmf_event_s' may result in an unaligned pointer value [-Waddress-of-packed-member] 580 | status = bcmf_getle32(&event->status); | ^~~~~~~~~~~~~~ wireless/ieee80211/bcm43xxx/bcmf_driver.c: In function 'bcmf_wl_scan_event_handler': wireless/ieee80211/bcm43xxx/bcmf_driver.c:619:25: warning: taking address of packed member of 'struct bcmf_event_s' may result in an unaligned pointer value [-Waddress-of-packed-member] 619 | status = bcmf_getle32(&event->status); | ^~~~~~~~~~~~~~ wireless/ieee80211/bcm43xxx/bcmf_driver.c:620:35: warning: taking address of packed member of 'struct bcmf_event_s' may result in an unaligned pointer value [-Waddress-of-packed-member] 620 | escan_result_len = bcmf_getle32(&event->len); | ^~~~~~~~~~~ wireless/ieee80211/bcm43xxx/bcmf_bdc.c: In function 'bcmf_bdc_process_event_frame': wireless/ieee80211/bcm43xxx/bcmf_bdc.c:166:27: warning: taking address of packed member of 'struct bcmf_event_s' may result in an unaligned pointer value [-Waddress-of-packed-member] 166 | event_id = bcmf_getle32(&event_msg->event.type); | ^~~~~~~~~~~~~~~~~~~~~~ wireless/ieee80211/bcm43xxx/mmc_sdio.c: In function 'sdio_io_rw_direct': wireless/ieee80211/bcm43xxx/mmc_sdio.c:157:3: warning: converting a packed 'struct sdio_resp_R5' pointer (alignment 1) to a 'uint32_t' {aka 'unsigned int'} pointer (alignment 4) may result in an unaligned pointer value [-Waddress-of-packed-member] 157 | ret = SDIO_RECVR5(dev, SD_ACMD52, (uint32_t *)&resp); | ^~~ wireless/ieee80211/bcm43xxx/mmc_sdio.c:79:28: note: defined here 79 | begin_packed_struct struct sdio_resp_R5 | ^~~~~~~~~~~~ wireless/ieee80211/bcm43xxx/mmc_sdio.c: In function 'sdio_io_rw_extended': wireless/ieee80211/bcm43xxx/mmc_sdio.c:239:11: warning: converting a packed 'struct sdio_resp_R5' pointer (alignment 1) to a 'uint32_t' {aka 'unsigned int'} pointer (alignment 4) may result in an unaligned pointer value [-Waddress-of-packed-member] 239 | ret = SDIO_RECVR5(dev, SD_ACMD53, (uint32_t *)&resp); | ^~~ wireless/ieee80211/bcm43xxx/mmc_sdio.c:79:28: note: defined here 79 | begin_packed_struct struct sdio_resp_R5 | ^~~~~~~~~~~~ wireless/ieee80211/bcm43xxx/mmc_sdio.c:244:11: warning: converting a packed 'struct sdio_resp_R5' pointer (alignment 1) to a 'uint32_t' {aka 'unsigned int'} pointer (alignment 4) may result in an unaligned pointer value [-Waddress-of-packed-member] 244 | ret = SDIO_RECVR5(dev, SD_ACMD53, (uint32_t *)&resp); | ^~~ wireless/ieee80211/bcm43xxx/mmc_sdio.c:79:28: note: defined here 79 | begin_packed_struct struct sdio_resp_R5 | ^~~~~~~~~~~~ wireless/ieee80211/bcm43xxx/mmc_sdio.c:257:7: warning: converting a packed 'struct sdio_resp_R5' pointer (alignment 1) to a 'uint32_t' {aka 'unsigned int'} pointer (alignment 4) may result in an unaligned pointer value [-Waddress-of-packed-member] 257 | ret = SDIO_RECVR5(dev, SD_ACMD53, (uint32_t *)&resp); | ^~~ wireless/ieee80211/bcm43xxx/mmc_sdio.c:79:28: note: defined here 79 | begin_packed_struct struct sdio_resp_R5 | ^~~~~~~~~~~~ wireless/ieee80211/bcm43xxx/mmc_sdio.c:265:3: warning: converting a packed 'struct sdio_resp_R5' pointer (alignment 1) to a 'uint32_t' {aka 'unsigned int'} pointer (alignment 4) may result in an unaligned pointer value [-Waddress-of-packed-member] 265 | SDIO_RECVR1(dev, SD_ACMD52ABRT, (uint32_t *)&resp); | ^~~~~~~~~~~ wireless/ieee80211/bcm43xxx/mmc_sdio.c:79:28: note: defined here 79 | begin_packed_struct struct sdio_resp_R5 | ^~~~~~~~~~~~ chip/stm32_adc.c: In function 'adc_reset': chip/stm32_adc.c:2860:7: warning: unused variable 'ret' [-Wunused-variable] 2860 | int ret; | ^~~ chip/stm32_adc.c: In function 'adc_shutdown': chip/stm32_adc.c:3044:7: warning: unused variable 'ret' [-Wunused-variable] 3044 | int ret; | ^~~ chip/stm32_i2c.c:722:12: warning: 'stm32_i2c_sem_wait_noncancelable' defined but not used [-Wunused-function] 722 | static int stm32_i2c_sem_wait_noncancelable(FAR struct i2c_master_s *dev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wireless/gs2200m.c: In function 'gs2200m_read': wireless/gs2200m.c:727:20: warning: passing argument 1 of 'nxsem_wait' from incompatible pointer type [-Wincompatible-pointer-types] 727 | ret = nxsem_wait(dev); | ^~~ | | | struct gs2200m_dev_s * .config:1207:warning: symbol value '' invalid for TESTING_OSTEST_FPUSIZE platform/audio/cxd56_audio_analog.c:69:13: warning: inline function 'cxd56_audio_clock_is_enabled' declared but never defined 69 | inline bool cxd56_audio_clock_is_enabled(void); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ platform/audio/cxd56_audio_analog.c:68:13: warning: inline function 'cxd56_audio_clock_disable' declared but never defined 68 | inline void cxd56_audio_clock_disable(void); | ^~~~~~~~~~~~~~~~~~~~~~~~~ platform/audio/cxd56_audio_analog.c:67:13: warning: inline function 'cxd56_audio_clock_enable' declared but never defined 67 | inline void cxd56_audio_clock_enable(uint32_t clk, uint32_t div); | ^~~~~~~~~~~~~~~~~~~~~~~~ chip/stm32_adc.c: In function 'adc_reset': chip/stm32_adc.c:1348:7: warning: unused variable 'ret' [-Wunused-variable] 1348 | int ret; | ^~~ chip/stm32_adc.c: In function 'adc_shutdown': chip/stm32_adc.c:1496:7: warning: unused variable 'ret' [-Wunused-variable] 1496 | int ret; | ^~~ chip/stm32_i2c.c:729:12: warning: 'stm32_i2c_sem_wait_uninterruptble' defined but not used [-Wunused-function] 729 | static int stm32_i2c_sem_wait_uninterruptble(FAR struct i2c_master_s *dev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wireless/lpwan/sx127x/sx127x.c:147:52: warning: missing terminating ' character 147 | # warning OOK support is not complete, RX+TX doesn't work yet! | ^ str71_spi.c:435:24: warning: initialization of 'uint32_t (*)(struct spi_dev_s *, uint32_t)' {aka 'unsigned int (*)(struct spi_dev_s *, unsigned int)'} from incompatible pointer type 'uint16_t (*)(struct spi_dev_s *, uint16_t)' {aka 'short unsigned int (*)(struct spi_dev_s *, short unsigned int)'} [-Wincompatible-pointer-types] 435 | .send = spi_send, | ^~~~~~~~ str71_spi.c:435:24: note: (near initialization for 'g_spiops.send') chip/pic32mx-lowconsole.c:147:24: warning: 'pic32mx_getreg' defined but not used [-Wunused-function] static inline uint32_t pic32mx_getreg(uintptr_t uart_base, ^ chip/pic32mx-gpio.c:113:20: warning: 'pic32mx_value' defined but not used [-Wunused-function] static inline bool pic32mx_value(uint16_t pinset) ^ chip/pic32mz-gpio.c:124:20: warning: 'pic32mz_value' defined but not used [-Wunused-function] static inline bool pic32mz_value(pinset_t pinset) ^ chip/pic32mx-usbdev.c:3065:1: warning: 'pic32mx_epreserved' defined but not used [-Wunused-function] pic32mx_epreserved(struct pic32mx_usbdev_s *priv, int epno) ^ mmcsd/mmcsd_spi.c: In function 'mmcsd_mediachanged': mmcsd/mmcsd_spi.c:1938:7: warning: 'return' with a value, in function returning void return ret; ^ In file included from partition/fs_partition.c:42:0: partition/partition.h:66:19: warning: 'read_partition_block' defined but not used [-Wunused-function] static inline int read_partition_block(FAR struct partition_state_s *state, ^ local/local_netpoll.c: In function 'local_pollsetup': local/local_netpoll.c:305:1: warning: label 'pollerr' defined but not used [-Wunused-label] pollerr: ^~~~~~~ Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: If3ea8f32b878aa218072130f7c3018f0d3c1aca5 |
||
---|---|---|
.. | ||
1wire | ||
analog | ||
audio | ||
bch | ||
can | ||
contactless | ||
crypto | ||
eeprom | ||
i2c | ||
i2s | ||
input | ||
ioexpander | ||
lcd | ||
leds | ||
loop | ||
mmcsd | ||
modem | ||
mtd | ||
net | ||
pipes | ||
power | ||
rf | ||
rptun | ||
sensors | ||
serial | ||
spi | ||
syslog | ||
timers | ||
usbdev | ||
usbhost | ||
usbmisc | ||
usbmonitor | ||
video | ||
wireless | ||
.gitignore | ||
addrenv.c | ||
dev_null.c | ||
dev_zero.c | ||
Kconfig | ||
Makefile | ||
mkrd.c | ||
ramdisk.c | ||
README.txt | ||
rwbuffer.c |
README ^^^^^^ This directory contains various device drivers -- both block and character drivers as well as other more specialized drivers. Contents: - Files in this directory - Subdirectories of this directory - Skeleton files Files in this directory ^^^^^^^^^^^^^^^^^^^^^^^ dev_null.c and dev_zero.c These files provide the standard /dev/null and /dev/zero devices. See include/nuttx/drivers/driers.h for prototypes of functions that should be called if you want to register these devices (devnull_register() and devzero_register()). ramdisk.c Can be used to set up a block of memory or (read-only) FLASH as a block driver that can be mounted as a file system. See include/nuttx/drivers/ramdisk.h. rwbuffer.c A facility that can be used by any block driver in-order to add writing buffering and read-ahead buffering. Subdirectories of this directory: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ analog/ This directory holds implementations of analog device drivers. This includes drivers for Analog to Digital Conversion (ADC) as well as drivers for Digital to Analog Conversion (DAC). See include/nuttx/analog/*.h for registration information. audio/ Audio device drivers. See include/nuttx/audio/audio.h for interface definitions. See also the audio subsystem at nuttx/audio/. bch/ Contains logic that may be used to convert a block driver into a character driver. This is the complementary conversion as that performed by loop.c. See include/nuttx/fs/fs.h for registration information. can/ This is the CAN drivers and logic support. See include/nuttx/can/can.h for usage information. contactless/ Contactless devices are related to wireless devices. They are not communication devices with other similar peers, but couplers/interfaces to contactless cards and tags. crypto/ Contains crypto drivers and support logic, including the /dev/urandom device. eeprom/ An EEPROM is a form of Memory Technology Device (see drivers/mtd). EEPROMs are non-volatile memory like FLASH, but differ in underlying memory technology and differ in usage in many respects: They may not be organized into blocks (at least from the standpoint of the user) and it is not necessary to erase the EEPROM memory before re-writing it. In addition, EEPROMs tend to be much smaller than FLASH parts, usually only a few kilobytes vs megabytes for FLASH. EEPROM tends to be used to retain a small amount of device configuration information; FLASH tends to be used for program or massive data storage. For these reasons, it may not be convenient to use the more complex MTD interface but instead use the simple character interface provided by the EEPROM drivers. i2c/ I2C drivers and support logic. See include/nuttx/i2c/i2c_master.h i2s/ I2S drivers and support logic. See include/nuttx/audio/i2s.h input/ This directory holds implementations of human input device (HID) drivers. This includes such things as mouse, touchscreen, joystick, keyboard and keypad drivers. See include/nuttx/input/*.h for registration information. Note that USB HID devices are treated differently. These can be found under usbdev/ or usbhost/. lcd/ Drivers for parallel and serial LCD and OLED type devices. These drivers support interfaces as defined in include/nuttx/lcd/lcd.h leds/ Various LED-related drivers including discrete as well as PWM- driven LEDs. loop/ Supports the standard loop device that can be used to export a file (or character device) as a block device. See losetup() and loteardown() in include/nuttx/fs/fs.h. mmcsd/ Support for MMC/SD block drivers. MMC/SD block drivers based on SPI and SDIO/MCI interfaces are supported. See include/nuttx/mmcsd.h and include/nuttx/sdio.h for further information. mtd/ Memory Technology Device (MTD) drivers. Some simple drivers for memory technologies like FLASH, EEPROM, NVRAM, etc. See include/nuttx/mtd/mtd.h (Note: This is a simple memory interface and should not be confused with the "real" MTD developed at infradead.org. This logic is unrelated; I just used the name MTD because I am not aware of any other common way to refer to this class of devices). net/ Network interface drivers. See also include/nuttx/net/net.h pipes/ FIFO and named pipe drivers. Standard interfaces are declared in include/unistd.h power/ Power management (PM) driver interfaces. These interfaces are used to manage power usage of a platform by monitoring driver activity and by placing drivers into reduce power usage modes when the drivers are not active. pwm/ Provides the "upper half" of a pulse width modulation (PWM) driver. The "lower half" of the PWM driver is provided by device-specific logic. See include/nuttx/timers/pwm.h for usage information. sensors/ Drivers for various sensors. A sensor driver differs little from other types of drivers other than they are use to provide measurements of things in environment like temperature, orientation, acceleration, altitude, direction, position, etc. DACs might fit this definition of a sensor driver as well since they measure and convert voltage levels. DACs, however, are retained in the analog/ sub-directory. serial/ Front-end character drivers for chip-specific UARTs. This provide some TTY-like functionality and are commonly used (but not required for) the NuttX system console. See also include/nuttx/serial/serial.h spi/ SPI drivers and support logic. See include/nuttx/spi/spi.h syslog/ System logging devices. See include/syslog.h and include/nuttx/syslog/syslog.h timers/ Includes support for various timer devices including: - An "upper half" for a generic timer driver. See include/nuttx/timers/timer.h for more information. - An "upper half" for a generic watchdog driver. See include/nuttx/timers/watchdog.h for more information. - RTC drivers usbdev/ USB device drivers. See also include/nuttx/usb/usbdev.h usbhost/ USB host drivers. See also include/nuttx/usb/usbhost.h video/ Video-related drivers. See include/nuttx/video/. wireless/ Drivers for various wireless devices. Skeleton Files ^^^^^^^^^^^^^^ Skeleton files are "empty" frameworks for NuttX drivers. They are provided to give you a good starting point if you want to create a new NuttX driver. The following skeleton files are available: drivers/lcd/skeleton.c -- Skeleton LCD driver drivers/mtd/skeleton.c -- Skeleton memory technology device drivers drivers/net/skeleton.c -- Skeleton network/Ethernet drivers drivers/usbhost/usbhost_skeleton.c -- Skeleton USB host class driver