mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
usbdev: Add callback for CONFIG_USBDEV_SOFINTERRUPT
Previously CONFIG_USBDEV_SOFINTERRUPT existed in many platform drivers but did nothing. This commit adds a callback function usbdev_sof_irq() that can be used to take action on this interrupt.
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
4673fccece
commit
99a8c00807
@@ -50,6 +50,14 @@ config USBDEV_MAXPOWER
|
||||
the device is bus powered (USBDEV_BUSPOWERED). It is, however, used
|
||||
unconditionally in several USB device drivers.
|
||||
|
||||
config USBDEV_SOFINTERRUPT
|
||||
bool "Enable USB device SOF interrupts"
|
||||
default n
|
||||
---help---
|
||||
Enable USB start-of-frame interrupts.
|
||||
Can be used for synchronizing to host clock rate.
|
||||
Board logic must provide usbdev_sof_irq() function.
|
||||
|
||||
config USBDEV_DMA
|
||||
bool "Enable DMA methods"
|
||||
default n
|
||||
|
||||
Reference in New Issue
Block a user