ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
Loading...
Searching...
No Matches
usbd_conf.h
Go to the documentation of this file.
1
7#ifndef USBD_CONF_H
8#define USBD_CONF_H
9
10#include "stm32wbxx.h"
11#include "stm32wbxx_hal.h"
12#include <stdio.h>
13#include <stdlib.h>
14#include <string.h>
15
16#define USBD_MAX_NUM_INTERFACES 2U /* CDC: communication + data */
17#define USBD_MAX_NUM_CONFIGURATION 1U
18#define USBD_MAX_STR_DESC_SIZ 128U
19#define USBD_DEBUG_LEVEL 0U
20#define USBD_LPM_ENABLED 0U
21#define USBD_SELF_POWERED 1U
22#define USBD_MAX_POWER 0x32U /* 100 mA */
23
24#define DEVICE_FS 0
25
26/* static allocation of the class data (no heap) */
27void *USBD_static_malloc(uint32_t size);
28void USBD_static_free(void *p);
29#define USBD_malloc USBD_static_malloc
30#define USBD_free USBD_static_free
31#define USBD_memset memset
32#define USBD_memcpy memcpy
33#define USBD_Delay HAL_Delay
34
35#define USBD_UsrLog(...) do { } while (0)
36#define USBD_ErrLog(...) do { } while (0)
37#define USBD_DbgLog(...) do { } while (0)
38
39#endif /* USBD_CONF_H */
void USBD_static_free(void *p)
Definition usbd_conf.c:161
void * USBD_static_malloc(uint32_t size)
Definition usbd_conf.c:156