New USB-CDC

This commit is contained in:
Edward Emelianov
2026-03-06 19:46:41 +03:00
parent b5a4a21f51
commit 25c2f085e8
19 changed files with 1155 additions and 1022 deletions

View File

@@ -17,13 +17,7 @@
#pragma once
#if defined STM32F0
#include <stm32f0.h>
#elif defined STM32F1
#include <stm32f1.h>
#elif defined STM32F3
#include <stm32f3.h>
#endif
#include <stdint.h>
typedef struct{
uint8_t *data; // data buffer
@@ -38,4 +32,5 @@ int RB_readto(ringbuffer *b, uint8_t byte, uint8_t *s, int len);
int RB_hasbyte(ringbuffer *b, uint8_t byte);
int RB_write(ringbuffer *b, const uint8_t *str, int l);
int RB_datalen(ringbuffer *b);
int RB_datalento(ringbuffer *b, uint8_t byte);
int RB_clearbuf(ringbuffer *b);