summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chip/stm32/usb_endpoints.S12
1 files changed, 8 insertions, 4 deletions
diff --git a/chip/stm32/usb_endpoints.S b/chip/stm32/usb_endpoints.S
index 831b4a8dee..0c950ccbe1 100644
--- a/chip/stm32/usb_endpoints.S
+++ b/chip/stm32/usb_endpoints.S
@@ -25,10 +25,6 @@
.endif
.endm
-ep_undefined:
-iface_undefined:
- bx lr
-
/* align function pointers on a 32-bit boundary */
.align 2
/* Endpoint callbacks */
@@ -99,3 +95,11 @@ interface 4
interface 5
interface 6
interface 7
+
+.text
+.code 16
+
+.thumb_func
+ep_undefined:
+iface_undefined:
+ bx lr