diff options
| author | Jerzy Kasenberg <[email protected]> | 2020-05-13 17:04:10 +0200 |
|---|---|---|
| committer | Jerzy Kasenberg <[email protected]> | 2020-05-28 10:58:49 +0200 |
| commit | 56d46483e48879cb8a38dc13d7327daa15165754 (patch) | |
| tree | 48fb1851b5eec60a3ff8e0244c441ffdc19b6345 /src/device/usbd.c | |
| parent | 077437b3dc2772ba87e6d43baf906d29b7539ca5 (diff) | |
Add bt hci device class
Code implements USB transport for bluetooth HCI.
Diffstat (limited to 'src/device/usbd.c')
| -rw-r--r-- | src/device/usbd.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index 3cbd50644..fe392ef6e 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -199,6 +199,19 @@ static usbd_class_driver_t const _usbd_driver[] = .sof = NULL, }, #endif + + #if CFG_TUD_BTH + { + DRIVER_NAME("BTH") + .init = btd_init, + .reset = btd_reset, + .open = btd_open, + .control_request = btd_control_request, + .control_complete = btd_control_complete, + .xfer_cb = btd_xfer_cb, + .sof = NULL + }, + #endif }; enum { USBD_CLASS_DRIVER_COUNT = TU_ARRAY_SIZE(_usbd_driver) }; |
