File tree Expand file tree Collapse file tree 5 files changed +1009
-0
lines changed Expand file tree Collapse file tree 5 files changed +1009
-0
lines changed Original file line number Diff line number Diff line change @@ -18,3 +18,4 @@ zephyr_library_sources_ifdef(CONFIG_UDC_NXP_EHCI udc_mcux_ehci.c)
1818zephyr_library_sources_ifdef(CONFIG_UDC_NXP_IP3511 udc_mcux_ip3511.c)
1919zephyr_library_sources_ifdef(CONFIG_UDC_NUMAKER udc_numaker.c)
2020zephyr_library_sources_ifdef(CONFIG_UDC_RPI_PICO udc_rpi_pico.c)
21+ zephyr_library_sources_ifdef(CONFIG_UDC_AMBIQ udc_ambiq.c)
Original file line number Diff line number Diff line change @@ -65,5 +65,6 @@ source "drivers/usb/udc/Kconfig.it82xx2"
6565source "drivers/usb/udc/Kconfig.mcux"
6666source "drivers/usb/udc/Kconfig.numaker"
6767source "drivers/usb/udc/Kconfig.rpi_pico"
68+ source "drivers/usb/udc/Kconfig.ambiq"
6869
6970endif # UDC_DRIVER
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2024 Ambiq Micro Inc.
2+ # SPDX-License-Identifier: Apache-2.0
3+
4+ config UDC_AMBIQ
5+ bool "USB device controller driver for ambiq devices"
6+ default y
7+ depends on DT_HAS_AMBIQ_USB_ENABLED
8+ select GPIO
9+ select AMBIQ_HAL
10+ select AMBIQ_HAL_USE_USB
11+ help
12+ Enable USB Device Controller Driver.
13+
14+ config UDC_AMBIQ_STACK_SIZE
15+ int "UDC AMBIQ driver internal thread stack size"
16+ depends on UDC_AMBIQ
17+ default 2048
18+ help
19+ AMBIQ driver internal thread stack size.
20+
21+ config UDC_AMBIQ_THREAD_PRIORITY
22+ int "UDC AMBIQ driver thread priority"
23+ depends on UDC_AMBIQ
24+ default 8
25+ help
26+ AMBIQ driver thread priority.
27+
28+
29+ config UDC_AMBIQ_MAX_QMESSAGES
30+ int "UDC AMBIQ maximum number of ISR event messages"
31+ range 4 64
32+ default 8
33+ help
34+ AMBIQ maximum number of ISR event messages.
You can’t perform that action at this time.
0 commit comments