Add support for the hardware CDC in ESP32-C3 (#5614)

* Add support for the hardware CDC in ESP32-C3
This commit is contained in:
Me No Dev
2021-08-31 08:47:55 +03:00
committed by GitHub
parent a62979d8a0
commit 4a55ff970d
7 changed files with 390 additions and 1 deletions

View File

@ -50,6 +50,7 @@
#include "Stream.h"
#include "esp32-hal.h"
#include "soc/soc_caps.h"
#include "HWCDC.h"
class HardwareSerial: public Stream
{
@ -121,6 +122,8 @@ extern void serialEventRun(void) __attribute__((weak));
#include "USB.h"
#include "USBCDC.h"
extern HardwareSerial Serial0;
#elif ARDUINO_HW_CDC_ON_BOOT
extern HardwareSerial Serial0;
#else
extern HardwareSerial Serial;
#endif