![]() |
ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
|
Configuration of the ST USB device library (third_party/st_usb) for the ACwing FC firmware: one CDC interface, static memory, no LPM. More...
#include "stm32wbxx.h"#include "stm32wbxx_hal.h"#include <stdio.h>#include <stdlib.h>#include <string.h>Go to the source code of this file.
Macros | |
| #define | USBD_MAX_NUM_INTERFACES 2U /* CDC: communication + data */ |
| #define | USBD_MAX_NUM_CONFIGURATION 1U |
| #define | USBD_MAX_STR_DESC_SIZ 128U |
| #define | USBD_DEBUG_LEVEL 0U |
| #define | USBD_LPM_ENABLED 0U |
| #define | USBD_SELF_POWERED 1U |
| #define | USBD_MAX_POWER 0x32U /* 100 mA */ |
| #define | DEVICE_FS 0 |
| #define | USBD_malloc USBD_static_malloc |
| #define | USBD_free USBD_static_free |
| #define | USBD_memset memset |
| #define | USBD_memcpy memcpy |
| #define | USBD_Delay HAL_Delay |
| #define | USBD_UsrLog(...) do { } while (0) |
| #define | USBD_ErrLog(...) do { } while (0) |
| #define | USBD_DbgLog(...) do { } while (0) |
Functions | |
| void * | USBD_static_malloc (uint32_t size) |
| void | USBD_static_free (void *p) |
Configuration of the ST USB device library (third_party/st_usb) for the ACwing FC firmware: one CDC interface, static memory, no LPM.
Written by hand after the ST template (not generated by CubeMX).
Definition in file usbd_conf.h.
| #define USBD_MAX_NUM_INTERFACES 2U /* CDC: communication + data */ |
Definition at line 16 of file usbd_conf.h.
| #define USBD_MAX_NUM_CONFIGURATION 1U |
Definition at line 17 of file usbd_conf.h.
| #define USBD_MAX_STR_DESC_SIZ 128U |
Definition at line 18 of file usbd_conf.h.
| #define USBD_DEBUG_LEVEL 0U |
Definition at line 19 of file usbd_conf.h.
| #define USBD_LPM_ENABLED 0U |
Definition at line 20 of file usbd_conf.h.
| #define USBD_SELF_POWERED 1U |
Definition at line 21 of file usbd_conf.h.
| #define USBD_MAX_POWER 0x32U /* 100 mA */ |
Definition at line 22 of file usbd_conf.h.
| #define DEVICE_FS 0 |
Definition at line 24 of file usbd_conf.h.
| #define USBD_malloc USBD_static_malloc |
Definition at line 29 of file usbd_conf.h.
| #define USBD_free USBD_static_free |
Definition at line 30 of file usbd_conf.h.
| #define USBD_memset memset |
Definition at line 31 of file usbd_conf.h.
| #define USBD_memcpy memcpy |
Definition at line 32 of file usbd_conf.h.
| #define USBD_Delay HAL_Delay |
Definition at line 33 of file usbd_conf.h.
| #define USBD_UsrLog | ( | ... | ) | do { } while (0) |
Definition at line 35 of file usbd_conf.h.
| #define USBD_ErrLog | ( | ... | ) | do { } while (0) |
Definition at line 36 of file usbd_conf.h.
| #define USBD_DbgLog | ( | ... | ) | do { } while (0) |
Definition at line 37 of file usbd_conf.h.
| void * USBD_static_malloc | ( | uint32_t | size | ) |
Definition at line 156 of file usbd_conf.c.
| void USBD_static_free | ( | void * | p | ) |
Definition at line 161 of file usbd_conf.c.