Pārlūkot izejas kodu

hotfix usb stack

aanper 5 gadi atpakaļ
vecāks
revīzija
571f97e2b3
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      firmware/targets/f2/Inc/usbd_conf.h

+ 2 - 2
firmware/targets/f2/Inc/usbd_conf.h

@@ -92,10 +92,10 @@
 /* Memory management macros */
 
 /** Alias for memory allocation. */
-#define USBD_malloc         malloc
+#define USBD_malloc         USBD_static_malloc
 
 /** Alias for memory release. */
-#define USBD_free          free
+#define USBD_free          USBD_static_free
 
 /** Alias for memory set. */
 #define USBD_memset         memset