mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-30 06:33:07 +00:00
153666f73f
* USB-CDC: accepting the next data packet only if we process previous data * USB-CDC: use USB FS packet size * HAL-console: puts method * Check: print assertion data * FuriHal: rx stream free space aware CDC confirmation. * Bootloader: pull down USB lines, leave the rest to the firmware or bootloader * F6: cleanup and move USB code to usb-glue folder, add USB suspend/resume events to VCP, cleanup target.mk, fix missing motd message in cli when using minicom. * F5: cleanup the rest of USB glue code, adjust LPM and Power info data in descriptor. Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
22 lines
579 B
C
22 lines
579 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include "usbd_cdc.h"
|
|
|
|
/* Define size for the receive and transmit buffer over CDC */
|
|
/* It's up to user to redefine and/or remove those define */
|
|
#define APP_RX_DATA_SIZE CDC_DATA_FS_MAX_PACKET_SIZE
|
|
#define APP_TX_DATA_SIZE CDC_DATA_FS_MAX_PACKET_SIZE
|
|
|
|
/** CDC Interface callback. */
|
|
extern USBD_CDC_ItfTypeDef USBD_Interface_fops_FS;
|
|
|
|
uint8_t CDC_Transmit_FS(uint8_t* Buf, uint16_t Len);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|