summaryrefslogtreecommitdiff
path: root/examples/device/hid_boot_interface/src
diff options
context:
space:
mode:
authorJerzy Kasenberg <[email protected]>2021-09-17 11:41:58 +0200
committerJerzy Kasenberg <[email protected]>2021-09-17 12:10:17 +0200
commit6d8677a78ab4973ff498ec2fe8ea40a1cde230a1 (patch)
treea5bef85ec3b889eb91dea82020c036aa785e03c6 /examples/device/hid_boot_interface/src
parent03866ddf9be007e8c26dc290e28093a9e59b1e17 (diff)
dcd_da146xx: Add VBUS handling
DA146xx are Bluetooth devices that may be battery powered and when not connected to USB host there is no need for USB peripheral to be running. This change allows to enable USB peripheral when VBUS is present otherwise USB is down reducing power consumption. tud_vsub_changed() function must be called whenever VBUS change was detected. For bus-powered devices this function should be called at startup since VBUS must be present while device is working.
Diffstat (limited to 'examples/device/hid_boot_interface/src')
0 files changed, 0 insertions, 0 deletions