ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
Loading...
Searching...
No Matches
usbd_conf.h File Reference

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>
Include dependency graph for usbd_conf.h:
This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

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.

Macro Definition Documentation

◆ USBD_MAX_NUM_INTERFACES

#define USBD_MAX_NUM_INTERFACES   2U /* CDC: communication + data */

Definition at line 16 of file usbd_conf.h.

◆ USBD_MAX_NUM_CONFIGURATION

#define USBD_MAX_NUM_CONFIGURATION   1U

Definition at line 17 of file usbd_conf.h.

◆ USBD_MAX_STR_DESC_SIZ

#define USBD_MAX_STR_DESC_SIZ   128U

Definition at line 18 of file usbd_conf.h.

◆ USBD_DEBUG_LEVEL

#define USBD_DEBUG_LEVEL   0U

Definition at line 19 of file usbd_conf.h.

◆ USBD_LPM_ENABLED

#define USBD_LPM_ENABLED   0U

Definition at line 20 of file usbd_conf.h.

◆ USBD_SELF_POWERED

#define USBD_SELF_POWERED   1U

Definition at line 21 of file usbd_conf.h.

◆ USBD_MAX_POWER

#define USBD_MAX_POWER   0x32U /* 100 mA */

Definition at line 22 of file usbd_conf.h.

◆ DEVICE_FS

#define DEVICE_FS   0

Definition at line 24 of file usbd_conf.h.

◆ USBD_malloc

#define USBD_malloc   USBD_static_malloc

Definition at line 29 of file usbd_conf.h.

◆ USBD_free

#define USBD_free   USBD_static_free

Definition at line 30 of file usbd_conf.h.

◆ USBD_memset

#define USBD_memset   memset

Definition at line 31 of file usbd_conf.h.

◆ USBD_memcpy

#define USBD_memcpy   memcpy

Definition at line 32 of file usbd_conf.h.

◆ USBD_Delay

#define USBD_Delay   HAL_Delay

Definition at line 33 of file usbd_conf.h.

◆ USBD_UsrLog

#define USBD_UsrLog (   ...)    do { } while (0)

Definition at line 35 of file usbd_conf.h.

◆ USBD_ErrLog

#define USBD_ErrLog (   ...)    do { } while (0)

Definition at line 36 of file usbd_conf.h.

◆ USBD_DbgLog

#define USBD_DbgLog (   ...)    do { } while (0)

Definition at line 37 of file usbd_conf.h.

Function Documentation

◆ USBD_static_malloc()

void * USBD_static_malloc ( uint32_t  size)

Definition at line 156 of file usbd_conf.c.

◆ USBD_static_free()

void USBD_static_free ( void *  p)

Definition at line 161 of file usbd_conf.c.