Skip to content

Commit c2a4b7f

Browse files
treewide: remove support for the legacy USB device stack
Remove support for the deprecated, legacy USB device stack. Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
1 parent 878670b commit c2a4b7f

31 files changed

Lines changed: 13 additions & 2176 deletions

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@ west build -b lpcxpresso55s16/lpc55s16 cannectivity/app/ -- -DFILE_SUFFIX=releas
9898

9999
After building, the firmware can be flashed to the board by running the `west flash` command.
100100

101-
> **Note:** Build configurations for using the legacy USB device stack in Zephyr are also
102-
> provided. These can be selected by setting either `FILE_SUFFIX=legacy` or
103-
> `FILE_SUFFIX=legacy_release`.
104-
105101
## USB Device Firmware Upgrade (DFU) Mode
106102

107103
CANnectivity supports USB Device Firmware Upgrade

app/Kconfig

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -67,44 +67,9 @@ config CANNECTIVITY_MAX_CHANNELS
6767
The Linux kernel driver supports up to 3 channels. Other drivers may support just one
6868
channel.
6969

70-
if USB_DEVICE_STACK
71-
72-
configdefault USB_DEVICE_MANUFACTURER
73-
default CANNECTIVITY_USB_MANUFACTURER
74-
75-
configdefault USB_DEVICE_PRODUCT
76-
default CANNECTIVITY_USB_PRODUCT
77-
78-
configdefault USB_DEVICE_VID
79-
default CANNECTIVITY_USB_VID
80-
81-
configdefault USB_DEVICE_PID
82-
default CANNECTIVITY_USB_PID
83-
84-
configdefault USB_SELF_POWERED
85-
default CANNECTIVITY_USB_SELF_POWERED
86-
87-
configdefault USB_MAX_POWER
88-
default CANNECTIVITY_USB_MAX_POWER
89-
90-
configdefault USB_DEVICE_GS_USB_MAX_CHANNELS
91-
default CANNECTIVITY_MAX_CHANNELS
92-
93-
configdefault USB_DEVICE_BOS
94-
default y
95-
96-
configdefault USB_DEVICE_INITIALIZE_AT_BOOT
97-
default n
98-
99-
endif # USB_DEVICE_STACK
100-
101-
if USB_DEVICE_STACK_NEXT
102-
10370
configdefault USBD_GS_USB_MAX_CHANNELS
10471
default CANNECTIVITY_MAX_CHANNELS
10572

106-
endif # USB_DEVICE_STACK_NEXT
107-
10873
config CANNECTIVITY_LED
10974
bool "LED support"
11075
default y
@@ -185,9 +150,8 @@ if CANNECTIVITY_DFU_SUPPORT
185150
choice CANNECTIVITY_DFU_BACKEND
186151
bool "DFU backend"
187152
default CANNECTIVITY_DFU_BACKEND_NONE if !BOOTLOADER_MCUBOOT
188-
default CANNECTIVITY_DFU_BACKEND_MCUBOOT if BOOTLOADER_MCUBOOT && USB_DEVICE_STACK
189153
default CANNECTIVITY_DFU_BACKEND_MCUBOOT if BOOTLOADER_MCUBOOT && MCUBOOT_BOOTLOADER_MODE_SINGLE_APP
190-
default CANNECTIVITY_DFU_BACKEND_APP if BOOTLOADER_MCUBOOT && USB_DEVICE_STACK_NEXT
154+
default CANNECTIVITY_DFU_BACKEND_APP if BOOTLOADER_MCUBOOT
191155

192156
config CANNECTIVITY_DFU_BACKEND_NONE
193157
bool "No backend"
@@ -203,7 +167,7 @@ config CANNECTIVITY_DFU_BACKEND_MCUBOOT
203167

204168
config CANNECTIVITY_DFU_BACKEND_APP
205169
bool "Application"
206-
depends on BOOTLOADER_MCUBOOT && !MCUBOOT_BOOTLOADER_MODE_SINGLE_APP && USB_DEVICE_STACK_NEXT
170+
depends on BOOTLOADER_MCUBOOT && !MCUBOOT_BOOTLOADER_MODE_SINGLE_APP
207171
help
208172
Device Firmware Upgrade is handled by the CANnectivity firmware application. The upgrade
209173
process is handled by MCUboot upon reboot.

app/boards/canbardo_same70n20b_legacy.conf

Lines changed: 0 additions & 5 deletions
This file was deleted.

app/boards/canbardo_same70n20b_legacy_release.conf

Lines changed: 0 additions & 5 deletions
This file was deleted.

app/boards/native_sim_legacy.overlay

Lines changed: 0 additions & 89 deletions
This file was deleted.

app/boards/native_sim_legacy_release.overlay

Lines changed: 0 additions & 7 deletions
This file was deleted.

app/boards/native_sim_native_64_legacy.overlay

Lines changed: 0 additions & 7 deletions
This file was deleted.

app/boards/native_sim_native_64_legacy_release.overlay

Lines changed: 0 additions & 7 deletions
This file was deleted.

app/prj_legacy.conf

Lines changed: 0 additions & 10 deletions
This file was deleted.

app/prj_legacy_release.conf

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)