summaryrefslogtreecommitdiff
path: root/fw/src/usbd_conf.h
diff options
context:
space:
mode:
Diffstat (limited to 'fw/src/usbd_conf.h')
-rw-r--r--fw/src/usbd_conf.h32
1 files changed, 5 insertions, 27 deletions
diff --git a/fw/src/usbd_conf.h b/fw/src/usbd_conf.h
index c194c70..0f47bad 100644
--- a/fw/src/usbd_conf.h
+++ b/fw/src/usbd_conf.h
@@ -23,35 +23,10 @@
/* #define for FS and HS identification */
#define DEVICE_FS 0
-/**
- * @}
- */
-
-/** @defgroup USBD_CONF_Exported_Macros USBD_CONF_Exported_Macros
- * @brief Aliases.
- * @{
- */
-
-/* Memory management macros */
-
-/** Alias for memory allocation. */
-#define USBD_malloc malloc
-//(uint32_t *)USBD_static_malloc
-
-/** Alias for memory release. */
-#define USBD_free free
-
-/** Alias for memory set. */
-#define USBD_memset /* Not used */
-
-/** Alias for memory copy. */
-#define USBD_memcpy /* Not used */
-
-/** Alias for delay. */
+#define USBD_malloc (void *)USBD_static_malloc
+#define USBD_free USBD_static_free
#define USBD_Delay HAL_Delay
-/* DEBUG macros */
-
#if (USBD_DEBUG_LEVEL > 0)
#define USBD_UsrLog(...) printf(__VA_ARGS__);\
printf("\n");
@@ -76,6 +51,9 @@
#define USBD_DbgLog(...)
#endif
+void *USBD_static_malloc(uint32_t size);
+void USBD_static_free(void *p);
+
/* Set unset defines */
#include "usbd_def.h"